56 std::valarray<tReal>
mMu;
59 std::valarray<tReal>
mEs;
254 }
catch (std::exception& e) {
261 }
catch (std::exception& e) {
356 std::stringstream ret;
362 ret<<
"stochastic Function:";
369 ret<<
mSystem->toString()<<
"\n";
378 template<
class SystemImpl,
class NoiseImpl>
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:259
tBoolean isInstanceOf() const
test if the clas T is an instance of this class
Definition: CORE_Object.h:271
virtual tString toString() const
return the string representation of the object node
Definition: CORE_Object.h:314
void printError(const tString &msg)
print the message on error output
Definition: CORE_Out.h:288
static CORE_Out & Out()
return the output stream
Definition: CORE_Run.h:174
This class is a simulation of a beam of trajectories class for Stoch Microm package.
Definition: SM_Beam.h:46
tIndex templatedSimulate()
simulate a beam by computing mu field by calling only templated methods
Definition: SM_Beam.h:313
SM_Beam(void)
create
Definition: SM_Beam.h:82
std::valarray< tReal > mDMu
Definition: SM_Beam.h:75
CORE_UniquePointer< SM_System > mSystem
Definition: SM_Beam.h:71
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_Beam.h:133
std::valarray< tReal > & getEnergies()
return the energies array
Definition: SM_Beam.h:224
std::valarray< tReal > & getMagneticMoment()
return the mu array
Definition: SM_Beam.h:212
virtual tString toString() const override
turn the class into a string representation
Definition: SM_Beam.h:355
std::valarray< tReal > mMu
Definition: SM_Beam.h:56
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_Beam.h:121
std::valarray< tReal > mEs
Definition: SM_Beam.h:59
void setSystem(CORE_UniquePointer< SM_System > &sys)
set the system
Definition: SM_Beam.h:185
tIndex mBeamSize
Definition: SM_Beam.h:53
virtual SM_System & getSystem()
return the system for writing
Definition: SM_Beam.h:198
void discretize()
discretize the system
Definition: SM_Beam.h:232
tIndex simulate()
simulate a beam by computing mu field by calling only virtual methods
Definition: SM_Beam.cpp:13
tIndex runSimulations()
run the simulations
Definition: SM_Beam.h:295
const std::valarray< tReal > & getDeterministicEnergies() const
return the deterministic energies
Definition: SM_Beam.h:288
tBoolean mIsTemplatedSimulateVersion
Definition: SM_Beam.h:62
const tIndex & getBeamSize() const
get the beam size
Definition: SM_Beam.h:166
const std::valarray< tReal > & getEnergies() const
return the Energy array
Definition: SM_Beam.h:218
static CORE_UniquePointer< SM_Beam > New()
build a new instance of a SM_Beam
Definition: SM_Beam.h:99
virtual ~SM_Beam(void)
destroy
Definition: SM_Beam.h:90
CORE_UniquePointer< SM_System > mDeterministicSystem
Definition: SM_Beam.h:74
void computeL2Convergence(std::valarray< tReal > &L2conv) const
compute the L2 convergence for mu
Definition: SM_Beam.cpp:67
void setBeamSize(const tIndex &n)
set the beam size
Definition: SM_Beam.h:160
CORE_UniquePointer< SM_StochasticFunction > mStochasticFunction
Definition: SM_Beam.h:68
std::valarray< tReal > mDEs
Definition: SM_Beam.h:76
void setStochasticFunction(CORE_UniquePointer< SM_StochasticFunction > &f)
set the stochastic function
Definition: SM_Beam.h:173
const SM_StochasticFunction & getStochasticFunction() const
get the stochastic function
Definition: SM_Beam.h:179
void setIsTemplatedSimulateVersion(const tBoolean &v)
set true if the templated simulate method is called
Definition: SM_Beam.h:153
const std::valarray< tReal > & getMagneticMoment() const
return the mu array
Definition: SM_Beam.h:206
virtual const SM_System & getSystem() const
return the system for reading
Definition: SM_Beam.h:191
This class describes an noise rate function of the form .
Definition: SM_ConstantNoiseRateFunction.h:13
static CORE_UniquePointer< SM_ConstantNoiseRateFunction > New()
build a new instance of a SM_NoiseRateFunction
Definition: SM_ConstantNoiseRateFunction.h:61
This class describes an noise rate function of the form .
Definition: SM_InverseNoiseRateFunction.h:13
This class is a simulation of one trajectory class for Stoch Microm package based on Ito system.
Definition: SM_ItoSystem.h:12
static CORE_UniquePointer< SM_ItoSystem > New()
build a new instance of a system
Definition: SM_ItoSystem.h:45
This class is describes a a network.
Definition: SM_Network.h:18
tDimension getDimension() const
return the dimension
Definition: SM_Network.h:133
tInteger getParticlesNumber() const
return the particles number
Definition: SM_Network.h:146
This class describes a noise rate function.
Definition: SM_NoiseRateFunction.h:13
This class is a base class for Stoch Microm package.
Definition: SM_Object.h:19
This class describes a stochastic function interface to generate random numbers.
Definition: SM_StochasticFunction.h:15
This class is a simulation of one trajectory class for Stoch Microm package based on Stratonovich sys...
Definition: SM_StratonovichNormalizedSystem.h:12
This class is a simulation of one trajectory class for Stoch Microm package based on Stratonovich sys...
Definition: SM_StratonovichSystem.h:12
This class is a simulation of one trajectory class for Stoch Microm package.
Definition: SM_System.h:51
tIndex getOperatorsNumber() const
get the operator with name
Definition: SM_System.h:317
const SM_LandauLifschitzFunction & getLandauLifschitzFunction() const
get the Landau Lifschitz function return the Landau lifschitz function for reading
Definition: SM_System.h:262
const SM_RealField & getInitialMagneticMoment() const
set the initial Magnetic Moment
Definition: SM_System.h:224
SM_NoiseRateFunction & getNoiseRateFunction()
get the noise rate function
Definition: SM_System.h:245
const SM_Network & getNetwork() const
get the network
Definition: SM_System.h:165
const SM_TimeStepper & getTimeStepper() const
get the time stepper
Definition: SM_System.h:180
This class is describes a time stepper.
Definition: SM_TimeStepper.h:13
const tIndex & getMaximumTimeStepsNumber() const
return the time steps number
Definition: SM_TimeStepper.h:130
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tIndex
Definition: types.h:157
#define tString
Definition: types.h:147
#define tMemSize
Definition: types.h:166
#define tBoolean
Definition: types.h:151
#define tReal
Definition: types.h:137