Syntax examples (to be removed)

useful examples of reStructuredText directives

Local fields in MuSR

Inline: in mujpy, only a scalar coupling between \(\mathbf{B_{\mathrm{cont}}}\) and \(\mathbf{m}_e\) is allowed, proportional to \(\vert \psi_s (\mathbf{r}_\mu) \vert ^2\).

It is very badly approximated by considering

\[\mathbf{B_{\mathrm{dip}}^\prime} = \frac{\mu_0}{4 \pi} \sum _{i=1} ^N \left( -\frac{\mathbf{m}}{r^3 _i} + \frac{3 (\mathbf{m}_i \cdot \mathbf{r}_i)\mathbf{r}_i }{r^5 _i} \right)\]

As we said muesr can only handle 1-k magnetic structures.

Find below an example notebook that activates the Gui interface. An alternative way to familiarise with mujpy is to run directly the examples first and then come back here for a more systematic introduction. (fake bit from muesr for rst syntax)

>>> from mujpy.mujpy import mugui

(other fake bit for syntax) A quick way to do that is using the helper function mago_add() from ms.

link to www page `Python<http://www.python.org/>`_

example table

Idx | Sel | Desc.
0 | | No title 1 | * | FM m//c

by Jun Sugiyama et al. [Sugiyama2011].

[Sugiyama2011]Jun Sugiyama et al., Phys. Rev. B 84, 054430 (2011)