:orphan: .. _trilmax-2025: ********************* TRILMAX summer school ********************* **School**: |TRILMAX-summer-school|_ **Dates**: 8-12 September of 2025 **Location**: Oviedo, Spain **Organized by**: |TRILMAX-consortium|_ **Slides** :download:`Introduction to magnopy <../resources/trilmax-2025/Magnopy.pptx>` **Target magnopy's version**: v0.2.1 .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Magnopy as a python library =========================== To get the most out of magnopy, use it as a python library. This tutorial teaches you how to do so. Every page of the tutorial explains a concept about |magnopy|_. There is a list of "Tutorial tasks", that can be found on top of each page. The tasks are meant for you to complete after reading the corresponding page and referenced materials. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_1_introduction_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_1_introduction.py` .. raw:: html
Introducing magnopy
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_2_crystal_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_2_crystal.py` .. raw:: html
Crystal structure
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_3_convention_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_3_convention.py` .. raw:: html
Convention of spin Hamiltonian
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_4_spinham_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_4_spinham.py` .. raw:: html
Spin Hamiltonian
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_5_energy_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_5_energy.py` .. raw:: html
Classical Energy
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_6_wulfric_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_6_wulfric.py` .. raw:: html
(extra) K-points with wulfric
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/1_python-library/images/thumb/sphx_glr_plot_7_lswt_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_1_python-library_plot_7_lswt.py` .. raw:: html
Linear Spin Wave theory
.. thumbnail-parent-div-close .. raw:: html
Magnopy as a black box ====================== Magnopy can be used without any knowledge of Python programming. In other words it can be used as a black-box software via its command line interface. First, one need to install magnopy. Open a terminal and run the following command (type the command and press enter) .. code-block:: bash pip install "magnopy[visual]" Check that everything is ok by executing the command .. code-block:: bash magnopy There are currently two command line scripts in magnopy. Use |GROGU|_ file that you have obtained to follow the tutorial for each of them. .. hint:: Those scripts can be run from within python as well, see: |magnopy-scenarios|_. One can study the source code of :external:py:func:`magnopy.scenarios.optimize_sd` and :external:py:func:`magnopy.scenarios.solve_lswt` for more advance example of how magnopy can be used as a python library. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/2_black-box/images/thumb/sphx_glr_plot_1_optimize-sd_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_2_black-box_plot_1_optimize-sd.py` .. raw:: html
Optimization of spin directions
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/2_black-box/images/thumb/sphx_glr_plot_2_lswt_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_2_black-box_plot_2_lswt.py` .. raw:: html
Linear Spin Wave theory
.. thumbnail-parent-div-close .. raw:: html
Preparing files for Vampire =========================== This tutorial gives instructions on how to generate .UCF and .mat files from |GROGU|_ file with magnopy. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/3_Vampire_link/images/thumb/sphx_glr_plot_0_convert_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_3_Vampire_link_plot_0_convert.py` .. raw:: html
Getting files for Vampire
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/3_Vampire_link/images/thumb/sphx_glr_plot_1_spins_2d_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_3_Vampire_link_plot_1_spins_2d.py` .. raw:: html
Spin-plotting routine (2D)
.. raw:: html
.. only:: html .. image:: /school-tutorials/trilmax-2025/3_Vampire_link/images/thumb/sphx_glr_plot_2_spins_3d_thumb.png :alt: :ref:`sphx_glr_school-tutorials_trilmax-2025_3_Vampire_link_plot_2_spins_3d.py` .. raw:: html
Spin-plotting routine (3D)
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /school-tutorials/trilmax-2025/1_python-library/index.rst /school-tutorials/trilmax-2025/2_black-box/index.rst /school-tutorials/trilmax-2025/3_Vampire_link/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: trilmax-2025_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: trilmax-2025_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_