C++ main module for emicrom Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
EMMG_RealField Class Reference

This class describes a generic real field. More...

#include <EMMG_RealField.h>

Inheritance diagram for EMMG_RealField:
Inheritance graph
[legend]
Collaboration diagram for EMMG_RealField:
Collaboration graph
[legend]

Public Member Functions

 EMMG_RealField ()
 create More...
 
virtual ~EMMG_RealField (void)
 destroy More...
 
virtual SP::EMM_RealField NewInstance () const
 create a new instance of real field with the smae dimension and size More...
 
tRealoperator() (const tUIndex &i, const tDimension &d)
 get the value at point i for coordinate d More...
 
const tRealoperator() (const tUIndex &i, const tDimension &d) const
 get the value at point i for coordinate d More...
 
tRealoperator[] (const tUIndex &i)
 get the value at index More...
 
const tRealoperator[] (const tUIndex &i) const
 get the value at index More...
 
virtual void setSize (const tUIndex &s)
 set the size More...
 
virtual void copy (const EMM_RealField &f)
 copy the real vector More...
 
virtual void initField (const tReal &alpha, const EMM_RealField &f)
 init the field to the field multiplied by alpha This=alpha.f More...
 
virtual void initField (const EMM_RealArray &alpha, const EMM_RealField &f)
 init the field to the field multiplied by alpha This=alpha.f More...
 
virtual void initField (const tUIndex &from, const tUIndex &to, const tReal &fx, const tReal &fy, const tReal &fz)
 init the field to the 3D vector More...
 
virtual void initField (const tUIndex &from, const tUIndex &to, const EMM_RealField &C)
 init a part of field to field More...
 
virtual void initField (const tReal &f)
 init the field to uniform value in each direction More...
 
virtual tBoolean initField (const tString &fileName)
 init the field by the file name More...
 
virtual void initField (const tReal &s, const EMM_RealArray &alpha, const tSInt &p, const EMM_RealField &f)
 init the field to the field multiplied by alpha This=s.alpha.f More...
 
virtual void unmagnetized (const EMM_Grid3D &mesh)
 unmagnetized the field in the mesh More...
 
virtual void setValue (const tUIndex &i, const tReal &v)
 set the value of the element at index i More...
 
virtual void setValue (const tUIndex &i, const tReal v[])
 set the value of the element at index i More...
 
virtual void fitToSize ()
 fit the memory size to the size More...
 
virtual void setFieldByReference (const tUIndex &from, const tUIndex &to, EMM_RealField &X)
 set the field by reference More...
 
virtual void wedge (const EMM_RealField &X, EMM_RealField &Y) const
 compute the vectorial product of two fields This & X Y=alpha this ^ X More...
 
virtual void wedge (const tReal &alpha, const EMM_RealField &X, EMM_RealField &Y) const
 compute the vectorial product of two fields This & X Y=alpha this ^ X More...
 
virtual tReal dot (const EMM_RealField &F, const EMM_RealField &G) const
 compute the scalar product <F,G> More...
 
virtual tReal dot (const EMM_RealArray &sigma, const EMM_RealField &F, const EMM_RealField &G) const
 compute the weight scalar product <F,G> More...
 
virtual tReal dot (const tUInt &q, const EMM_RealField &F, const EMM_RealField &G) const
 compute the $ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $ More...
 
virtual tReal dot (const tUInt &q, const EMM_RealArray &w, const EMM_RealField &F, const EMM_RealField &G) const
 compute the $ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $ More...
 
virtual void dotArray (const EMM_RealArray &w, const EMM_RealField &F, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik}) $ More...
 
virtual void dotArray (const tUInt &q, const EMM_RealField &F, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $ More...
 
virtual void dotArray (const EMM_RealField &F, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} F_{ik}.G_{ik}) $ More...
 
virtual void dotArray (const tUInt &q, const EMM_RealArray &w, const EMM_RealField &F, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $ More...
 
virtual void normalize ()
 normalize the field More...
 
virtual void mean (tReal *mean) const
 compute the mean of each direction More...
 
virtual void mean (const EMM_RealArray &w, tReal *mean) const
 compute the mean of each direction with respect of weight More...
 
virtual tULLInt getMemorySize () const
 return the memory size in bytes More...
 
const EMM_RealArraygetArray () const
 get the array for reading More...
 
EMM_RealArraygetArray ()
 get the array for writing More...
 
virtual tUIndex getSize () const
 return the size of the field More...
 
virtual tReal getValue (const tUIndex &i) const
 get the value of the element at index i More...
 
virtual void getValue (const tUIndex &i, tReal vs[]) const
 get the vector value at point i of size dim More...
 
virtual tString getTypeToString () const
 get the string type More...
 
virtual tBoolean getValues (tUIndex &size, const float *&values) const
 get the values More...
 
virtual tBoolean getValues (tUIndex &size, const double *&values) const
 get the values More...
 
virtual tBoolean getValues (tUIndex &size, const long double *&values) const
 get the values More...
 
virtual tBoolean getValues (tUIndex &size, float *&values)
 get the values More...
 
virtual tBoolean getValues (tUIndex &size, double *&values)
 get the values More...
 
virtual tBoolean getValues (tUIndex &size, long double *&values)
 get the values More...
 
virtual void add (const tReal &alpha, const EMM_RealField &X)
 compute This += alpha. X More...
 
virtual void add (const EMM_RealArray &alpha, const EMM_RealField &X)
 compute This += alpha. X More...
 
virtual void add (const EMM_RealField &f)
 compute This+=f More...
 
virtual void add (const tReal &s, const EMM_RealArray &alphas, const tSInt &p, const EMM_RealField &X)
 This+=s.alpha^p.X This[i][d]+=s.alpha[i]^p.X[i][d]. More...
 
virtual void sub (const EMM_RealField &f)
 compute This-=f More...
 
virtual void divideBy (const tReal &f)
 compute This/=f More...
 
virtual void divideBy (const EMM_RealArray &f)
 compute This*=f More...
 
virtual void multiplyBy (const tReal &f)
 compute This*=f More...
 
virtual void multiplyBy (const EMM_RealArray &f)
 compute This*=f More...
 
virtual tReal norm (const tUIndex &index) const
 compute the norm at point at index More...
 
virtual void norm (EMM_RealArray &mod) const
 compute the norm at all points More...
 
virtual tReal normMax (tUIndex &k) const
 compute the point where the norm of the field is maximum More...
 
virtual tReal distanceMax (const EMM_RealField &B, tUIndex &k) const
 compute the Max_i ||this[i]-B[i]|| More...
 
virtual tBoolean cellDataToPointData (const EMM_Grid3D &mesh)
 turn the field from cell data to point data More...
 
virtual tBoolean pointDataToCellData (const EMM_Grid3D &mesh)
 turn the field from point data to cll data More...
 
virtual tBoolean loadFromStream (ifstream &f, const tUSInt &d)
 load the steady array from stream the steam contains the values of the field. One value per line More...
 
virtual tBoolean loadFromStream (ifstream &f, vector< EMM_RealArray *> &indics)
 load the field and indicators associated to the field the stream will contain the values of the field. 3 value per line foolowed by indicators value More...
 
virtual tBoolean saveToStream (ofstream &f) const
 save the steady array into stream the steam will contain the values of the field. One value per line More...
 
virtual tBoolean saveToStream (ofstream &f, const vector< const EMM_RealArray *> &indics) const
 save the field and indicators associated to the field the stream will contain the values of the field. 3 value per line followed by indicator values More...
 
virtual tBoolean saveToVTKStream (ofstream &file, EMM_VTK &vtk, const tString &name) const
 save the field in vtk More...
 
virtual tBoolean saveToVTKStream (ofstream &file, EMM_VTK &vtk, const EMM_RealArray &weight, const tString &name) const
 save the field in vtk More...
 
virtual tString toString (const tUIndex &n) const
 return the string representation of the field More...
 
EMM_RealFieldoperator+= (const EMM_RealField &f)
 add a field This+=f More...
 
EMM_RealFieldoperator-= (const EMM_RealField &f)
 sub a field This-=f More...
 
EMM_RealFieldoperator/= (const tReal &f)
 divide with respect of a real More...
 
EMM_RealFieldoperator/= (const EMM_RealArray &f)
 
EMM_RealFieldoperator*= (const tReal &f)
 multiply the field by f More...
 
EMM_RealFieldoperator*= (const EMM_RealArray &f)
 multiply a vector field by a scalar field to obtain a real field : for all i in [0,N[ for all d in [0,3[, This[i][d]*=f[i] More...
 
void setDimension (const tDimension &d)
 set the dimension More...
 
void initField (const EMM_RealField &f)
 init the field to uniform value in each direction More...
 
void initField (const tReal &fx, const tReal &fy, const tReal &fz)
 init the field to the 3D vector More...
 
void setValue (const tUIndex &i, const tDimension &k, const tReal &v)
 set the value at point i and for coordinate k More...
 
virtual tReal dot (const EMM_RealField &F) const
 compute the scalar product More...
 
virtual tReal dot (const EMM_RealArray &sigma, const EMM_RealField &F) const
 compute the scalar product More...
 
tReal dot (const tUInt &q, const EMM_RealField &G) const
 compute the $ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $ More...
 
virtual tReal dot (const tUInt &q, const EMM_RealArray &w, const EMM_RealField &G) const
 compute the $ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $ More...
 
void dotArray (const tUInt &q, const EMM_RealArray &w, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $ More...
 
void dotArray (const tUInt &q, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $ More...
 
void dotArray (const EMM_RealArray &w, const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= w_i (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $ More...
 
void dotArray (const EMM_RealField &G, EMM_RealArray &R) const
 compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} T_{ik}.G_{ik})$ More...
 
const tDimensiongetDimension () const
 get the dimension More...
 
tReal getValue (const tUIndex &i, const tDimension &k) const
 get the value at point i and for coordinate k More...
 
virtual tString toString () const
 return the string representation of the field More...
 
tBoolean loadFromFile (const tString &fileName)
 load the steady array from file More...
 
tBoolean saveToFile (const tString &fileName) const
 save the steady array into file More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tBoolean isInstanceOf (const tString &name) const
 test if the object is an instance of className More...
 

Static Public Member Functions

static SP::EMMG_RealField New ()
 constructor with a shared pointer More...
 
static void mean (const tUIndex &nCells, const tDimension &dim, const tReal *vs, tReal *mean)
 compute the mean of the array of size N x dim More...
 
static void mean (const tUIndex &nCells, const tDimension &dim, const tReal *ws, const tReal *vs, tReal *mean)
 compute the mean of the array of size N x dim More...
 
static void setIsMemoryChecked (const tBoolean &v)
 set if the memory checking is used More...
 
static void setOut (SP::CORE_Out out)
 set the output stream More...
 
static void resetOut ()
 reset the output stream More...
 
static void setThread (SP::CORE_Thread thread)
 set the thread More...
 
static void resetThread ()
 reset the output stream More...
 
static CORE_Outout ()
 get the output More...
 
static SP::CORE_Out getOut ()
 get the output More...
 
static CORE_ThreadgetThread ()
 get the profilier More...
 
static const tBooleanisMemoryChecked ()
 get if the memory checking is used More...
 
static tString getClassName (const tString &identityString)
 return the class name of the object More...
 
template<class T >
static tString getTypeName ()
 get type name More...
 
static tBoolean is64Architecture ()
 return true if the machine is a 64 bits machine More...
 
static tBoolean is32Architecture ()
 return true if the machine is a 32 bits machine More...
 
static tString pointer2String (const void *obj)
 return the string representation of a pointer More...
 
static void printObjectsInMemory (ostream &f)
 print object in memory More...
 
static void printObjectsInMemory ()
 print object in memory in the standart output More...
 
static tChar getMaxChar ()
 get the max value for tChar type More...
 
static tChar getMinChar ()
 get the min value for tChar type More...
 
static tUChar getMaxUChar ()
 get the max value for tUChar type More...
 
static tUChar getMinUChar ()
 get the min value for tUChar type More...
 
static tSInt getMaxSInt ()
 get the max value for tSInt type More...
 
static tSInt getMinSInt ()
 get the min value for tSInt type More...
 
static tUSInt getMaxUSInt ()
 get the max value for tUSInt type More...
 
static tUSInt getMinUSInt ()
 get the min value for tUSInt type More...
 
static tInt getMaxInt ()
 get the max value for tInt type More...
 
static tInt getMinInt ()
 get the min value for tInt type More...
 
static tUInt getMaxUInt ()
 get the max value for tUInt type More...
 
static tUInt getMinUInt ()
 get the min value for tUInt type More...
 
static tLInt getMaxLInt ()
 get the max value for tLInt type More...
 
static tLInt getMinLInt ()
 get the min value for tLInt type More...
 
static tULInt getMaxULInt ()
 get the max value for tULInt type More...
 
static tULInt getMinULInt ()
 get the min value for tULInt type More...
 
static tLLInt getMaxLLInt ()
 get the max value for tULInt type More...
 
static tLLInt getMinLLInt ()
 get the min value for tLLInt type More...
 
static tULLInt getMaxULLInt ()
 get the max value for tULLInt type More...
 
static tULLInt getMinULLInt ()
 get the min value for tULLInt type More...
 
static tFloat getMaxFloat ()
 get the max value for tFloat type More...
 
static tFloat getMinFloat ()
 get the min value for tFloat type More...
 
template<class T >
static T getEpsilon ()
 get the epsilon value for T type More...
 
template<class T >
static T getInfinity ()
 get the infinity for T type More...
 
static tFloat getFloatEpsilon ()
 get the epsilon value for tFloat type More...
 
static tFloat getFloatInfinity ()
 get the infinity value for tFloat type More...
 
static tDouble getMaxDouble ()
 get the max value for tDouble type More...
 
static tDouble getMinDouble ()
 get the min value for tDouble type More...
 
static tDouble getDoubleInfinity ()
 get the infinity value for tFloat type More...
 
static tDouble getDoubleEpsilon ()
 get the epsilon value for tDouble type More...
 
static tLDouble getMinLDouble ()
 get the min value for tLDouble type More...
 
static tLDouble getMaxLDouble ()
 get the max value for tLDouble type More...
 
static tLDouble getLDoubleEpsilon ()
 get the epsilon value for tLDouble type More...
 
static tDouble getLDoubleInfinity ()
 get the infinity value for tDouble type More...
 
static tIndex getMaxIndex ()
 get the max value for the array/vector indexing type More...
 
static tIndex getMinIndex ()
 get the min value for the array/vector indexing type More...
 
static tUIndex getMaxUIndex ()
 get the max value for difference the array/vector indexing type More...
 
static tUIndex getMinUIndex ()
 get the min value for difference the array/vector indexing type More...
 
static tFlag getMaxFlag ()
 get the max value for the tFlag type More...
 
static tFlag getMinFlag ()
 get the min value for the tFlag type More...
 
static tUInteger getMaxUInteger ()
 get the max value for the unsigned integer type More...
 
static tUInteger getMinUInteger ()
 get the min value for the unsigned integer type More...
 
static tInteger getMaxInteger ()
 get the max value for the integer type More...
 
static tInteger getMinInteger ()
 get the min value for the integer type More...
 
static tReal getMaxReal ()
 get the max value for the real type More...
 
static tReal getMinReal ()
 get the min value for the real type More...
 
static tReal getRealEpsilon ()
 get the eps which is the difference between 1 and the least value greater than 1 that is representable. More...
 
static tReal getRealInfinity ()
 get the infinity value More...
 
template<class T >
static T computeEpsilon ()
 compute epsilon More...
 

Static Public Attributes

static const tReal Mu0 =4*M_PI*1e-07
 
static const tReal Gamma =-1.7e11
 
static const tDimension X =0
 
static const tDimension Y =1
 
static const tDimension Z =2
 
static const tReal NULL_VALUE [] ={0,0,0}
 

Protected Member Functions

virtual void toDoAfterThisSetting ()
 method called after the setting of the shared pointer this method can only be called once. More...
 
void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 

Private Member Functions

 SP_OBJECT (EMMG_RealField)
 

Private Attributes

EMM_RealArray mArray
 

Detailed Description

This class describes a generic real field.

Author
Stephane Despreaux
Version
1.0

Constructor & Destructor Documentation

◆ EMMG_RealField()

EMMG_RealField::EMMG_RealField ( )

create

Referenced by New().

Here is the caller graph for this function:

◆ ~EMMG_RealField()

EMMG_RealField::~EMMG_RealField ( void  )
virtual

destroy

Member Function Documentation

◆ add() [1/4]

void EMMG_RealField::add ( const tReal alpha,
const EMM_RealField X 
)
virtual

compute This += alpha. X

Parameters
alphathe alpha value
X: the real field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), EMM_RealField::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Referenced by add(), getValues(), and initField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [2/4]

void EMMG_RealField::add ( const EMM_RealArray alpha,
const EMM_RealField X 
)
virtual

compute This += alpha. X

Parameters
alphathe alpha value at each point
X: the real field

Implements EMM_RealField.

References add(), EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ add() [3/4]

void EMMG_RealField::add ( const EMM_RealField f)
virtual

compute This+=f

Parameters
fthe field to add

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), EMM_RealField::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ add() [4/4]

void EMMG_RealField::add ( const tReal s,
const EMM_RealArray alphas,
const tSInt p,
const EMM_RealField X 
)
virtual

This+=s.alpha^p.X This[i][d]+=s.alpha[i]^p.X[i][d].

Parameters
sa constant value
alphasthe alpha values different at any point of the mesh
p: power of alphas
X: the real field

Implements EMM_RealField.

References add(), EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ cellDataToPointData()

tBoolean EMMG_RealField::cellDataToPointData ( const EMM_Grid3D mesh)
virtual

turn the field from cell data to point data

Parameters
meshthe mesh on which the field is defined
Returns
false if the field is not defined on cells

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_Grid3D::getElementsNumber(), EMM_Grid3D::getSegmentsNumber(), getSize(), EMM_Grid3D::getVerticesNumber(), EMM_Grid3D::isDirectionPeriodic(), EMM_Grid3D::isElementMagnetized(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tBoolean, tDimension, CORE_Array< T >::transfertValuesByReference(), tReal, tUCInt, tUIndex, and tUInteger.

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeEpsilon()

template<class T >
static T CORE_Object::computeEpsilon ( )
inlinestaticinherited

compute epsilon

Returns
the epsilon value eps=10^{-p/3} where p is defined by getEpsilon()=10^{-p}

◆ copy()

void EMMG_RealField::copy ( const EMM_RealField f)
virtual

copy the real vector

Parameters
fthe field to copy

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), setSize(), tReal, tUIndex, and tUInteger.

Referenced by initField(), and setSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distanceMax()

tReal EMMG_RealField::distanceMax ( const EMM_RealField B,
tUIndex k 
) const
virtual

compute the Max_i ||this[i]-B[i]||

Parameters
Bthe B fieldd to compare with this
kindex of the point where the max norm is
Returns
the max norm on all points

Implements EMM_RealField.

References EMM_RealField::distanceMax(), EMM_RealField::getDimension(), getSize(), mArray, norm(), normMax(), EMM_RealField::normMax(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ divideBy() [1/2]

void EMMG_RealField::divideBy ( const tReal f)
virtual

compute This/=f

Parameters
fthe divisor value

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Real::toString(), tReal, tUIndex, and tUInteger.

Referenced by divideBy(), and getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ divideBy() [2/2]

void EMMG_RealField::divideBy ( const EMM_RealArray f)
virtual

compute This*=f

Parameters
fthe divisor factor by point

Implements EMM_RealField.

References divideBy(), EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ dot() [1/8]

tReal EMMG_RealField::dot ( const EMM_RealField F,
const EMM_RealField G 
) const
virtual

compute the scalar product <F,G>

Parameters
Ffirst field
Gsecond field
Returns
s: $ s=\displaystyle \sum_{i=0}^{i=N-1} \sum_{k=0}^{k=3} G(i,k)*F(i,k) $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Referenced by dot(), and fitToSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dot() [2/8]

tReal EMMG_RealField::dot ( const EMM_RealArray sigma,
const EMM_RealField F,
const EMM_RealField G 
) const
virtual

compute the weight scalar product <F,G>

Parameters
sigmathe weight array
Ffirst field
Gsecond field
Returns
s: $ s=\displaystyle \sum_{i=0}^{i=N-1} \sigma_i \sum_{k=0}^{k=3} G(i,k)*F(i,k) $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References dot(), EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ dot() [3/8]

tReal EMMG_RealField::dot ( const tUInt q,
const EMM_RealField F,
const EMM_RealField G 
) const
virtual

compute the $ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]F: d-field defined on n points
[in]G: d-field defined on n points
Returns
$ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References dot(), EMM_RealField::getDimension(), EMM_RealField::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Here is the call graph for this function:

◆ dot() [4/8]

tReal EMMG_RealField::dot ( const tUInt q,
const EMM_RealArray w,
const EMM_RealField F,
const EMM_RealField G 
) const
virtual

compute the $ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]wweight
[in]F: d-field defined on n points
[in]G: d-field defined on n points
Returns
$ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References dot(), EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, CORE_Array< T >::sum(), tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Here is the call graph for this function:

◆ dot() [5/8]

virtual tReal EMM_RealField::dot ( const EMM_RealField F) const
inlinevirtualinherited

◆ dot() [6/8]

virtual tReal EMM_RealField::dot ( const EMM_RealArray sigma,
const EMM_RealField F 
) const
inlinevirtualinherited

compute the scalar product

Parameters
sigmathe weight array
Ffield
Returns
s: $ s=\displaystyle \sum_{i=0}^{i=N-1} \sigma_i \sum_{k=0}^{k=3} (*this)(i,k)*F(i,k) $

References EMM_RealField::dot(), and tReal.

Here is the call graph for this function:

◆ dot() [7/8]

tReal EMM_RealField::dot ( const tUInt q,
const EMM_RealField G 
) const
inlineinherited

compute the $ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]G: d-field defined on n points
Returns
$ \sum_{i=0}^{n-1} (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

References EMM_RealField::dot(), EMM_RealField::getSize(), tReal, and tUInt.

Here is the call graph for this function:

◆ dot() [8/8]

virtual tReal EMM_RealField::dot ( const tUInt q,
const EMM_RealArray w,
const EMM_RealField G 
) const
inlinevirtualinherited

compute the $ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]wweight
[in]G: d-field defined on n points
Returns
$ \sum_{i=0}^{n-1} w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

References EMM_RealField::dot(), EMM_RealField::dotArray(), tReal, and tUInt.

Here is the call graph for this function:

◆ dotArray() [1/8]

void EMMG_RealField::dotArray ( const EMM_RealArray w,
const EMM_RealField F,
const EMM_RealField G,
EMM_RealArray R 
) const
virtual

compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik}) $

Parameters
[in]wweight
[in]F: d-field defined on n points
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik}) $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Referenced by dotArray(), and fitToSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dotArray() [2/8]

void EMMG_RealField::dotArray ( const tUInt q,
const EMM_RealField F,
const EMM_RealField G,
EMM_RealArray R 
) const
virtual

compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]F: d-field defined on n points
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References dotArray(), EMM_RealField::getDimension(), EMM_RealField::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Here is the call graph for this function:

◆ dotArray() [3/8]

void EMMG_RealField::dotArray ( const EMM_RealField F,
const EMM_RealField G,
EMM_RealArray R 
) const
virtual

compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} F_{ik}.G_{ik}) $

Parameters
[in]F: d-field defined on n points
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^n $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References dotArray(), EMM_RealField::getDimension(), EMM_RealField::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Here is the call graph for this function:

◆ dotArray() [4/8]

void EMMG_RealField::dotArray ( const tUInt q,
const EMM_RealArray w,
const EMM_RealField F,
const EMM_RealField G,
EMM_RealArray R 
) const
virtual

compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]wweight
[in]F: d-field defined on n points
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = w_i. (\sum_{k=0}^{d-1} F_{ik}.G_{ik})^n $

inverse the role of F & G if size of G is greater than size of F

Implements EMM_RealField.

References EMM_RealArray::copy(), dotArray(), EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tBoolean, tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInt, and tUInteger.

Here is the call graph for this function:

◆ dotArray() [5/8]

void EMM_RealField::dotArray ( const tUInt q,
const EMM_RealArray w,
const EMM_RealField G,
EMM_RealArray R 
) const
inlineinherited

compute the array $ \forall i \in [0,n[, R_i= w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]wweight
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = w_i. (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

References EMM_RealField::dotArray().

Here is the call graph for this function:

◆ dotArray() [6/8]

void EMM_RealField::dotArray ( const tUInt q,
const EMM_RealField G,
EMM_RealArray R 
) const
inlineinherited

compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

Parameters
[in]qthe power
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

References EMM_RealField::dotArray().

Here is the call graph for this function:

◆ dotArray() [7/8]

void EMM_RealField::dotArray ( const EMM_RealArray w,
const EMM_RealField G,
EMM_RealArray R 
) const
inlineinherited

compute the array $ \forall i \in [0,n[, R_i= w_i (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

Parameters
[in]wweight
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = w_i (\sum_{k=0}^{d-1} T_{ik}.G_{ik})^q $

References EMM_RealField::dotArray().

Here is the call graph for this function:

◆ dotArray() [8/8]

void EMM_RealField::dotArray ( const EMM_RealField G,
EMM_RealArray R 
) const
inlineinherited

compute the array $ \forall i \in [0,n[, R_i= (\sum_{k=0}^{d-1} T_{ik}.G_{ik})$

Parameters
[in]G: d-field defined on n points
[out]R: returned d-field defined on n points computes the array $ \forall i \in [0,n[, R_i = (\sum_{k=0}^{d-1} T_{ik}.G_{ik}) $

References EMM_RealField::add(), EMM_RealField::dotArray(), EMM_RealField::getMemorySize(), EMM_RealField::getSize(), EMM_RealField::mean(), EMM_RealField::normalize(), tDimension, tReal, tSInt, tUIndex, and tULLInt.

Here is the call graph for this function:

◆ fitToSize()

virtual void EMMG_RealField::fitToSize ( )
inlinevirtual

fit the memory size to the size

Implements EMM_RealField.

References dot(), dotArray(), CORE_Array< T >::fitToSize(), mean(), normalize(), setFieldByReference(), tReal, tUIndex, tUInt, wedge(), EMM_Object::X, and EMM_Object::Y.

Here is the call graph for this function:

◆ getArray() [1/2]

const EMM_RealArray& EMMG_RealField::getArray ( ) const
inline

get the array for reading

Returns
the associated array of the field

References mArray.

Referenced by EMMG_SLSDXPeriodicMultiScale::computeMultiGridExcitationField().

Here is the caller graph for this function:

◆ getArray() [2/2]

EMM_RealArray& EMMG_RealField::getArray ( )
inline

get the array for writing

Returns
the associated array of the field

References mArray.

◆ getClassName() [1/2]

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString(), EMM_Operator::getName(), and CORE_Object::isMemoryChecked().

Here is the caller graph for this function:

◆ getClassName() [2/2]

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object

Parameters
identityStringthe identity string of the object
Returns
the class name

◆ getDimension()

const tDimension& EMM_RealField::getDimension ( ) const
inlineinherited

get the dimension

Returns
the dimension of the field in [0,3[

References EMM_RealField::mDimension.

Referenced by add(), EMM_DisplacementFVMOperator::buildDataOnDirichletBoundaryFaces(), EMM_DisplacementFVMOperator::buildDataOnNeumannBoundaryFaces(), EMM_DisplacementFEMOperator::buildDataOnNeumannBoundaryFaces(), cellDataToPointData(), EMM_Test::compareField(), EMM_DisplacementFVMOperator::computeCineticEnergy(), EMMG_DisplacementFEMOperator::computeElasticStress(), EMMG_DisplacementFVM_SSGROperator::computeElasticStress(), EMMG_DisplacementFVM_STEGROperator::computeElasticStress(), EMMG_DisplacementFVM_VTEGROperator::computeElasticStress(), EMMG_DisplacementFVM_VOGGROperator::computeElasticStress(), EMM_DisplacementOperator::computeElasticStress(), EMM_DisplacementOperator::computeElasticTensor(), EMMG_MagnetostrictionOperator::computeEnergy(), EMMG_CubicAnisotropyOperator::computeEnergy(), EMMG_StaticMagneticTensorOperator::computeEnergy(), EMMG_MagnetostrictionOperator::computeEnergyWithMagneticExcitation(), EMMG_CubicAnisotropyOperator::computeEnergyWithMagneticExcitation(), EMMG_StaticMagneticTensorOperator::computeEnergyWithMagneticExcitation(), EMMG_AnisotropyOperator::computeEnergyWithMagneticExcitation(), EMM_DisplacementFVMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMM_DisplacementFEMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMMG_LandauLifschitzFunction::computeFunction(), EMMG_LandauLifschitzFunction::computeGradFunction(), EMMG_CubicAnisotropyOperator::computeMagneticExcitationField(), EMMG_PlanarAnisotropyOperator::computeMagneticExcitationField(), EMMG_StaticMagneticTensorOperator::computeMagneticExcitationField(), EMMG_StaticMagnetostrictionOperator::computeMagneticExcitationField(), EMMG_MagnetostrictionOperator::computeMagneticExcitationField(), EMMG_AnisotropyOperator::computeMagneticExcitationField(), EMMG_MinimalExchangeOperator::computeMagneticExcitationField(), EMMG_FullExchangeOperator::computeMagneticExcitationField(), EMMG_LinearAnisotropyOperator::computeMagneticExcitationField(), EMMG_UniaxialAnisotropyOperator::computeMagneticExcitationField(), EMMG_DemagnetizedOperator::computeMagneticExcitationField(), EMMG_SLDemagnetizedOperator::computeMagneticExcitationField(), EMMG_CubicAnisotropyOperator::computeMagneticExcitationFieldGradient(), EMMG_AnisotropyOperator::computeMagneticExcitationFieldGradient(), EMMG_StaticMagneticTensorOperator::computeMagneticExcitationFieldGradient(), EMMG_DisplacementFEMOperator::computeMagneticStress(), EMMG_DisplacementFVM_SSGROperator::computeMagneticStress(), EMMG_DisplacementFVM_STEGROperator::computeMagneticStress(), EMMG_DisplacementFVM_VTEGROperator::computeMagneticStress(), EMMG_DisplacementFVM_VOGGROperator::computeMagneticStress(), EMMG_LandauLifschitzFunction::computePartialGradMFunction(), EMM_DisplacementFEMOperator::computeStressConstraintEnergy(), EMMG_SLDemagnetizedOperator::computeWeightM(), copy(), distanceMax(), divideBy(), dot(), dotArray(), EMM_DisplacementFVMOperator::getDataFieldSpace(), EMM_DisplacementFEMOperator::getDataFieldSpace(), getSize(), getValue(), EMM_RealField::getValue(), getValues(), initField(), EMM_DisplacementOperator::initializeEquilibriumSolver(), EMM_LandauLifschitzODE_RK::integrateMagnetizationFieldAtTime(), EMM_DisplacementFVM_Interpolator::interpolateUAtVertices(), loadFromStream(), mean(), multiplyBy(), NewInstance(), norm(), normalize(), normMax(), EMM_DisplacementOperator::nullProjectionOnDirichletBoundary(), operator()(), EMM_DisplacementOperator::periodicProjection(), pointDataToCellData(), EMM_CanonicalMassMatrix::product(), EMM_BlockMassMatrix::product(), EMM_CondensedMassMatrix::product(), EMM_DisplacementOperator::projectionOnDirichletBoundary(), EMM_RealField::saveToFile(), saveToStream(), saveToVTKStream(), EMM_Output::saveVTI(), setFieldByReference(), setSize(), setValue(), EMM_RealField::setValue(), EMM_CanonicalMassMatrix::solve(), EMM_CondensedMassMatrix::solve(), sub(), EMM_CanonicalMassMatrix::symmetricDot(), EMM_BlockMassMatrix::symmetricDot(), EMM_CondensedMassMatrix::symmetricDot(), toString(), unmagnetized(), and wedge().

Here is the caller graph for this function:

◆ getDoubleEpsilon()

static tDouble CORE_Object::getDoubleEpsilon ( )
inlinestaticinherited

get the epsilon value for tDouble type

Returns
the epsilon value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getDoubleInfinity()

static tDouble CORE_Object::getDoubleInfinity ( )
inlinestaticinherited

get the infinity value for tFloat type

Returns
the intinity value for tFloat type

◆ getEpsilon()

template<class T >
static T CORE_Object::getEpsilon ( )
inlinestaticinherited

get the epsilon value for T type

Returns
the epsilon value for T type

◆ getFloatEpsilon()

static tFloat CORE_Object::getFloatEpsilon ( )
inlinestaticinherited

get the epsilon value for tFloat type

Returns
the epsilon value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getFloatInfinity()

static tFloat CORE_Object::getFloatInfinity ( )
inlinestaticinherited

get the infinity value for tFloat type

Returns
the intinity value for tFloat type

◆ getIdentityString()

tString CORE_Object::getIdentityString ( ) const
inlineinherited

◆ getInfinity()

template<class T >
static T CORE_Object::getInfinity ( )
inlinestaticinherited

get the infinity for T type

Returns
the infinity value for T type

◆ getLDoubleEpsilon()

static tLDouble CORE_Object::getLDoubleEpsilon ( )
inlinestaticinherited

get the epsilon value for tLDouble type

Returns
the epsilon value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getLDoubleInfinity()

static tDouble CORE_Object::getLDoubleInfinity ( )
inlinestaticinherited

get the infinity value for tDouble type

Returns
the infinity value for tDouble type

◆ getMaxChar()

static tChar CORE_Object::getMaxChar ( )
inlinestaticinherited

get the max value for tChar type

Returns
the max value for tChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxDouble()

static tDouble CORE_Object::getMaxDouble ( )
inlinestaticinherited

get the max value for tDouble type

Returns
the max value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxFlag()

static tFlag CORE_Object::getMaxFlag ( )
inlinestaticinherited

get the max value for the tFlag type

Returns
the max value for the tFlag type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxFloat()

static tFloat CORE_Object::getMaxFloat ( )
inlinestaticinherited

get the max value for tFloat type

Returns
the max value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxIndex()

static tIndex CORE_Object::getMaxIndex ( )
inlinestaticinherited

get the max value for the array/vector indexing type

Returns
the max value for the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxInt()

static tInt CORE_Object::getMaxInt ( )
inlinestaticinherited

get the max value for tInt type

Returns
the max value for tInt type

Referenced by MATSGN_FFT::fastFourierTransform3D_FFTW(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxInteger()

static tInteger CORE_Object::getMaxInteger ( )
inlinestaticinherited

get the max value for the integer type

Returns
the max value for the integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLDouble()

static tLDouble CORE_Object::getMaxLDouble ( )
inlinestaticinherited

get the max value for tLDouble type

Returns
the max value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLInt()

static tLInt CORE_Object::getMaxLInt ( )
inlinestaticinherited

get the max value for tLInt type

Returns
the max value for tLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxLLInt()

static tLLInt CORE_Object::getMaxLLInt ( )
inlinestaticinherited

get the max value for tULInt type

Returns
the max value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxReal()

static tReal CORE_Object::getMaxReal ( )
inlinestaticinherited

get the max value for the real type

Returns
he max value for the real type

Referenced by EMM_MatterField::adimensionize(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxSInt()

static tSInt CORE_Object::getMaxSInt ( )
inlinestaticinherited

get the max value for tSInt type

Returns
the max value for tSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUChar()

static tUChar CORE_Object::getMaxUChar ( )
inlinestaticinherited

get the max value for tUChar type

Returns
the max value for tUChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUIndex()

static tUIndex CORE_Object::getMaxUIndex ( )
inlinestaticinherited

get the max value for difference the array/vector indexing type

Returns
the max value for difference the array/vector indexing type

Referenced by CORE_Vector< T >::addAfterIndices(), CORE_Vector< T >::search(), CORE_Test::testType(), CORE_Integer::toHexString(), and CORE_Integer::toString().

Here is the caller graph for this function:

◆ getMaxUInt()

static tUInt CORE_Object::getMaxUInt ( )
inlinestaticinherited

get the max value for tUInt type

Returns
the max value for tUInt type

Referenced by EMM_Array< tCellFlag >::loadFromFile(), EMM_RealField::loadFromFile(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUInteger()

static tUInteger CORE_Object::getMaxUInteger ( )
inlinestaticinherited

get the max value for the unsigned integer type

Returns
the max value for the unsigned integer type

Referenced by MATH_Pn::computeExtrenums(), EMM_MultiScaleGrid::computeLevelsNumber(), EMM_Input::restoreBackup(), MATH_P0::solve(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxULInt()

static tULInt CORE_Object::getMaxULInt ( )
inlinestaticinherited

get the max value for tULInt type

Returns
the max value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxULLInt()

static tULLInt CORE_Object::getMaxULLInt ( )
inlinestaticinherited

get the max value for tULLInt type

Returns
the max value for tULLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMaxUSInt()

static tUSInt CORE_Object::getMaxUSInt ( )
inlinestaticinherited

get the max value for tUSInt type

Returns
the max value for tUSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMemorySize()

virtual tULLInt EMMG_RealField::getMemorySize ( ) const
inlinevirtual

return the memory size in bytes

Returns
the memory size of the storage in bytes

Implements EMM_RealField.

References CORE_Array< T >::getMemorySize().

Referenced by EMMG_SLDemagnetizedOperator::getMemorySize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMinChar()

static tChar CORE_Object::getMinChar ( )
inlinestaticinherited

get the min value for tChar type

Returns
the min value for tChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinDouble()

static tDouble CORE_Object::getMinDouble ( )
inlinestaticinherited

get the min value for tDouble type

Returns
the min value for tDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinFlag()

static tFlag CORE_Object::getMinFlag ( )
inlinestaticinherited

get the min value for the tFlag type

Returns
the min value for the tFlag type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinFloat()

static tFloat CORE_Object::getMinFloat ( )
inlinestaticinherited

get the min value for tFloat type

Returns
the min value for tFloat type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinIndex()

static tIndex CORE_Object::getMinIndex ( )
inlinestaticinherited

get the min value for the array/vector indexing type

Returns
the min value for the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinInt()

static tInt CORE_Object::getMinInt ( )
inlinestaticinherited

get the min value for tInt type

Returns
the min value for tInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinInteger()

static tInteger CORE_Object::getMinInteger ( )
inlinestaticinherited

get the min value for the integer type

Returns
the minin value for the integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLDouble()

static tLDouble CORE_Object::getMinLDouble ( )
inlinestaticinherited

get the min value for tLDouble type

Returns
the min value for tLDouble type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLInt()

static tLInt CORE_Object::getMinLInt ( )
inlinestaticinherited

get the min value for tLInt type

Returns
the min value for tLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinLLInt()

static tLLInt CORE_Object::getMinLLInt ( )
inlinestaticinherited

get the min value for tLLInt type

Returns
the min value for tLLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinReal()

static tReal CORE_Object::getMinReal ( )
inlinestaticinherited

get the min value for the real type

Returns
the min value for the real type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinSInt()

static tSInt CORE_Object::getMinSInt ( )
inlinestaticinherited

get the min value for tSInt type

Returns
the min value for tSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUChar()

static tUChar CORE_Object::getMinUChar ( )
inlinestaticinherited

get the min value for tUChar type

Returns
the min value for tUChar type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUIndex()

static tUIndex CORE_Object::getMinUIndex ( )
inlinestaticinherited

get the min value for difference the array/vector indexing type

Returns
the min value for difference the array/vector indexing type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUInt()

static tUInt CORE_Object::getMinUInt ( )
inlinestaticinherited

get the min value for tUInt type

Returns
the min value for tUInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUInteger()

static tUInteger CORE_Object::getMinUInteger ( )
inlinestaticinherited

get the min value for the unsigned integer type

Returns
the min value for the unsigned integer type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinULInt()

static tULInt CORE_Object::getMinULInt ( )
inlinestaticinherited

get the min value for tULInt type

Returns
the min value for tULInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinULLInt()

static tULLInt CORE_Object::getMinULLInt ( )
inlinestaticinherited

get the min value for tULLInt type

Returns
the min value for tULLInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getMinUSInt()

static tUSInt CORE_Object::getMinUSInt ( )
inlinestaticinherited

get the min value for tUSInt type

Returns
the min value for tUSInt type

Referenced by CORE_Test::testType().

Here is the caller graph for this function:

◆ getOut()

static SP::CORE_Out CORE_Object::getOut ( )
inlinestaticinherited

get the output

Returns
the shared pointer to the output stream

References CORE_Object::OUT.

◆ getPointerAddress()

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

◆ getRealEpsilon()

static tReal CORE_Object::getRealEpsilon ( )
inlinestaticinherited

get the eps which is the difference between 1 and the least value greater than 1 that is representable.

Returns
the eps which is the difference between 1 and the least value greater than 1 that is representable.

Referenced by MATH_P4::solveP4De(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ getRealInfinity()

static tReal CORE_Object::getRealInfinity ( )
inlinestaticinherited

◆ getSharedPointer() [1/2]

void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited

◆ getSharedPointer() [2/2]

void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

Parameters
p: shared pointer of the class This

◆ getSize()

virtual tUIndex EMMG_RealField::getSize ( ) const
inlinevirtual

return the size of the field

Returns
the size of the field

Implements EMM_RealField.

References EMM_RealField::getDimension(), and CORE_Array< T >::getSize().

Referenced by add(), cellDataToPointData(), EMMG_SLSDXPeriodicMultiScale::computeMultiGridExcitationField(), distanceMax(), divideBy(), getValues(), initField(), mean(), multiplyBy(), NewInstance(), norm(), normalize(), normMax(), pointDataToCellData(), saveToVTKStream(), sub(), toString(), and wedge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getThread()

static CORE_Thread& CORE_Object::getThread ( )
inlinestaticinherited

get the profilier

Returns
the profiler

Referenced by MATH_MaskVector::add(), MATH_Vector::add(), EMM_DisplacementFEMOperator::addBoundaryElasticStress(), EMM_DisplacementFEMOperator::buildDataOnNeumannBoundaryFaces(), EMM_DisplacementFVMOperator::computeCineticEnergy(), EMM_DisplacementFVMOperator::computeElasticStress(), EMM_DisplacementFEMOperator::computeElasticStress(), EMM_DisplacementFVMOperator::computeElasticTensor(), EMM_DisplacementFEMOperator::computeElasticTensor(), EMM_StaticMagneticTensorOperator::computeEnergy(), EMM_CubicAnisotropyOperator::computeEnergy(), EMM_MagnetostrictionOperator::computeEnergy(), EMM_DisplacementOperator::computeEnergy(), EMM_AnisotropyOperator::computeEnergyWithMagneticExcitation(), EMM_DisplacementFVMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMM_DisplacementFEMOperator::computeEquilibriumMatrixDiagonalConditioner(), EMM_FullExchangeOperator::computeMagneticExcitationField(), EMM_StaticMagnetostrictionOperator::computeMagneticExcitationField(), EMM_LinearAnisotropyOperator::computeMagneticExcitationField(), EMM_StaticMagneticTensorOperator::computeMagneticExcitationField(), EMM_CubicAnisotropyOperator::computeMagneticExcitationField(), EMM_MinimalExchangeOperator::computeMagneticExcitationField(), EMM_AnisotropyOperator::computeMagneticExcitationField(), EMM_MagnetostrictionOperator::computeMagneticExcitationField(), EMM_CubicAnisotropyOperator::computeMagneticExcitationFieldGradient(), EMM_AnisotropyOperator::computeMagneticExcitationFieldGradient(), EMM_DisplacementFVMOperator::computeMagneticStress(), EMM_DisplacementFEMOperator::computeMagneticStress(), EMM_OptimalTimeStep::computeOptimalTimeStep(), EMM_DisplacementFEMOperator::computeStressConstraintEnergy(), EMM_FullExchangeOperator::discretize(), EMM_MinimalExchangeOperator::discretize(), EMM_CondensedMassMatrix::discretize(), EMM_LinearAnisotropyOperator::discretize(), EMM_AnisotropyOperator::discretize(), EMM_DemagnetizedOperator::discretize(), EMMG_SLDemagnetizedOperator::discretize(), EMM_LandauLifschitzSystem::discretize(), MATH_Vector::divide(), MATH_MaskVector::dot(), MATH_Vector::dot(), EMM_4SymmetricTensors::doubleDot(), EMM_4Tensors::doubleDotCrossDoubleDotScalar(), EMM_4Tensors::doubleDotCrossProduct(), EMM_4Tensors::doubleDotCrossSquaredScalar(), EMM_4Tensors::doubleDotProduct(), MATH_Vector::init(), MATH_MaskVector::init(), EMM_LandauLifschitzODE_RK::integrateMagnetizationFieldAtTime(), EMM_DisplacementFVM_Interpolator::interpolateUAtVertices(), EMMG_SLDemagnetizedOperator::localAssembly(), EMM_DisplacementOperator::nullProjectionOnDirichletBoundary(), EMM_DisplacementOperator::periodicProjection(), EMM_2PackedSymmetricTensors::product(), EMM_CanonicalMassMatrix::product(), MATH_FullMatrix::product(), EMM_CondensedMassMatrix::product(), EMM_BlockMassMatrix::product(), MATH_MorseMatrix::product(), EMMG_SLDemagnetizedOperator::product(), EMM_DisplacementOperator::projectionOnDirichletBoundary(), EMM_LandauLifschitzSystem::resetOperatorsToInitialState(), EMM_DisplacementFVMOperator::setBoundaryFaceTypes(), FFTW_MultiDFTs::setFFT(), FFTW_MultiLevelsDFT::setFFT(), FFTW_MultiLevelsDFT::setLevels(), FFTW_MultiDFTs::setPlan(), FFTW_MultiLevelsDFT::setPlan(), EMM_CondensedMassMatrix::solve(), EMM_LandauLifschitzODE::solveODE(), EMM_4SymmetricTensors::squaredDoubleDot(), EMM_4Tensors::squaredDoubleDotCrossScalar(), EMM_4Tensors::squaredDoubleDotScalar(), EMM_CanonicalMassMatrix::symmetricDot(), EMM_CondensedMassMatrix::symmetricDot(), EMM_BlockMassMatrix::symmetricDot(), FFTW_Test::test(), MATH_SolverTest::test(), EMM_ODETest::testODE(), and EMM_Grid3D::updateLimitConditionOnPoints().

Here is the caller graph for this function:

◆ getTypeName()

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

Returns
the type name of the class

References tString.

◆ getTypeToString()

virtual tString EMMG_RealField::getTypeToString ( ) const
inlinevirtual

get the string type

Returns
the string type of the type in {"long double", "double","float"}

Implements EMM_RealField.

References CORE_Array< T >::getTypeToString().

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getValue() [1/3]

virtual tReal EMMG_RealField::getValue ( const tUIndex i) const
inlinevirtual

get the value of the element at index i

Parameters
iindex of the element
Returns
the real value

Implements EMM_RealField.

◆ getValue() [2/3]

virtual void EMMG_RealField::getValue ( const tUIndex i,
tReal  vs[] 
) const
inlinevirtual

get the vector value at point i of size dim

Parameters
iindex of the point in (0,getSize()[
vscoortdinate value of the point at index i

Implements EMM_RealField.

References EMM_RealField::getDimension(), tDimension, and tReal.

Here is the call graph for this function:

◆ getValue() [3/3]

tReal EMM_RealField::getValue ( const tUIndex i,
const tDimension k 
) const
inlineinherited

get the value at point i and for coordinate k

Parameters
iindex of the point in (0,getSize()[
k: coordinate of the point in [0,getDimension()[
Returns
the real value

References EMM_RealField::getDimension(), tReal, and tUIndex.

Referenced by EMM_Test::compareField(), and EMM_DisplacementWaveTest::saveIntoFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getValues() [1/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
const float *&  values 
) const
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References EMM_RealField::getDimension(), getSize(), getTypeToString(), and null.

Here is the call graph for this function:

◆ getValues() [2/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
const double *&  values 
) const
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References EMM_RealField::getDimension(), getSize(), getTypeToString(), and null.

Here is the call graph for this function:

◆ getValues() [3/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
const long double *&  values 
) const
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References EMM_RealField::getDimension(), getSize(), getTypeToString(), and null.

Here is the call graph for this function:

◆ getValues() [4/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
float *&  values 
)
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References EMM_RealField::getDimension(), getSize(), getTypeToString(), and null.

Here is the call graph for this function:

◆ getValues() [5/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
double *&  values 
)
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References EMM_RealField::getDimension(), getSize(), getTypeToString(), and null.

Here is the call graph for this function:

◆ getValues() [6/6]

virtual tBoolean EMMG_RealField::getValues ( tUIndex size,
long double *&  values 
)
inlinevirtual

get the values

Parameters
sizethe size of the values
valuesa pointer to the first value of the values of the field
Returns
true if the values are float reals

Reimplemented from EMM_RealField.

References add(), cellDataToPointData(), distanceMax(), divideBy(), EMM_RealField::getDimension(), getSize(), getTypeToString(), multiplyBy(), norm(), normMax(), null, pointDataToCellData(), sub(), tBoolean, tReal, tSInt, and tUIndex.

Here is the call graph for this function:

◆ initField() [1/9]

void EMMG_RealField::initField ( const tReal alpha,
const EMM_RealField f 
)
virtual

init the field to the field multiplied by alpha This=alpha.f

Parameters
alphathe multiplicator value
fthe field values

Implements EMM_RealField.

References copy(), EMM_RealField::getDimension(), EMM_RealField::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), setSize(), tReal, tUIndex, and tUInteger.

Referenced by initField(), and setSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initField() [2/9]

void EMMG_RealField::initField ( const EMM_RealArray alpha,
const EMM_RealField f 
)
virtual

init the field to the field multiplied by alpha This=alpha.f

Parameters
alphathe multiplicator value array
fthe field values

This[i][d]=alpha[i].f[i][d] for all d in [0,getDimension()[

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), initField(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), setSize(), tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ initField() [3/9]

void EMMG_RealField::initField ( const tUIndex from,
const tUIndex to,
const tReal fx,
const tReal fy,
const tReal fz 
)
virtual

init the field to the 3D vector

Parameters
frominitial point
toexcluded final point
fxthe x-coordinate of the vector value of the field
fythe y-coordinate of the vector value of the field
fzthe z-coordinate of the vector value of the field

Implements EMM_RealField.

References getSize(), initField(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ initField() [4/9]

void EMMG_RealField::initField ( const tUIndex from,
const tUIndex to,
const EMM_RealField C 
)
virtual

init a part of field to field

Parameters
fromindex of the start point in [0,getSize()[
toindex of the excluded end point in [0,getSize()]
C: field to copy in [from,to[ The size of C must have minimum size equals to to-from

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getValues(), initField(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ initField() [5/9]

void EMMG_RealField::initField ( const tReal f)
virtual

init the field to uniform value in each direction

Parameters
fthe value of the field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ initField() [6/9]

virtual tBoolean EMMG_RealField::initField ( const tString fileName)
inlinevirtual

init the field by the file name

Parameters
fileNamethe name of the file

Implements EMM_RealField.

References initField(), EMM_RealField::loadFromFile(), tReal, tSInt, and unmagnetized().

Here is the call graph for this function:

◆ initField() [7/9]

void EMMG_RealField::initField ( const tReal s,
const EMM_RealArray alpha,
const tSInt p,
const EMM_RealField f 
)
virtual

init the field to the field multiplied by alpha This=s.alpha.f

Parameters
sthe muplicator factor
alphathe multiplicator value array
pthe power of p
fthe field values

This[i][d]=s.alpha[i]^p.f[i][d] for all d in [0,getDimension()[

Implements EMM_RealField.

References add(), EMM_RealField::getDimension(), EMM_RealField::getSize(), CORE_Array< T >::getSize(), initField(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), setSize(), tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ initField() [8/9]

void EMM_RealField::initField ( const EMM_RealField f)
inlineinherited

init the field to uniform value in each direction

Parameters
fthe value of the field

References EMM_RealField::copy(), EMM_RealField::initField(), tBoolean, tReal, tSInt, tString, and tUIndex.

Here is the call graph for this function:

◆ initField() [9/9]

void EMM_RealField::initField ( const tReal fx,
const tReal fy,
const tReal fz 
)
inlineinherited

init the field to the 3D vector

Parameters
fxthe x-coordinate of the vector value of the field
fythe y-coordinate of the vector value of the field
fzthe z-coordinate of the vector value of the field

References EMM_RealField::getSize(), EMM_RealField::initField(), tReal, tUIndex, and EMM_RealField::unmagnetized().

Here is the call graph for this function:

◆ is32Architecture()

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

Returns
true is the computing is done in a 32 bits machine

References CORE_Object::pointer2String(), CORE_Object::printObjectsInMemory(), and tString.

Referenced by CORE_Test::testType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is64Architecture()

static tBoolean CORE_Object::is64Architecture ( )
inlinestaticinherited

return true if the machine is a 64 bits machine

Returns
true is the computing is done in a 64 bits machine

Referenced by EMM_VTK::getVTKType(), and CORE_Test::testType().

Here is the caller graph for this function:

◆ isInstanceOf() [1/2]

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

test if the clas T is an instance of this class

Returns
true if the object is an instance of T

References null.

Referenced by MATH_ToeplitzTest::toeplitzTest().

Here is the caller graph for this function:

◆ isInstanceOf() [2/2]

tBoolean CORE_Object::isInstanceOf ( const tString name) const
inlineinherited

test if the object is an instance of className

Parameters
namename of the class
Returns
true if the object is an instance of class Name

References CORE_Object::getIdentityString().

Here is the call graph for this function:

◆ isMemoryChecked()

static const tBoolean& CORE_Object::isMemoryChecked ( )
inlinestaticinherited

get if the memory checking is used

Returns
true: if the memory checking is used.

References CORE_Object::getClassName(), CORE_Object::mIsMemoryTesting, and tString.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadFromFile()

tBoolean EMM_RealField::loadFromFile ( const tString fileName)
inherited

load the steady array from file

Parameters
fileNamefilename of the file
Returns
true if the file succeeds The file description is as follow:

is a comment character

n d : values of the field, d: the dimension of the field in {1,2,3} values of the field one value per line

References CORE_Object::getMaxUInt(), EMM_RealField::loadFromStream(), CORE_String::New(), CORE_Integer::parseInt(), EMM_RealField::setDimension(), EMM_RealField::setSize(), tDimension, tUIndex, tUInteger, and tUSInt.

Referenced by EMM_Test::computeMField(), initField(), EMM_Input::loadFieldFromFile(), EMM_Input::loadFieldFromTXTFile(), EMM_ODETest::testODE(), and EMM_RealField::toString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadFromStream() [1/2]

virtual tBoolean EMMG_RealField::loadFromStream ( ifstream &  f,
const tUSInt d 
)
inlinevirtual

load the steady array from stream the steam contains the values of the field. One value per line

Parameters
finput stream
dnumber of data per line

Implements EMM_RealField.

References EMM_Array< T >::loadFromStream(), and tBoolean.

Here is the call graph for this function:

◆ loadFromStream() [2/2]

tBoolean EMMG_RealField::loadFromStream ( ifstream &  f,
vector< EMM_RealArray *> &  indics 
)
virtual

load the field and indicators associated to the field the stream will contain the values of the field. 3 value per line foolowed by indicators value

Parameters
foutput stream
indicsinsicators to save at end of line. Indicators must have the same number of elements
Returns
true if ok

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_Array< T >::loadFromStream(), and mArray.

Here is the call graph for this function:

◆ mean() [1/4]

void EMMG_RealField::mean ( tReal mean) const
virtual

compute the mean of each direction

Parameters
meanthe mean value $ mean[d]=\sum_i M[i][d] $

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, EMM_RealField::mean(), tReal, and tUIndex.

Referenced by fitToSize(), and mean().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mean() [2/4]

void EMMG_RealField::mean ( const EMM_RealArray w,
tReal mean 
) const
virtual

compute the mean of each direction with respect of weight

Parameters
wweight at each cell
meanthe mean value $ \forall d \in [0,3[, mean[d]=\sum_i w[i].M[i][d] $

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, mean(), EMM_RealField::mean(), tDimension, CORE_Integer::toString(), tReal, and tUIndex.

Here is the call graph for this function:

◆ mean() [3/4]

void EMM_RealField::mean ( const tUIndex nCells,
const tDimension dim,
const tReal vs,
tReal mean 
)
staticinherited

compute the mean of the array of size N x dim

Parameters
[in]nCellsnumber of points
[in]dim: dimension of each point
[in]vsvalues of the field of size N x dim
[out]mean: the mean of the field of size dim

References OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tReal, tUIndex, and tUInteger.

◆ mean() [4/4]

void EMM_RealField::mean ( const tUIndex nCells,
const tDimension dim,
const tReal ws,
const tReal vs,
tReal mean 
)
staticinherited

compute the mean of the array of size N x dim

Parameters
[in]nCellsnumber of points
[in]dim: dimension of each point
[in]wsvalues of the weight of points of size N
[in]vsvalues of the field of size N x dim
[out]mean: the mean of the field of size dim

References OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tReal, tUIndex, and tUInteger.

◆ multiplyBy() [1/2]

void EMMG_RealField::multiplyBy ( const tReal f)
virtual

compute This*=f

Parameters
fthe multiplicator value

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), CORE_Array< T >::initArray(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tReal, tUIndex, and tUInteger.

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiplyBy() [2/2]

void EMMG_RealField::multiplyBy ( const EMM_RealArray f)
virtual

compute This*=f

Parameters
fthe multiply array

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ New()

static SP::EMMG_RealField EMMG_RealField::New ( )
inlinestatic

constructor with a shared pointer

Returns
a shared point to this class

References EMMG_RealField().

Referenced by EMMG_SLRPPeriodicMultiScale::computeMultiGridExcitationField(), EMMG_SLSDXPeriodicMultiScale::computeMultiGridExcitationField(), NewInstance(), and EMMG_ClassFactory::NewInstance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NewInstance()

virtual SP::EMM_RealField EMMG_RealField::NewInstance ( ) const
inlinevirtual

create a new instance of real field with the smae dimension and size

Returns
a shared pointer to the real field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), and New().

Here is the call graph for this function:

◆ norm() [1/2]

tReal EMMG_RealField::norm ( const tUIndex index) const
virtual

compute the norm at point at index

Parameters
indexindex of the point in [0,getSize()[
Returns
the norm of the point

Implements EMM_RealField.

References EMM_RealField::getDimension(), CORE_Array< T >::getSize(), mArray, tDimension, and tReal.

Referenced by distanceMax(), getValues(), norm(), normalize(), and normMax().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ norm() [2/2]

void EMMG_RealField::norm ( EMM_RealArray mod) const
virtual

compute the norm at all points

Parameters
modthe array to store the module of the vector at each point
Returns
the norm of the point

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, norm(), OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tDimension, tReal, tUIndex, and tUInteger.

Here is the call graph for this function:

◆ normalize()

void EMMG_RealField::normalize ( )
virtual

normalize the field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, norm(), OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, tReal, tUIndex, and tUInteger.

Referenced by fitToSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ normMax()

tReal EMMG_RealField::normMax ( tUIndex k) const
virtual

compute the point where the norm of the field is maximum

Parameters
kindex of the point in [0,getSize()[
Returns
the norm of the field at maximum point

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, norm(), OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED_REDUCTION, tDimension, tReal, tUIndex, and tUInteger.

Referenced by distanceMax(), and getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [1/2]

tReal& EMMG_RealField::operator() ( const tUIndex i,
const tDimension d 
)
inline

get the value at point i for coordinate d

Parameters
iindex of point in [0,getSize()[
dindex of coordinates in [0,getDimension()[
Returns
the value for writing

References EMM_RealField::getDimension().

Here is the call graph for this function:

◆ operator()() [2/2]

const tReal& EMMG_RealField::operator() ( const tUIndex i,
const tDimension d 
) const
inline

get the value at point i for coordinate d

Parameters
iindex of point in [0,getSize()[
dindex of coordinates in [0,getDimension()[
Returns
the value for reading

References EMM_RealField::getDimension().

Here is the call graph for this function:

◆ operator*=() [1/2]

EMM_RealField& EMM_RealField::operator*= ( const tReal f)
inlineinherited

multiply the field by f

Parameters
f: the multiply factor
Returns
this

References EMM_RealField::multiplyBy().

Here is the call graph for this function:

◆ operator*=() [2/2]

EMM_RealField& EMM_RealField::operator*= ( const EMM_RealArray f)
inlineinherited

multiply a vector field by a scalar field to obtain a real field : for all i in [0,N[ for all d in [0,3[, This[i][d]*=f[i]

Parameters
f: the multiplicator array
Returns
this

References EMM_RealField::multiplyBy().

Here is the call graph for this function:

◆ operator+=()

EMM_RealField& EMM_RealField::operator+= ( const EMM_RealField f)
inlineinherited

add a field This+=f

Parameters
fthe field to add
Returns
This

References EMM_RealField::add().

Here is the call graph for this function:

◆ operator-=()

EMM_RealField& EMM_RealField::operator-= ( const EMM_RealField f)
inlineinherited

sub a field This-=f

Parameters
fthe field to sub
Returns
This

References EMM_RealField::sub().

Here is the call graph for this function:

◆ operator/=() [1/2]

EMM_RealField& EMM_RealField::operator/= ( const tReal f)
inlineinherited

divide with respect of a real

Parameters
fthe multiplicator factor
Returns
this

References EMM_RealField::divideBy().

Here is the call graph for this function:

◆ operator/=() [2/2]

EMM_RealField& EMM_RealField::operator/= ( const EMM_RealArray f)
inlineinherited

References EMM_RealField::copy(), EMM_RealField::divideBy(), and EMM_RealField::NewInstance().

Here is the call graph for this function:

◆ operator[]() [1/2]

tReal& EMMG_RealField::operator[] ( const tUIndex i)
inline

get the value at index

Parameters
iindex of the element in [0,getDimensio()*getSize()[
Returns
the value for writing

◆ operator[]() [2/2]

const tReal& EMMG_RealField::operator[] ( const tUIndex i) const
inline

get the value at index

Parameters
iindex of the element in [0,getDimensio()*getSize()[
Returns
the value for reading

◆ out()

static CORE_Out& CORE_Object::out ( )
inlinestaticinherited

get the output

Returns
the output stream

Referenced by EMM_Matter::adimensionize(), EMM_DisplacementFVMOperator::backup(), EMM_DisplacementOperator::backup(), MATH_ElementaryMultiLevelsToeplitzMatrix::buildSpectralVectorProjector(), EMM_Test::caseTest(), EMM_Test::caseTests(), EMM_MatterField::computeAnisotropyDirectionsField(), EMM_OptimalTimeStep::computeOptimalTimeStep(), MATH_MultiLevelsToeplitzMatrix::copy(), CORE_Exception::CORE_Exception(), EMM_MatterField::createAnisotropyOperator(), CORE_Run::createIO(), EMM_ElementaryTest::defaultBackupTest(), EMM_ElementaryTest::defaultTest(), MATH_MultiLevelsFFTToeplitzMatrix::diagonalize(), EMM_DisplacementFVMOperator::discretize(), EMM_MagnetostrictionOperator::discretize(), EMM_DisplacementFEMOperator::discretize(), EMM_4SymmetricTensors::doubleDot(), EMM_4Tensors::doubleDotCrossDoubleDotScalar(), EMM_TensorsTest::doubleDotCrossDoubleDotScalarTests(), EMM_4Tensors::doubleDotCrossProduct(), EMM_TensorsTest::doubleDotCrossProductTests(), EMM_4Tensors::doubleDotCrossSquaredScalar(), EMM_TensorsTest::doubleDotCrossSquaredScalarTests(), EMM_4Tensors::doubleDotProduct(), EMM_TensorsTest::doubleDotProductTests(), EMM_DisplacementWaveTest::elasticWaveTest(), EMM_Test::elementaryTests(), FFTW_Test::fftwTutorial(), MATH_IntegrationTest::gaussLegendreTest(), EMM_MagnetostrictionTest::HComputingTest(), EMM_DemagnetizedPeriodicalTest::HTest(), EMMH_HysteresisTest::hysteresisDefaultCycleTest(), EMM_TensorsTest::initializationTests(), EMM_MultiScaleGrid::initialize(), EMM_MultiScaleSDGrid::initialize(), EMM_MatterField::loadFromANIFile(), EMM_AnisotropyDirectionsField::loadFromFile(), EMM_Matter::loadFromFile(), EMM_Grid3D::loadFromGEOFile(), EMM_MatterField::loadFromLOCFile(), EMM_Array< tCellFlag >::loadFromStream(), EMM_Matter::loadFromStream(), EMM_Matter::loadMattersFromFile(), EMM_Run::loadSystemFromOptions(), EMM_ElementaryTest::magnetostrictionBackupTest(), CORE_Run::make(), EMMH_Run::makeHysteresis(), EMM_Run::makeRun(), CORE_Run::makeType(), EMM_ElementaryTest::optionsTest(), MATH_PolynomialTest::P4Tests(), EMM_Test::primaryTests(), EMM_LandauLifschitzSystem::printLog(), CORE_Run::printOptions(), EMM_2PackedSymmetricTensors::product(), EMMG_SLDemagnetizedOperator::projectionOnSpectralSpace(), CORE_Run::readOptionsFromCommandLine(), CORE_Test::readVectorTest(), EMM_DemagnetizedPeriodicalTest::relaxationTest(), EMM_DisplacementFVMOperator::restore(), EMM_DisplacementOperator::restore(), EMM_Input::restoreBackup(), EMMH_Hysteresis::run(), EMM_Output::save(), EMM_AnisotropyDirectionsField::saveToFile(), EMM_MatterField::saveToFile(), EMM_Grid3D::saveToGEOFile(), CORE_IOTest::searchTest(), EMMH_Hysteresis::setInitialMagnetizationField(), MATH_MultiLevelsToeplitzMatrix::setLevels(), EMM_4SymmetricTensors::squaredDoubleDot(), EMM_4Tensors::squaredDoubleDotCrossScalar(), EMM_TensorsTest::squaredDoubleDotCrossScalarTests(), EMM_4Tensors::squaredDoubleDotScalar(), EMM_TensorsTest::squaredDoubleDotScalarTests(), EMM_TensorsTest::squaredDoubleDotTests(), EMM_MatterTest::testAdimensionize(), EMM_MatterTest::testANIFile(), CORE_Test::testComplex(), CORE_Test::testDateWeek(), FFTW_Test::testDFT(), EMM_MatterTest::testIO(), EMM_ODETest::testODE(), CORE_Test::testOut(), CORE_Test::testReal(), EMM_FieldTest::testRealArray(), EMM_Grid3DTest::testSegment(), EMM_Grid3DTest::testThinSheet(), CORE_Test::testTime(), CORE_Test::testType(), MATH_FullMatrix::toString(), EMM_DemagnetizedPeriodicalTest::xyPeriodicalCubeSDGTest(), and EMM_DemagnetizedPeriodicalTest::xyPeriodicalSheetSDGTest().

Here is the caller graph for this function:

◆ pointDataToCellData()

tBoolean EMMG_RealField::pointDataToCellData ( const EMM_Grid3D mesh)
virtual

turn the field from point data to cll data

Parameters
meshthe mesh on which the field is defined
Returns
false if the field is not defined on points

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_Grid3D::getElementsNumber(), EMM_Grid3D::getSegmentsNumber(), getSize(), EMM_Grid3D::getVerticesNumber(), EMM_Grid3D::isElementMagnetized(), mArray, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, CORE_Array< T >::setSize(), tDimension, CORE_Array< T >::transfertValuesByReference(), tReal, tUCInt, tUIndex, and tUInteger.

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointer2String()

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string representation of a pointer

Parameters
obj: oject to get the string pointer
Returns
the string pointer of the object

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), CORE_Object::is32Architecture(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

◆ printObjectsInMemory() [1/2]

void CORE_Object::printObjectsInMemory ( ostream &  f)
staticinherited

print object in memory

Parameters
f: output to print the objects in memory

References CORE_Object::getIdentityString(), CORE_Object::getSharedPointer(), CORE_Object::mIsMemoryTesting, CORE_Object::mObjects, and tInteger.

Here is the call graph for this function:

◆ printObjectsInMemory() [2/2]

static void CORE_Object::printObjectsInMemory ( )
inlinestaticinherited

print object in memory in the standart output

Referenced by CORE_Object::is32Architecture(), and main().

Here is the caller graph for this function:

◆ resetOut()

static void CORE_Object::resetOut ( )
inlinestaticinherited

reset the output stream

Referenced by run().

Here is the caller graph for this function:

◆ resetThread()

static void CORE_Object::resetThread ( )
inlinestaticinherited

reset the output stream

Referenced by run().

Here is the caller graph for this function:

◆ saveToFile()

tBoolean EMM_RealField::saveToFile ( const tString fileName) const
inherited

save the steady array into file

Parameters
fileNamefilename of the file
Returns
true if the file succeeds The file description is as follow:

is a comment character

n d : values of the field, d: the dimension of the field in {1,2,3} values : values of the feild: one value per line

References EMM_RealField::getDimension(), EMM_RealField::getSize(), EMM_RealField::saveToStream(), CORE_Time::toString(), tUIndex, and tUSInt.

Referenced by EMM_Test::computeMField(), EMMH_Hysteresis::run(), EMM_Output::saveFieldToTXTFile(), and EMM_RealField::toString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveToStream() [1/2]

virtual tBoolean EMMG_RealField::saveToStream ( ofstream &  f) const
inlinevirtual

save the steady array into stream the steam will contain the values of the field. One value per line

Parameters
foutput stream
Returns
true if succeeded

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_Array< T >::saveToStream(), saveToVTKStream(), tBoolean, EMM_RealField::toString(), tString, and tUIndex.

Here is the call graph for this function:

◆ saveToStream() [2/2]

tBoolean EMMG_RealField::saveToStream ( ofstream &  f,
const vector< const EMM_RealArray *> &  indics 
) const
virtual

save the field and indicators associated to the field the stream will contain the values of the field. 3 value per line followed by indicator values

Parameters
foutput stream
indicsinsicators to save at end of line. Indicators must have the same number of elements
Returns
true if ok

Implements EMM_RealField.

References EMM_RealField::getDimension(), mArray, and EMM_Array< tReal >::saveToStream().

Here is the call graph for this function:

◆ saveToVTKStream() [1/2]

tBoolean EMMG_RealField::saveToVTKStream ( ofstream &  file,
EMM_VTK vtk,
const tString name 
) const
virtual

save the field in vtk

Parameters
filethe output vtk stream
vtkthe vtk class to save in the field
name: the name of the field
Returns
true if the writing has succeeded

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, and EMM_VTK::writeField().

Referenced by saveToStream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveToVTKStream() [2/2]

tBoolean EMMG_RealField::saveToVTKStream ( ofstream &  file,
EMM_VTK vtk,
const EMM_RealArray weight,
const tString name 
) const
virtual

save the field in vtk

Parameters
filethe output vtk stream
vtkthe vtk class to save in the field
weightthe weight of the points of the field
name: the name of the field
Returns
true if the writing has succeeded

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), CORE_Array< T >::getSize(), mArray, null, tReal, and EMM_VTK::writeField().

Here is the call graph for this function:

◆ setDimension()

void EMM_RealField::setDimension ( const tDimension d)
inlineinherited

set the dimension

Parameters
ddimension of the field in [0,3[

References EMM_RealField::fitToSize(), EMM_RealField::initField(), EMM_RealField::setSize(), tReal, and tUIndex.

Referenced by EMM_DisplacementFVMOperator::buildDataOnDirichletBoundaryFaces(), EMM_DisplacementFVMOperator::buildDataOnNeumannBoundaryFaces(), EMM_DisplacementFEMOperator::buildDataOnNeumannBoundaryFaces(), EMMG_DisplacementFEMOperator::computeElasticStress(), EMMG_DisplacementFVM_SSGROperator::computeElasticStress(), EMMG_DisplacementFVM_STEGROperator::computeElasticStress(), EMMG_DisplacementFVM_VTEGROperator::computeElasticStress(), EMMG_DisplacementFVM_VOGGROperator::computeElasticStress(), EMMG_LandauLifschitzFunction::computeFunction(), EMMG_LandauLifschitzFunction::computeGradFunction(), EMMG_PlanarAnisotropyOperator::computeMagneticExcitationField(), EMMG_MinimalExchangeOperator::computeMagneticExcitationField(), EMMG_FullExchangeOperator::computeMagneticExcitationField(), EMMG_LinearAnisotropyOperator::computeMagneticExcitationField(), EMMG_UniaxialAnisotropyOperator::computeMagneticExcitationField(), EMMG_DemagnetizedOperator::computeMagneticExcitationField(), EMMG_SLDemagnetizedOperator::computeMagneticExcitationField(), EMM_DisplacementOperator::computeMagneticStress(), EMMG_LandauLifschitzFunction::computePartialGradMFunction(), copy(), EMM_GaussLegendreRelaxation::discretize(), initField(), EMM_MultiScaleSDGrid::initialize(), EMM_DisplacementFVM_VIGROperator::initializeEquilibriumSolver(), EMM_DisplacementOperator::initializeEquilibriumSolver(), EMM_LandauLifschitzODE_RK::integrateMagnetizationFieldAtTime(), EMM_DisplacementFVM_Interpolator::interpolateUAtVertices(), EMM_RealField::loadFromFile(), EMM_CanonicalMassMatrix::product(), EMM_BlockMassMatrix::product(), EMM_CondensedMassMatrix::product(), and wedge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFieldByReference()

void EMMG_RealField::setFieldByReference ( const tUIndex from,
const tUIndex to,
EMM_RealField X 
)
virtual

set the field by reference

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_RealField::getValues(), mArray, CORE_Array< T >::setValuesByReference(), tDimension, CORE_Integer::toString(), tReal, and tUIndex.

Referenced by fitToSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setIsMemoryChecked()

static void CORE_Object::setIsMemoryChecked ( const tBoolean v)
inlinestaticinherited

set if the memory checking is used

Parameters
v: true to check memory

Referenced by main().

Here is the caller graph for this function:

◆ setOut()

static void CORE_Object::setOut ( SP::CORE_Out  out)
inlinestaticinherited

set the output stream

Parameters
out: the shared pointer to the new output stream

References null.

◆ setSize()

virtual void EMMG_RealField::setSize ( const tUIndex s)
inlinevirtual

set the size

Parameters
sthe new size

Implements EMM_RealField.

References copy(), EMM_RealField::getDimension(), initField(), CORE_Array< T >::setSize(), tReal, and tUIndex.

Referenced by EMMG_SLRPPeriodicMultiScale::computeMultiGridExcitationField(), EMMG_SLSDXPeriodicMultiScale::computeMultiGridExcitationField(), copy(), EMMG_SLPeriodicMultiScale::fineToCoarse(), and initField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setThis()

void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

Parameters
p: shared pointer of the class This

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

◆ setThread()

static void CORE_Object::setThread ( SP::CORE_Thread  thread)
inlinestaticinherited

set the thread

Parameters
threadthe shared pointer to the thread

References null.

Referenced by EMM_Run::EMM_Run(), EMM_TensorsRun::EMM_TensorsRun(), and MATH_SolverRun::MATH_SolverRun().

Here is the caller graph for this function:

◆ setValue() [1/3]

virtual void EMMG_RealField::setValue ( const tUIndex i,
const tReal v 
)
inlinevirtual

set the value of the element at index i

Parameters
iindex of the element
vvalue of the element set the value of the element at index i

Implements EMM_RealField.

◆ setValue() [2/3]

virtual void EMMG_RealField::setValue ( const tUIndex i,
const tReal  v[] 
)
inlinevirtual

set the value of the element at index i

Parameters
iindex of the element in [0,getSize()[
vvalue of the element set the value of the element at index i

Implements EMM_RealField.

References EMM_RealField::getDimension(), tDimension, and tReal.

Here is the call graph for this function:

◆ setValue() [3/3]

void EMM_RealField::setValue ( const tUIndex i,
const tDimension k,
const tReal v 
)
inlineinherited

◆ SP_OBJECT()

EMMG_RealField::SP_OBJECT ( EMMG_RealField  )
private

◆ sub()

void EMMG_RealField::sub ( const EMM_RealField f)
virtual

compute This-=f

Parameters
fthe field to sub

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), EMM_RealField::getSize(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tDimension, CORE_Integer::toString(), tReal, tUIndex, and tUInteger.

Referenced by getValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toDoAfterThisSetting()

virtual void EMM_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited

method called after the setting of the shared pointer this method can only be called once.

Reimplemented from CORE_Object.

Reimplemented in EMM_DisplacementOperator, EMM_DisplacementFVMOperator, EMM_GaussLegendreRelaxation, and EMM_GradGaussLegendreRelaxation.

Referenced by EMM_GaussLegendreRelaxation::toDoAfterThisSetting(), and EMM_DisplacementOperator::toDoAfterThisSetting().

Here is the caller graph for this function:

◆ toString() [1/2]

tString EMMG_RealField::toString ( const tUIndex n) const
virtual

return the string representation of the field

Parameters
nthe number of points to print
Returns
the string representation of the class

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), mArray, tDimension, CORE_Real::toString(), CORE_Integer::toString(), tReal, tString, and tUIndex.

Here is the call graph for this function:

◆ toString() [2/2]

virtual tString EMM_RealField::toString ( ) const
inlinevirtualinherited

return the string representation of the field

Returns
the string representation of the class

Reimplemented from CORE_Object.

References EMM_RealField::loadFromFile(), EMM_RealField::loadFromStream(), EMM_RealField::saveToFile(), EMM_RealField::saveToStream(), EMM_RealField::saveToVTKStream(), tBoolean, tString, and tUSInt.

Referenced by EMM_RealField::getValues(), and saveToStream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unmagnetized()

void EMMG_RealField::unmagnetized ( const EMM_Grid3D mesh)
virtual

unmagnetized the field in the mesh

Parameters
meshthe mesh defining the empty cell
  • set to 0 on the cells which are empty

Implements EMM_RealField.

References EMM_RealField::getDimension(), EMM_Grid3D::getElementsNumber(), EMM_Grid3D::getNeighborsIndicators(), EMM_Grid3D::IS_ELEMENT_MAGNETIZED(), OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, tCellFlag, tDimension, tReal, tUIndex, and tUInteger.

Referenced by initField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wedge() [1/2]

void EMMG_RealField::wedge ( const EMM_RealField X,
EMM_RealField Y 
) const
virtual

compute the vectorial product of two fields This & X Y=alpha this ^ X

Parameters
X: the real field
Ythe output real field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), EMM_RealField::initField(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), EMM_RealField::setSize(), tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInteger, EMM_RealField::wedge(), EMM_Object::X, and EMM_Object::Y.

Referenced by fitToSize(), and wedge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wedge() [2/2]

void EMMG_RealField::wedge ( const tReal alpha,
const EMM_RealField X,
EMM_RealField Y 
) const
virtual

compute the vectorial product of two fields This & X Y=alpha this ^ X

Parameters
alphathe alpha value
X: the real field
Ythe output real field

Implements EMM_RealField.

References EMM_RealField::getDimension(), getSize(), EMM_RealField::initField(), mArray, null, OMP_GET_THREAD_ID, OMP_GET_THREADS_NUMBER, OMP_PARALLEL_PRIVATE_SHARED, EMM_RealField::setDimension(), EMM_RealField::setSize(), tDimension, CORE_Integer::toString(), tReal, tUIndex, tUInteger, wedge(), EMM_RealField::wedge(), EMM_Object::X, and EMM_Object::Y.

Here is the call graph for this function:

Member Data Documentation

◆ Gamma

const tReal EMM_Object::Gamma =-1.7e11
staticinherited

◆ mArray

EMM_RealArray EMMG_RealField::mArray
private

◆ Mu0

const tReal EMM_Object::Mu0 =4*M_PI*1e-07
staticinherited

◆ NULL_VALUE

const tReal EMM_Object::NULL_VALUE ={0,0,0}
staticinherited

◆ X

const tDimension EMM_Object::X =0
staticinherited

◆ Y

const tDimension EMM_Object::Y =1
staticinherited

◆ Z

const tDimension EMM_Object::Z =2
staticinherited

The documentation for this class was generated from the following files: