The attached code may be used for simple 2D simulations using SpinDynamica. It is not completely general but should do for many purposes. More general code will be included in SpinDynamica in future.
This example has also been posted on the forum, where you may also post responses.
executable notebook here: Simple2Dspectra