AntisymmetricTensor¶
-
class
mrsimulator.spin_system.tensors.AntisymmetricTensor(*, property_units: Dict = {'alpha': 'rad', 'beta': 'rad', 'zeta': 'ppm'}, zeta: float = None, alpha: float = None, beta: float = None)¶ Bases:
mrsimulator.utils.parseable.ParseableBase SymmetricTensor class representing the traceless symmetric part of an irreducible second-rank tensor.
-
zeta¶ The anisotropy parameter of the AntiSymmetricTensor expressed using the Haeberlen convention. The default value is None.
-
alpha¶ Euler angle, alpha, given in radian. The default value is None.
-
beta¶ Euler angle, beta, given in radian. The default value is None.
Method Documentation
-
to_freq_dict(larmor_frequency: float) → dict¶ Serialize the AntisymmetricTensor object to a JSON compliant python dictionary where the attribute values are numbers expressed in default units. The default unit for attributes with respective dimensionalities are: - frequency: Hz - angle: rad
- Parameters
larmor_frequency (float) – The larmor frequency in MHz.
- Returns
Python dict
-
json() → dict¶ Parse the class object to a JSON compliant python dictionary object where the attribute value with physical quantity is expressed as a string with a number and a unit.
-