All Frameworks Class Hierarchy This Framework Previous Next Indexes
TopologicalOperators Class CATDynMassProperties3D
CATDynMassProperties3D
Usage: you must use this class as is. You should never derive it.
public class CATDynMassProperties3D
Class representing the operator that computes geometric characteristics of a body , a face
or a edge.
To use it:
- Create an operator with the CATDynCreateMassProperties3D global function.
- Get the results with the appropriate methods.
- delete after use.
Constructor and Destructor Index
- o
~CATDynMassProperties3D()
-
Method Index
- o
GetCenterOfGravity()
- Returns the center of gravity of the analyzed body.
- o
GetCenterOfGravityRelativeError(CATBoolean&,double [3],double[3])
- Returns an estimation of the center of gravity relative error.
- o
GetInertiaMatrix()
- Returns the inertia matrix of the analyzed body.
- o
GetLength()
- Returns the length of the analyzed body.
- o
GetVolume()
- Returns the volume of the analyzed body.
- o
GetVolumeRelativeError(CATBoolean&)
- Returns an estimation of the volume relative error.
- o
GetWetArea()
- Returns the surface of the analyzed body.
- o
GetWetAreaRelativeError(CATBoolean&)
- Returns an estimation of the wet area relative error.
Constructor and Destructor
o ~CATDynMassProperties3D
public virtual ~CATDynMassProperties3D( | ) |
-
Methods
o GetCenterOfGravity
-
Returns the center of gravity of the analyzed body.
- Returns:
- The center of gravity.
For body made of shell , the center of gravity is equivalent to a extruded volume from the shell with a unitary thickness.
For body made of wire , the center of gravity is equivalent to a sweeped volume along the wire with a unitary cross section.
o GetCenterOfGravityRelativeError
public virtual void GetCenterOfGravityRelativeError( | CATBoolean& | oIsRelativeErrorAvailableWithMethod, |
| double [3] | oRelativeError, |
| double[3] | oMaximalDimension) |
-
Returns an estimation of the center of gravity relative error.
- Parameters:
-
- oIsRelativeErrorAvailableWithMethod
- TRUE if the relative error is available with the method or FALSE else.
This method is not applicable for body made of wire.
- oRelativeError
- gives the relative center of gravity position error along axis X , Y , Z
- oMaximalDimension
- gives the maximal dimension of the part along axis X , Y , Z.
This value is not the exact dimension but is extracted from the bounding box of the body.
To have the absolute center of gravity error :
- * oRelativeError[0] * ( 1 + oMaximalDimension[0] ) gives the absolute error along axis X
- * oRelativeError[1] * ( 1 + oMaximalDimension[1] ) gives the absolute error along axis X
- * oRelativeError[2] * ( 1 + oMaximalDimension[2] ) gives the absolute error along axis X
This method is not applicable to the body made of wires.
o GetInertiaMatrix
-
Returns the inertia matrix of the analyzed body.
- Returns:
- The inertia matrix.
The inertia matrix is relative to the center of gravity.
For body made of shell , the inertia matrix is equivalent to a extruded volume from the shell with a unitary thickness.
For body made of wire , the inertia matrix is equivalent to a sweeped volume along the wire with a unitary cross section.
o GetLength
public virtual double GetLength( | ) |
-
Returns the length of the analyzed body.
- Returns:
- Useful in case of 1D bodies (wire domains).
o GetVolume
public virtual double GetVolume( | )= 0 |
-
Returns the volume of the analyzed body.
- Returns:
- The volume (in case of solid bodies). NULL for shell bodies.
o GetVolumeRelativeError
public virtual double GetVolumeRelativeError( | CATBoolean& | oIsRelativeErrorAvailableWithMethod) |
-
Returns an estimation of the volume relative error.
- Parameters:
-
- oIsRelativeErrorAvailableWithMethod
- TRUE if the relative error is available with the method or FALSE else.
- Returns:
- The estimation of the volume relative error if applicable or 0.
o GetWetArea
public virtual double GetWetArea( | )= 0 |
-
Returns the surface of the analyzed body.
- Returns:
- The surface area. In case of a 3D bodies (lump domains),
the computed surface is the outside surface: cavities immersed
inside the 3D body are not taken into account. In case of 2D bodies (shell domains),
the holes are taken into account.
o GetWetAreaRelativeError
public virtual double GetWetAreaRelativeError( | CATBoolean& | oIsRelativeErrorAvailableWithMethod) |
-
Returns an estimation of the wet area relative error.
- Parameters:
-
- oIsRelativeErrorAvailableWithMethod
- TRUE if the relative error is available with the method or FALSE else.
- Returns:
- The estimation of the wet area relative error if applicable or 0.
This object is included in the file: CATDynMassProperties3D.h
If needed, your Imakefile.mk should include the module: CATTopologicalOperators