|
C++ mpi module for stochmagnet_main Package
|
This class stores stochastic outpus computed for each trajectory of a simulation of trajectories of a beam. More...
#include <SM_StochasticOutputComponent.h>


Public Member Functions | |
| SM_StochasticOutputComponent (void) | |
| create | |
| virtual | ~SM_StochasticOutputComponent (void) |
| destroy | |
| virtual tMemSize | getMemorySize () const |
| return the memory size of the class and the memory size of all its attributes/associations More... | |
| virtual tMemSize | getContentsMemorySize () const |
| return the memory size of the included associations More... | |
| virtual void | copy (const SM_StochasticOutputComponent &c) |
| copy More... | |
| virtual void | setOutputPath (const tString &path) |
| set the output path More... | |
| const tString & | getOutputPath () const |
| return the output path More... | |
| virtual void | setPrefix (const tString &prefix) |
| set the prefix of generated files More... | |
| const tString & | getPrefix () const |
| return the prefix More... | |
| virtual void | setIndex (const int &index, const int &rootIndex, const int &n) |
| set index of the output component More... | |
| void | setIndex (const int &index, const int &n) |
| set index of the output component More... | |
| const int & | getIndex () const |
| get the index of the output component | |
| const int & | getRootIndex () const |
| get the root index of the output component | |
| const int & | getIndicesNumber () const |
| get the number of output components | |
| void | setDrawnStepsNumber (const tInteger &n) |
| set the number of steps for drawn for the stochastic output More... | |
| const tInteger & | getDrawnStepsNumber () const |
| get the drawn number to compute the stochastic output More... | |
| void | setPackedSimulationsIndex (const tInteger &i) |
| set packed simulations index More... | |
| const tInteger & | getPackedSimulationsIndex () const |
| get packed simulations index More... | |
| void | setPackedSimulationsNumber (const tInteger &n) |
| set packed simulations number More... | |
| const tInteger & | getPackedSimulationsNumber () const |
| get packed simulations number More... | |
| const tBoolean & | hasLogPerPackedSimulations () const |
| return true if the stochastic output has log per pack of simulations | |
| void | setHasLogPerPackedSimulations (const tBoolean &v) |
| set to true if the stochastic output has log per pack of simulations More... | |
| const tIndex & | getPackedRawValuesNumber () const |
| get the packed raw values number More... | |
| tIndex & | getPackedRawValuesNumber () |
| get the packed raw values number More... | |
| std::valarray< tReal > & | getPackedRawValues () |
| get the packed raw values More... | |
| const std::valarray< tReal > & | getPackedRawValues () const |
| get the packed raw values More... | |
| const std::vector< tString > & | getOutputDescription () const |
| get the string representation of the output values More... | |
| void | setOutputDescription (const std::vector< tString > &v) |
| et the output description More... | |
| const std::valarray< tReal > & | getOutputValues () const |
| get the output values of the stochastic output for reading More... | |
| std::valarray< tReal > & | getOutputValues () |
| get the output values of the stochastic output for writing More... | |
| virtual tBoolean | openComponent (const SM_Beam &beam)=0 |
| open the stochastic data More... | |
| virtual tBoolean | openComponent (const tIndex &s, const SM_System &system)=0 |
| open the stochastic data for simulation s More... | |
| virtual tBoolean | storeComponent (const SM_System &system)=0 |
| store the stochastic data during the relation method of the system More... | |
| virtual tBoolean | closeComponent (const tIndex &s, const SM_System &system, const tBoolean &hasSucceeded)=0 |
| close the stochastic data for the simulation s More... | |
| virtual tBoolean | closeComponent (const SM_Beam &beam)=0 |
| close stochastic data at the end of all simulations More... | |
| virtual void | closePackedSimulations (const SM_Beam &beam, const tIndex &rawValuesNumber, const std::valarray< tReal > &rawValues)=0 |
| close the raws values for packed simulations More... | |
| virtual void | adimensionize (const SM_Material &material)=0 |
| adimensionize the output compoent with material characteristic More... | |
| virtual tString | toString () const override |
| return the string representation of the class | |
Public Member Functions inherited from SM_Object | |
| SM_Object (void) | |
| create | |
| virtual | ~SM_Object (void) |
| destroy | |
Public Member Functions inherited from CORE_Object | |
| template<class T > | |
| std::shared_ptr< T > | getSharedPointer () |
| return the shared pointer for this More... | |
| template<class T > | |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| return a const shared pointer for this More... | |
| template<class T > | |
| tBoolean | isInstanceOf () const |
| test if the clas T is an instance of this class More... | |
| tString | getClassName () const |
| return the name of the class More... | |
| tString | getPointerString () const |
| retrun the pointer of the class as a string More... | |
| tString | getIdentityString () const |
| retrun the string identification of the class More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CORE_Object | |
| static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
| enable the memory stack More... | |
| static void | EnableMemoryStack () |
| enable the memory stack | |
| static void | DisableMemoryStack () |
| disable the memory stack | |
| static tBoolean | IsMemoryStackEnabled () |
| return trur if the memory stack is enabled | |
| static tString | MemoryStackToString () |
| get the memory stack in string More... | |
| static tIndex | GetRegisteredClassesNumber () |
| get the memory stack in string More... | |
Protected Member Functions inherited from CORE_Object | |
| CORE_Object () | |
| build an instance of the object | |
| virtual | ~CORE_Object () |
| destroy the instance of object std | |
This class stores stochastic outpus computed for each trajectory of a simulation of trajectories of a beam.
The data attributes are
The state attributes are :
|
pure virtual |
adimensionize the output compoent with material characteristic
| [in] | material | material to adimensonize the data |
Implemented in SM_StochasticXDMF, SM_StochasticTrajectory, SM_StochasticJs, SM_StochasticHysteresis, SM_StochasticEnergy, SM_StochasticDecreasingNoise, SM_StochasticCurieTemperature, SM_StochasticBoltzmann, and SM_StochasticOutputList.
|
pure virtual |
close stochastic data at the end of all simulations
| [in] | beam | close the stochastic output for beam runs |
Implemented in SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
pure virtual |
close the stochastic data for the simulation s
| [in] | s | : index of the simulation |
| [in] | system | system to close |
| [in] | hasSucceeded | result of the simulation |
Implemented in SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
pure virtual |
close the raws values for packed simulations
| [in] | beam | : beam of the simulations |
| [in] | rawValuesNumber | : number of raws |
| [in] | rawValues | : values of raw |
Do nothing by default
Implemented in SM_StochasticXDMF, SM_StochasticTrajectory, SM_StochasticJs, SM_StochasticHysteresis, SM_StochasticEnergy, SM_StochasticDecreasingNoise, SM_StochasticCurieTemperature, SM_StochasticBoltzmann, and SM_StochasticOutputList.
|
inlinevirtual |
copy
| [in] | c | stochastic data to copy |
Reimplemented in SM_StochasticXDMF, SM_StochasticTrajectory, SM_StochasticJs, SM_StochasticHysteresis, SM_StochasticCurieTemperature, SM_StochasticBoltzmann, SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
inlinevirtual |
return the memory size of the included associations
Reimplemented from CORE_Object.
Reimplemented in SM_StochasticXDMF, SM_StochasticTrajectory, SM_StochasticJs, SM_StochasticHysteresis, SM_StochasticEnergy, SM_StochasticDecreasingNoise, SM_StochasticCurieTemperature, SM_StochasticBoltzmann, SM_StochasticOutputList, SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
inline |
get the drawn number to compute the stochastic output
|
inlinevirtual |
return the memory size of the class and the memory size of all its attributes/associations
Reimplemented from SM_Object.
Reimplemented in SM_StochasticXDMF, SM_StochasticTrajectory, SM_StochasticJs, SM_StochasticHysteresis, SM_StochasticEnergy, SM_StochasticDecreasingNoise, SM_StochasticCurieTemperature, SM_StochasticBoltzmann, SM_StochasticOutputList, SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
inline |
get the string representation of the output values
|
inline |
return the output path
|
inline |
get the output values of the stochastic output for writing
|
inline |
get the output values of the stochastic output for reading
|
inline |
get the packed raw values
|
inline |
get the packed raw values
|
inline |
get the packed raw values number
|
inline |
get the packed raw values number
|
inline |
get packed simulations index
|
inline |
get packed simulations number
|
inline |
return the prefix
|
pure virtual |
open the stochastic data
| [in] | beam | : beam that open the data |
Implemented in SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
pure virtual |
open the stochastic data for simulation s
| [in] | s | : index of the simulation |
| [in] | system | : system to save |
Implemented in SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.
|
inline |
set the number of steps for drawn for the stochastic output
| [in] | n | :the number of drawn for the stochastic output |
|
inline |
set to true if the stochastic output has log per pack of simulations
| [in] | v | boolean value |
|
inline |
set index of the output component
| [in] | index | index of the stochastic output |
| [in] | n | : number of stochastic output |
|
inlinevirtual |
set index of the output component
| [in] | index | index of the stochastic output |
| [in] | rootIndex | root index of the stochastic output |
| [in] | n | : number of stochastic output |
Reimplemented in SM_StochasticOutputList.
|
inline |
et the output description
| [in] | v | output description. The size of v must be the same as the sier of getOutputValues(); |
|
inlinevirtual |
set the output path
| [in] | path | : output path to generate the files |
Reimplemented in SM_StochasticOutputList.
|
inline |
set packed simulations index
| [in] | i | : index of the packed simulations |
|
inline |
set packed simulations number
| [in] | n | : number of the packed simulations |
|
inlinevirtual |
set the prefix of generated files
| [in] | prefix | : prefix of the generated files |
Reimplemented in SM_StochasticOutputList.
|
pure virtual |
store the stochastic data during the relation method of the system
| [in] | system | : system to save |
Implemented in SM_StochasticOutput< StochOutputImplement >, SM_StochasticOutput< SM_StochasticJs >, SM_StochasticOutput< SM_StochasticXDMF >, SM_StochasticOutput< SM_StochasticEnergy >, SM_StochasticOutput< SM_StochasticTrajectory >, SM_StochasticOutput< SM_StochasticBoltzmann >, SM_StochasticOutput< SM_StochasticOutputList >, SM_StochasticOutput< SM_StochasticHysteresis >, SM_StochasticOutput< SM_StochasticCurieTemperature >, and SM_StochasticOutput< SM_StochasticDecreasingNoise >.