1 #ifndef SM_StratonovichNormalizedSystem_H
2 #define SM_StratonovichNormalizedSystem_H
85 mK=alpha*alpha*(1+beta*beta);
106 tReal *mu_tpdt)
const {
120 tReal *mu_tpdt_p,*mu_tpdt_i=mu_tpdt;
123 const tReal *mu_t_i=mu_t;
126 for (p=0;p<nParticles;p++) {
132 for (k=0;k<dim;k++) {
134 (*mu_tpdt_i)+=(1-K*epsilon_t*epsilon_t*dt)*(*mu_t_i);
136 invNormMu+=(*mu_tpdt_i)*(*mu_tpdt_i);
143 if (invNormMu>EPSILON<tReal>) {
145 invNormMu=1./sqrt(invNormMu);
148 (*mu_tpdt_i)*=invNormMu;
tUCInt tDimension
Definition: CORE_StdPtrField.h:567
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
This class describes a landau lifschitz function of the form :
Definition: SM_LandauLifschitzFunction.h:26
const tReal & getAlpha() const
get the alpha parameter
Definition: SM_LandauLifschitzFunction.h:130
const tReal & getBeta() const
get the beta parameter
Definition: SM_LandauLifschitzFunction.h:137
This class is a simulation of one trajectory class for Stoch Microm package based on Stratonovich sys...
Definition: SM_StratonovichNormalizedSystem.h:12
virtual void discretize() override
discretize the system It computes the Stratonovich constant depending on the parameters of the Landau...
Definition: SM_StratonovichNormalizedSystem.h:80
virtual ~SM_StratonovichNormalizedSystem(void)
destroy the class
Definition: SM_StratonovichNormalizedSystem.h:32
SM_StratonovichNormalizedSystem(void)
create a class
Definition: SM_StratonovichNormalizedSystem.h:25
const tReal & getK() const
return the stratonovich constant
Definition: SM_StratonovichNormalizedSystem.h:72
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_StratonovichNormalizedSystem.h:61
tBoolean computeTemplatedMuAtNextTimeStep(const tReal &dt, const tReal &epsilon_t, const tIndex &nParticles, const tDimension &dim, const tReal *mu_t, tReal *mu_tpdt) const
compute mu at time step
Definition: SM_StratonovichNormalizedSystem.h:103
static CORE_UniquePointer< SM_StratonovichNormalizedSystem > New()
build a new instance of a system
Definition: SM_StratonovichNormalizedSystem.h:41
tReal mK
Definition: SM_StratonovichNormalizedSystem.h:19
const SM_LandauLifschitzFunction & getLandauLifschitzFunction() const
get the Landau Lifschitz function return the Landau lifschitz function for reading
Definition: SM_System.h:262
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_System.h:140
Definition: SM_TemplatedSystem.h:19
virtual void discretize()
discretize the system
Definition: SM_TemplatedSystem.h:97
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tIndex
Definition: types.h:157
#define tMemSize
Definition: types.h:166
#define tBoolean
Definition: types.h:151
#define tReal
Definition: types.h:137