Home > Applications > SpinW > m_files > gm_spherical3d.m

iFit/gm_spherical3d

PURPOSE ^

magnetic structure constraint function with spherical parameterisation

SYNOPSIS ^

function [M, k, n, name, pname, limit] = gm_spherical3d(M0, x)

DESCRIPTION ^

 magnetic structure constraint function with spherical parameterisation

 [M, k, n, name, pname, limit] = GM_SPHERICAL3D(M0, x) 

 It generates the parameters of magnetic moments and normal vector from
 spherical (theta,phi) coordinates.

 Input:

 x         Input parameters in the following order:
           (Theta1, Phi1, Theta2, Phi2, ... , kx, ky, kz, nTheta, nPhi).
 M0        Size of magnetic moments: (M1, M2, ...) or scalar if all
           moments are equal.

 Output:

 M         Array, containing the magnetic moments, dimensions are
           [3 nMagExt]. Every column contain the [Mx; My; Mz] magnetic
           moment components of a magnetic atom in the xyz coordinate
           system.
 k         Magnetic ordering wavevector in r.l.u., dimensions are [1 3].
 n         Normal vector to the plane of the incommensurate spins (if k
           non-zero).

 Optional outputs:
 only produced if the output is requested.

 name      Name of the function.
 pname     Name of the input parameters in a cell: {'Param1' 'Param2',...}
 limit     Default limits on the input parameters, dimensions are [2 nX].
           Every column contains a lower and upper limit on the parameter.

 See also GM_PLANAR.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1