1 #ifndef EMMG_CubicAnisotropyOperator_H 2 #define EMMG_CubicAnisotropyOperator_H 47 inline static SP::EMMG_CubicAnisotropyOperator
New() {
73 if (nCells==0)
return;
77 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeMagneticExcitationField(..)",
78 "M is an incompatible real field");
82 if (gH==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeMagneticExcitationField(..)",
83 "H is an incompatible real field");
112 if (nCells==0)
return true;
116 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeMagneticExcitationFieldGradient(..)",
117 "M is an incompatible real field");
121 if (gD==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeMagneticExcitationFieldGradient(..)",
122 "D is an incompatible real field");
125 if (gGradH==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeMagneticExcitationFieldGradient(..)",
126 "gradH is an incompatible real field");
155 if (nCells==0)
return 0;
159 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeEnergyWithMagneticExcitation(..)",
160 "M is an incompatible real field");
189 if (nCells==0)
return 0;
193 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_CubicAnisotropyOperator:: computeEnergy(..)",
194 "M is an incompatible real field");
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_CubicAnisotropyOperator.h:100
virtual tUIndex getSize() const =0
return the size of the field
tReal computeEnergy(const tUIndex &nCells, const tDimension &dim, const EMM_RealArray &sigma, const tReal *M) const
compute the energy of the anistropy operator
Definition: EMM_CubicAnisotropyOperator.cpp:23
This class describes a generic real field.
Definition: EMMG_RealField.h:17
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_CubicAnisotropyOperator.cpp:431
#define tBoolean
Definition: types.h:139
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_CubicAnisotropyOperator.h:62
EMMG_CubicAnisotropyOperator(void)
create
Definition: EMMG_CubicAnisotropyOperator.h:32
#define null
Definition: types.h:144
static SP::EMMG_CubicAnisotropyOperator New()
create a cubic anisotropy operator
Definition: EMMG_CubicAnisotropyOperator.h:47
#define tDimension
Definition: EMM_Types.h:10
virtual tReal computeEnergyWithMagneticExcitation(const tReal &t, const EMM_RealArray &sigma, const EMM_RealField &M, const EMM_RealField &H) const
compute the energy E of the operator
Definition: EMMG_CubicAnisotropyOperator.h:145
DEFINE_SPTR(EMMG_CubicAnisotropyOperator)
This class describes the cubic anistropy operator of the landau lifschitz system EMM_LandauLifschitzS...
Definition: EMM_CubicAnisotropyOperator.h:82
#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
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_CubicAnisotropyOperator.cpp:231
this class describes the exceptions raised for E-MicromM package
Definition: EMM_Exception.h:14
virtual ~EMMG_CubicAnisotropyOperator(void)
destroy
Definition: EMMG_CubicAnisotropyOperator.h:39
This class describes a real field.
Definition: EMM_RealField.h:21
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_CubicAnisotropyOperator.h:182
virtual void setSize(const tUIndex &n)=0
set the size
#define tReal
Definition: types.h:118
SP_OBJECT(EMMG_CubicAnisotropyOperator)
This class describes the cubic anistropy operator EMM_CubicAnisotropyOperator of the landau lifschitz...
Definition: EMMG_CubicAnisotropyOperator.h:17
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141