 pySpinW is a tool for calculating magnon energies and simulating scattering experiments Details of its use can be found at www.spinw.org/pyspinw ## Example Here is an example of calculating dispersion curves for simple ferromagnetic chain in python: ```python from pyspinw import * # Define the unit cell unit_cell = UnitCell(1,1,1) # Specify a magetic atom at (0,0,0), with moment (0,0,1) x = LatticeSite(0, 0, 0, 0, 0, 1, name="X") # Create a magnetic structure (this could include a spacegroup, or # supercell structure, but we don't do so here) structure = Structure([x], unit_cell=unit_cell) # A single exchange between atoms in neighbouring unit cells (in the x direction) exchanges = [HeisenbergExchange(x, x, cell_offset=(1,0,0), j=-1)] # Create a Hamiltonian object that holds things together hamiltonian = Hamiltonian(structure, exchanges) # Define a path through q-space for out dispersion curve path = Path([[0,0,0], [1,0,0]]) # Show the spaghetti plot, with constant energy smearing of 0.4 hamiltonian.spaghetti_plot(path, dE=0.4) ``` This should produce a plot like this:  ## New features in the
In the Infrastructure & Backend space, spinw-python takes a focused approach. It focuses on simulating and analyzing spinwaves and inelastic neutron scattering for physics researchers. spinw-python is an open-source project aimed at physics researchers. The project is open source (GPL-3.0-or-later). The product ships for the web and the command line.
spinw-python first shipped in 2024. The project is developed in the open on GitHub with 16 stars and 88 commits in the last 90 days. Across PulseGate's embedding index, spinw-python has few near neighbours, marking it as relatively distinct. Among its 5 catalogued features are spinwave simulation, neutron scattering analysis, and python integration.
Latest indexed changes and source events
Other apps tracked under the same category.