a scenario-based spin dynamics simulation library