Back to index

salome-med  6.5.0
Gauss points

In MED, it is possible to declare a Gauss model that describes the location of Gauss points in a reference cell. More...

In MED, it is possible to declare a Gauss model that describes the location of Gauss points in a reference cell.

This Gauss model definition is contained in the GAUSS_LOCALIZATION class. A GAUSS_LOCALIZATION object is associated to a field and to a type.

It is not permitted to define a Gauss model in a polygonal or polyhedric element.

The Gauss model can be :

Constructing a Gauss Model

A Gauss model can be constructed with the following constructor :

Parameters:
locNamedefines a name associated with the gauss model
typeGeonames the type to which the Gauss model is assocaited
nGaussdefines the number of Gauss points
cooRefdefines an array giving the coordinates of the nodes of the reference element (dimension : spaceDimension * number of nodes for type typeGeo)
cooGaussdefines an array giving the coordinates of the nodes of the Gauss points (dimension : spaceDimension * nGauss )
wgweights associated with each Gauss point (dimension : nGauss)

Example : in 2D, a Gauss model definition for a triangle would be written as :

string locname("gauss model");
double cooRef[6] ={0.0, 0.0, 1.0, 0.0, 0.0, 1.0};
double cooGauss[6]={0.2, 0.2, 0.8, 0.1, 0.1, 0.8};
double wg[3]={0.3334, 0.3334, 0.3334};
GAUSS_LOCALIZATION model(locname, 
                         MED_EN::MED_TRIA3,  
                         3,
                         cooRef,
                         cooGauss,
                         wg);