1 #ifndef SMOMPI_OneMasterMacroCellsMagnetizationField_H
2 #define SMOMPI_OneMasterMacroCellsMagnetizationField_H
5 #include "SM_MacroCellsMagnetizationField.h"
8 #include "SMOMPI_OneMasterMacroCellsNetwork.h"
30 std::valarray<tInteger> mCoreBBMacroCellsIndex;
31 std::valarray<tReal> mCorePM;
57 inline static CORE_UniquePointer<SelfClass>
New() {
58 return CORE_UniquePointer<SelfClass>(
new SelfClass(),
65 virtual CORE_UniquePointer<SM_MacroCellsMagnetizationField>
newInstance()
const override {
96 mem+=mDomainM.
getSize()*
sizeof(tReal);
97 mem+=mCoreBBMacroCellsIndex.size()*
sizeof(tInteger);
98 mem+=mCorePM.size()*
sizeof(tReal);
tIndex getSize() const
return the number values of the container
Definition: CORE_Field.h:161
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class describes an MPI implementation of the magnetization field for one master core.
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:21
virtual void discretize(const SM_Material &material, const SM_MacroCellsNetwork &network) final
discretize the field It does :
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.cpp:10
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:94
virtual ~SMOMPI_OneMasterMacroCellsMagnetizationField(void)
destroy
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:44
virtual CORE_UniquePointer< SM_MacroCellsMagnetizationField > newInstance() const override
create a New instance of this
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:65
const SM_RealField & getBoundingBoxMacroCellsMagnetizationField() const
get the magnetization field on all not empty macro cells of the bounding box of macro cells
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:104
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:82
virtual void computeField(const SM_Material &material, const SM_MacroCellsNetwork &network, const SM_RealField &S, SM_RealField &M) final
compute the magnetization field from S
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.cpp:26
static CORE_UniquePointer< SelfClass > New()
build a new instance of the operator
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:57
SMOMPI_OneMasterMacroCellsMagnetizationField(void)
create a network class
Definition: SMOMPI_OneMasterMacroCellsMagnetizationField.h:37
This class is describes a Magnetization field.
Definition: SM_MacroCellsMagnetizationField.h:23
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_MacroCellsMagnetizationField.h:101
This class is describes a macro cell network.
Definition: SM_MacroCellsNetwork.h:25
This class describes a materials defined by state attributes:
Definition: SM_Material.h:61