1 #ifndef EMMG_MagnetostrictionOperator_H 2 #define EMMG_MagnetostrictionOperator_H 54 inline static SP::EMMG_MagnetostrictionOperator
New() {
79 if (nCells==0)
return;
83 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_MagnetostrictionOperator::computeMagneticExcitationField(..)",
84 "M is an incompatible real field");
89 if (gH==
null)
throw EMM_Exception(
"generic",
"EMMG_MagnetostrictionOperator:: computeMagneticExcitationField(..)",
90 "H is an incompatible real field");
108 "EMMG_MagnetostrictionOperator::computeMagneticExcitationFieldGradient()",
109 "gradient of operator is not computationable");
139 if (nCells==0)
return 0;
143 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_MagnetostrictionOperator::computeMagneticExcitationField(..)",
144 "M is an incompatible real field");
147 if (gH==
null)
throw EMM_Exception(
"generic",
"EMMG_MagnetostrictionOperator::computeMagneticExcitationField(..)",
148 "H is an incompatible real field");
174 if (nCells==0)
return 0;
178 if (gM==
null)
throw EMM_Exception(
"generic",
"EMMG_MagnetostrictionOperator:: computeEnergy(..)",
179 "M is an incompatible real field");
virtual ~EMMG_MagnetostrictionOperator(void)
destroy
Definition: EMMG_MagnetostrictionOperator.h:46
virtual tUIndex getSize() const =0
return the size of the 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_MagnetostrictionOperator.h:102
This class describes a generic real field.
Definition: EMMG_RealField.h:17
static SP::EMMG_MagnetostrictionOperator New()
create a cubic anisotropy operator
Definition: EMMG_MagnetostrictionOperator.h:54
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_MagnetostrictionOperator.h:167
#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_MagnetostrictionOperator.h:69
SP_OBJECT(EMMG_MagnetostrictionOperator)
This class describes the magnetostriction operator EMM_MagnetostrictionOperator of the landau lifschi...
Definition: EMMG_MagnetostrictionOperator.h:15
#define null
Definition: types.h:144
#define tDimension
Definition: EMM_Types.h:10
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_MagnetostrictionOperator.cpp:124
tReal computeEnergy(const tReal &t, const tUIndex &nCells, const tDimension &dim, const EMM_RealArray &sigma, const tReal *M) const
compute the energy of the magnetostriction operator at current displacement and velocity ...
Definition: EMM_MagnetostrictionOperator.cpp:203
#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
DEFINE_SPTR(EMMG_MagnetostrictionOperator)
this class describes the exceptions raised for E-MicromM package
Definition: EMM_Exception.h:14
EMMG_MagnetostrictionOperator(void)
create
Definition: EMMG_MagnetostrictionOperator.h:39
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
This class describes the magnetostriction operator of the landau lifshcitz system EMM_LandauLifschitz...
Definition: EMM_MagnetostrictionOperator.h:207
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_MagnetostrictionOperator.h:132
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141