GMOperatorsInterfaces Interface CATICGMDynMassProperties3D
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATICGMDynMassProperties3D
Class representing the operator that computes geometric characteristics of a body, a face
or a edge.
To use it:
- Create an operator with the CATCGMDynCreateMassProperties3D global function.
- Get the results with the appropriate methods.
- Release the operator with the Release method after use.
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.
Methods
o GetCenterOfGravity
public virtual 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 GetCenterOfGravityRelativeError( | | oIsRelativeErrorAvailableWithMethod, |
| | oRelativeError, |
| | 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
public virtual 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 GetLength( | ) |
-
Returns the length of the analyzed body.
- Returns:
- Useful in case of 1D bodies (wire domains).
o GetVolume
public virtual GetVolume( | ) |
-
Returns the volume of the analyzed body.
- Returns:
- The volume (in case of solid bodies). NULL for shell bodies.
o GetVolumeRelativeError
public virtual GetVolumeRelativeError( | | 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 GetWetArea( | ) |
-
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 GetWetAreaRelativeError( | | 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: CATICGMDynMassProperties3D.h
If needed, your Imakefile.mk should include the module: CATGMOperatorsInterfaces
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.