Version: 5.1.6

multipr.GaussLoc Class Reference

#include <MULTIPR_GaussLoc.hxx>

Public Member Functions

 GaussLoc ()
 Builds an empty Gauss reference (default constructor).
 GaussLoc (const GaussLoc &pGaussLoc)
 Copy constructor (deep copy).
 ~GaussLoc ()
 Destructor.
void reset ()
 Resets this object in its state by default (empty).
std::string getName () const
 Returns the name of this GaussLoc.
int getDim () const
 Returns dimension of Gauss points which is also the dimension of reference nodes.
int getNumGaussPoints () const
 Returns number of Gauss points.
void getCoordGaussPoints (const med_float *pCooElt, med_float *pCooGaussPoints, int nb_gauss) const
 Returns the coordinates of all the Gauss points for a given element.
void readMED (med_idt pMEDfile, med_int pIndex)
 Reads a GaussLoc object from a MED file.
void writeMED (med_idt pMEDfile)
 Writes this GaussLoc object to the given MED file.
GaussLocoperator= (const GaussLoc &)
bool operator== (const GaussLoc &)

Data Fields

char mName [32+1]
 Name of the Gauss info.
med_geometrie_element mGeom
 Type of elements, e.g.
int mDim
 Dimension of nodes, e.g.
int mNumNodes
 Number of nodes in the reference element, e.g.
med_int mNumGauss
 Number of Gauss points.
med_float * mRefCoo
 Table of coordinates of nodes.
med_float * mGaussCoo
 Table of coordinates of Gauss points.
med_float * mWeight
 Table of weights of Gauss points.

Friends

std::ostream & operator<< (std::ostream &pOs, GaussLoc &pG)
 Dumps any GaussLoc to the given output stream.

Constructor & Destructor Documentation

multipr.GaussLoc::GaussLoc (  ) 

Builds an empty Gauss reference (default constructor).

References multipr.GaussLoc.mGaussCoo, multipr.GaussLoc.mRefCoo, multipr.GaussLoc.mWeight, NULL, and multipr.GaussLoc.reset().

multipr.GaussLoc::GaussLoc ( const GaussLoc pGaussLoc  ) 
multipr.GaussLoc::~GaussLoc (  ) 

Destructor.

Removes everything.

References multipr.GaussLoc.reset().


Member Function Documentation

void multipr.GaussLoc::reset (  ) 
std::string multipr.GaussLoc.getName (  )  const

Returns the name of this GaussLoc.

Returns:
the name of this GaussLoc.

References multipr.GaussLoc.mName.

int multipr.GaussLoc.getDim (  )  const

Returns dimension of Gauss points which is also the dimension of reference nodes.

Returns:
dimension of Gauss points.

References multipr.GaussLoc.mDim.

int multipr.GaussLoc.getNumGaussPoints (  )  const

Returns number of Gauss points.

Returns:
number of Gauss points.

References multipr.GaussLoc.mNumGauss.

void multipr.GaussLoc::getCoordGaussPoints ( const med_float *  pCooElt,
med_float *  pCooGaussPoints,
int  nb_gauss 
) const

Returns the coordinates of all the Gauss points for a given element.

Parameters:
pCooElt (in) coordinates of nodes of an element.
pCoo (out) coordinates of all the Gauss points (interlaced); memory must have been allocated.

References multipr.GaussLoc.mDim, multipr.GaussLoc.mGaussCoo, and multipr.GaussLoc.mNumGauss.

void multipr.GaussLoc::readMED ( med_idt  pMEDfile,
med_int  pIndex 
)

Reads a GaussLoc object from a MED file.

Parameters:
pMEDfile any valid MED file opened for reading.
pIndex index of the gauss localization to be read; must be >= 1.
Exceptions:
IOException if any i/o error occurs.

References multipr.GaussLoc.mDim, MED_EN.MED_FULL_INTERLACE, MEDgaussInfo(), multipr.GaussLoc.mGaussCoo, multipr.GaussLoc.mGeom, multipr.GaussLoc.mName, multipr.GaussLoc.mNumGauss, multipr.GaussLoc.mNumNodes, multipr.GaussLoc.mRefCoo, multipr.GaussLoc.mWeight, multipr.GaussLoc.reset(), and testMEDMEM.ret.

void multipr.GaussLoc::writeMED ( med_idt  pMEDfile  ) 

Writes this GaussLoc object to the given MED file.

Parameters:
pMEDfile any valid MED file opened for writing.
Exceptions:
IOException if any i/o error occurs.

References MED_EN.MED_FULL_INTERLACE, MED_TAILLE_NOM, multipr.GaussLoc.mGaussCoo, multipr.GaussLoc.mGeom, multipr.GaussLoc.mName, multipr.GaussLoc.mNumGauss, multipr.GaussLoc.mRefCoo, multipr.GaussLoc.mWeight, NULL, and testMEDMEM.ret.

GaussLoc& multipr.GaussLoc.operator= ( const GaussLoc  ) 
bool multipr.GaussLoc.operator== ( const GaussLoc  ) 

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOs,
GaussLoc pG 
) [friend]

Dumps any GaussLoc to the given output stream.

Parameters:
pOs any output stream.
pF any Field.
Returns:
the output stream pOs.

Field Documentation

Name of the Gauss info.

med_geometrie_element multipr.GaussLoc.mGeom

Type of elements, e.g.

TETRA10 (code is 310).

Dimension of nodes, e.g.

3 for a TETRA10.

Number of nodes in the reference element, e.g.

10 for a TETRA10.

Number of Gauss points.

Table of coordinates of nodes.

Example: for a TETRA10: 10 nodes, 3 components => 30 med_float.

Table of coordinates of Gauss points.

Table of weights of Gauss points.