All Frameworks Class Hierarchy This Framework Previous Next Indexes
AnalysisMeshingModel Class CATMSHGeometricalEngine
CATMSHGeometricalEngine
Usage: you can derive this class.
public class CATMSHGeometricalEngine
Object that handles necessary informations about a finite element in order
to compute a quality criterion.
See CATIMSHCriterion.
Constructor and Destructor Index
- o
CATMSHGeometricalEngine(CATIMSHConnectivity*)
- Constructs a geometrical engine corresponding to a given connectivity.
- o
~CATMSHGeometricalEngine()
- Destructor.
Method Index
- o
ComputeArea(int,int,double&)
- Compute the area of a specified iNuFace, intermediates nodes are take account.
- o
GetCenter(double*&)
- Returns the coordinates of the center of element.
- o
GetConnectivity()
- Returns the connectivity associated with.
- o
GetCoordinates()
- Returns a pointer to an array containing nodes coordinates in the following order: X0, Y0, Z0, X1, Y1, Z1, .
- o
GetCoordinates(int)
- Returns a pointer to the array containing nodes coordinates of iNuNode in the following order: X, Y, Z .
- o
GetDimension()
- Returns the dimension of the connectivity.
- o
GetMainAreas(double*&)
- Returns the pointer of faces areas table (0 to NbFaces-1).
- o
GetMainEdge(int,CATMathVector&)
- Returns the vector of the specified edge (ignore intermediate nodes).
- o
GetMainLengths(double*&)
- Returns a pointer on the edges lengths table 0 to NbEdges-1.
- o
GetMainNormal(int,CATMathVector&)
- Returns the direction of normal face specified ( 0 for 2D element),
the intermediates nodes are ignored.
- o
GetMaxEdge()
- Returns the maximum length of the edges.
- o
GetMinEdge()
- Returns the minimum length of the edges.
- o
GetShapeFunction()
- Returns the shape function associated with.
- o
Init(CATMSHElement const* const)
- Initialize the geometrical engine with the geometry of a finite element.
- o
Init(double* const[])
- Initialize the geometrical engine with the geometry of a finite element.
- o
SetCoordinates(int,double[])
- Set coordinates of specified node.
Constructor and Destructor
o CATMSHGeometricalEngine
-
Constructs a geometrical engine corresponding to a given connectivity.
- Parameters:
-
- iConnectivity
- Connectivity to be associated with.
o ~CATMSHGeometricalEngine
public virtual ~CATMSHGeometricalEngine( | ) |
-
Destructor.
Methods
o ComputeArea
public virtual HRESULT ComputeArea( | const int | iNuFace, |
| const int | iIntegrationType, |
| double& | oArea) |
-
Compute the area of a specified iNuFace, intermediates nodes are take account.
- Parameters:
-
- iNuFace
- Local number of face, between 0 to NbFaces-1.
- iIntegrationType
- Type of numeric integration ( gauss scheme point of integration ).
Legal values:
- 0
- CATMSHCentroid.
- 1
- CATMSHLowPrecision.
- 2
- CATMSHMediumPrecision.
- 3
- CATMSHHighPrecision.
- oArea
- Area of face.
- o GetCenter
-
public HRESULT GetCenter( | const double*& | oCenter) |
-
Returns the coordinates of the center of element.
- Parameters:
-
- oCenter
- Center coordinates of element.
- o GetConnectivity
-
-
Returns the connectivity associated with.
- o GetCoordinates
-
-
Returns a pointer to an array containing nodes coordinates in the following order: X0, Y0, Z0, X1, Y1, Z1, ...
- o GetCoordinates
-
-
Returns a pointer to the array containing nodes coordinates of iNuNode in the following order: X, Y, Z ...
- Parameters:
-
- iNuNode
- Local number of node, between 0 to NbNodes-1
- o GetDimension
-
public const int GetDimension( | ) |
-
Returns the dimension of the connectivity.
- o GetMainAreas
-
public HRESULT GetMainAreas( | const double*& | Areas) |
-
Returns the pointer of faces areas table (0 to NbFaces-1).
The areas are computed without take account intermediate nodes.
- o GetMainEdge
-
-
Returns the vector of the specified edge (ignore intermediate nodes).
- Parameters:
-
- iNuEdge
- Local number of edge, between 0 to NbEdges-1.
- oEdge
- Vector between first and second node of the edge.
- o GetMainLengths
-
public HRESULT GetMainLengths( | const double*& | oLengths) |
-
Returns a pointer on the edges lengths table 0 to NbEdges-1.
The lengths are computed without take account intermediate nodes.
- o GetMainNormal
-
-
Returns the direction of normal face specified ( 0 for 2D element),
the intermediates nodes are ignored.
- Parameters:
-
- iNuFace
- Local number of face, between 0 to NbFaces-1.
- oNormal
- Normalized Vector at the center of the face.
- Returns:
- An HRESULT.
Legal values:
- S_OK
- Normal vector is normalized.
- E_FAIL
- Normal vector is null.
- o GetMaxEdge
-
public virtual double GetMaxEdge( | ) |
-
Returns the maximum length of the edges.
- o GetMinEdge
-
public virtual double GetMinEdge( | ) |
-
Returns the minimum length of the edges.
- o GetShapeFunction
-
-
Returns the shape function associated with.
- o Init
-
public virtual void Init( | CATMSHElement const* const | iElement) |
-
Initialize the geometrical engine with the geometry of a finite element.
- Parameters:
-
- iElement
- Finite element to be used to initialize the geometrical engine.
- o Init
-
public virtual void Init( | const double* const[] | iCoordinates) |
-
Initialize the geometrical engine with the geometry of a finite element.
- Parameters:
-
- iCoordinates
- iCoordinates array containning pointer coordinates in the following order :
iCoordinates[0] pointer of the first coordinates of node 0.
iCoordinates[1] pointer of the first coordinates of node 1.
..
iCoordinates[NbNodes-1] pointer of the first coordinates of node the last node.
- o SetCoordinates
-
public virtual void SetCoordinates( | const int | iNuNode, |
| const double[] | iXYZ) |
-
Set coordinates of specified node. This method invalidate all previous results like a call to Init.
- Parameters:
-
- iNuNode
- Local number of node, between 0 to NbNodes-1.
- iXYZ
- New coordinates of node.
This object is included in the file: CATMSHGeometricalEngine.h
If needed, your Imakefile.mk should include the module: CATAmtModel