1 #ifndef EMMG_AnisotropyOperator_H 2 #define EMMG_AnisotropyOperator_H 54 inline static SP::EMMG_AnisotropyOperator
New() {
79 if (nCells==0)
return;
83 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationField(..)",
84 "M is an incompatible real field");
89 if (gH==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator:: computeMagneticExcitationField(..)",
90 "H is an incompatible real field");
114 if (nCells==0)
return 0;
118 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationFieldGradient(..)",
119 "M is an incompatible real field");
123 if (gD==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationFieldGradient(..)",
124 "D is an incompatible real field");
129 if (gGradH==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationFieldGradient(..)",
130 "gradH is an incompatible real field");
160 if (nCells==0)
return 0;
164 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationField(..)",
165 "M is an incompatible real field");
168 if (gH==
null)
throw EMM_Exception(
"generic",
"EMMG_AnisotropyOperator::computeMagneticExcitationField(..)",
169 "H is an incompatible real field");
virtual ~EMMG_AnisotropyOperator(void)
destroy
Definition: EMMG_AnisotropyOperator.h:46
virtual tUIndex getSize() const =0
return the size of the field
DEFINE_SPTR(EMMG_AnisotropyOperator)
This class describes a generic real field.
Definition: EMMG_RealField.h:17
SP_OBJECT(EMMG_AnisotropyOperator)
#define tBoolean
Definition: types.h:139
This class describes the mixed anistropy operator EMM_AnisotropyOperator of the landau lifschitz syst...
Definition: EMMG_AnisotropyOperator.h:15
#define null
Definition: types.h:144
#define tDimension
Definition: EMM_Types.h:10
virtual tBoolean computeMagneticExcitationFieldGradient(const tUIndex &nCells, const tDimension &dim, const EMM_RealArray &sigma, const tReal *M, const tReal *D, tReal *gradH) const
compute the gradient of the magnetic excitation field at M in the direction D
Definition: EMM_AnisotropyOperator.cpp:548
virtual void computeMagneticExcitationField(const tUIndex &nCells, const tDimension &dim, const EMM_RealArray &sigma, const tReal *M, tReal *H) const
compute the normalized excitation magnetic field at M
Definition: EMM_AnisotropyOperator.cpp:399
virtual tReal computeEnergyWithMagneticExcitation(const tReal &t, const EMM_RealArray &sigma, const EMM_RealField &M, const EMM_RealField &H) const
compute the energy of the operator
Definition: EMMG_AnisotropyOperator.h:154
virtual tBoolean computeMagneticExcitationFieldGradient(const EMM_RealArray &sigma, const EMM_RealField &M, const EMM_RealField &D, EMM_RealField &gradH) const
compute the gradient of the magnetic excitation field at M in the direction D
Definition: EMMG_AnisotropyOperator.h:102
#define tUIndex
Definition: types.h:126
This class describes a real array.
Definition: EMM_RealArray.h:16
const tDimension & getDimension() const
get the dimension
Definition: EMM_RealField.h:553
static SP::EMMG_AnisotropyOperator New()
create a cubic anisotropy operator
Definition: EMMG_AnisotropyOperator.h:54
virtual void computeMagneticExcitationField(const EMM_RealArray &sigma, const EMM_RealField &M, EMM_RealField &H) const
compute the normalized excitation magnetic field at M
Definition: EMMG_AnisotropyOperator.h:69
virtual tReal computeEnergy(const tReal &t, const EMM_RealArray &sigma, const EMM_RealField &M, EMM_RealField &W) const
compute the energy of the operator
Definition: EMMG_AnisotropyOperator.h:193
EMMG_AnisotropyOperator(void)
create
Definition: EMMG_AnisotropyOperator.h:39
this class describes the exceptions raised for E-MicromM package
Definition: EMM_Exception.h:14
virtual tReal computeEnergyWithMagneticExcitation(const tUIndex &nCells, const tDimension &dim, const EMM_RealArray &sigma, const tReal *M, const tReal *H) const
compute the energy of the anistropy operator
Definition: EMM_AnisotropyOperator.cpp:247
This class describes the mixed anistropy operators of the landau lifschitz system EMM_LandauLifschitz...
Definition: EMM_AnisotropyOperator.h:53
This class describes a real field.
Definition: EMM_RealField.h:21
virtual void setSize(const tUIndex &n)=0
set the size
#define tReal
Definition: types.h:118
tReal computeMagneticExcitationFieldAndEnergy(const tReal &t, const EMM_RealArray &sigma, const EMM_RealField &Mt, EMM_RealField &Ht) const
compute the energy of the operator
Definition: EMM_MagneticExcitationOperator.h:92
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141