1 #ifndef SM_LandauLifschitzBeam_HPP
2 #define SM_LandauLifschitzBeam_HPP
4 template<
class StochOutputImplement>
6 const std::function<
void(
const tReal&,
const tReal& ,
const tReal&,tReal& )>& F) {
8 tString routineName=
"SM_Beam::stochasticJRun<O>,F";
17 if (!outputSData.
open(*
this)) {
18 std::cout<<
"stochastic output "<<outputSData.
getIdentityString()<<
" not compatible with the system \n";
29 for (tIndex s=s0;s<s1;s++) {
36 "SM_LandauLifschitzBeam::stochasticJRun(SM_StochasticOutput<StochOutputImplement>& outputSData,F)",
37 "initialization of S(t=0) failed");
40 outputSData.
open(s,system);
49 outputSData.
close(s,system,ok);
54 outputSData.
close(*
this);
this class describes the exceptions raised for CORE package
Definition: CORE_Exception.h:17
tString getIdentityString() const
retrun the string identification of the class
Definition: CORE_Object.h:321
static void EndCallRoutine(const tString &routineName)
end calling routine
Definition: CORE_Profiler.h:91
static void StartCallRoutine(const tString &routineName)
start calling routine
Definition: CORE_Profiler.h:61
const SM_System & getSystem() const
get the system
Definition: SM_Beam.h:264
const SM_MultiStochasticFunctionsInterface & getStochasticFunctions() const
get the stochastic functions
Definition: SM_Beam.h:236
const tIndex & getBeamSize() const
get the beam size
Definition: SM_Beam.h:166
const tIndex & getStepsNumber() const
get the number of steps for stochastic computation
Definition: SM_Beam.h:207
const tIndex & getPreconditioningStepsNumber() const
get the number of steps for precoditioning
Definition: SM_Beam.h:194
tBoolean stochasticJRun(SM_StochasticOutput< StochOutputImplement > &outputSData, const std::function< void(const tReal &, const tReal &, const tReal &, tReal &)> &F)
run the simulations
Definition: SM_LandauLifschitzBeam.hpp:5
This class is a simulation of one trajectory class for Stoch Magnet package.
Definition: SM_LandauLifschitzSystem.h:59
tBoolean stochasticJRun(const tIndex &steppersNumber, SM_StochasticFunctionsInterface &stochasticFunctions, const std::function< void(const tReal &, const tReal &, const tReal &, tReal &)> &F)
compute the steppers number of system for reaching the relaxed state
Definition: SM_LandauLifschitzSystem.cpp:130
virtual tBoolean initializeMagneticMomentDirections() override
initialize magnetic moments direction _ time step index = 0
Definition: SM_LandauLifschitzSystem.h:188
This class describes a stochastic functions based on same random number generator which implement ran...
Definition: SM_StochasticFunctionsInterface.h:18
this class implements the virtual methods of its base class SM_StochasticOutputComponent with templat...
Definition: SM_StochasticOutput.h:24
tBoolean close(const tIndex &s, const SM_System &system, const tBoolean &hasSucceeded)
close the stochastic data for the simulation s
Definition: SM_StochasticOutput.h:172
tBoolean open(const SM_Beam &beam)
open the stochastic data
Definition: SM_StochasticOutput.h:147