pycatia.space_analyses_interfaces.inertia¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.space_analyses_interfaces.inertia.Inertia(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInertiaRepresents the Inertia object.The Inertia object can be associated with any relevant object of a document inorder to get or compute its inertia data. It takes into account all bodies of apart.This version allows you to compute the following data:massdensityposition of the center of gravityinertia matrixprincipal axesprincipal momentsof a product.The units are:Kilogram (Kg) for MassSquare meter (M^2) for Wet AreaCubic meter (M^3) for VolumeMeter (M) for PositionSquare Kilogram meter ((KgM)^2) for Inertia Matrix and PrincipalMomentsKilogram per cubic meter (Kg/M^3) for DensityThe method GetTechnologicalObject(“Inertia”) on the product to analyze, allowsyou to retrieve this object.- property density: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Density() As doubleReturns or sets the density for the computation.The density value is set to:0: the computation must use densities attached to eachobject.any positive value: the computation has to use this value.The density value is returned as:1: a default value is used (there is no density attached toobjects).-1: the density is not homogeneous for each object.other positive values: the density attached to all objects.Example:The first example gets the density of NewInertiainertia.Dim ADensity As doubleADensity = NewInertia.DensityThe second example sets the density of NewInertiainertia.NewInertia.Density = 10.
- Return type:
float
- get_cog_position() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetCOGPosition(CATSafeArrayVariant oCoordinates)Retrieves the position of the center of gravity.Parameters:oCoordinatesThe position of the center of gravity with respect to the productcoordinate system:oCoordinates(0) is the X coordinateoCoordinates(1) is the Y coordinateoCoordinates(2) is the Z coordinateExample:This example retrieves the position of the center of gravity ofNewInertia inertia.Dim Coordinates (2)NewInertia.GetCOGPosition Coordinates
- Return type:
tuple
- get_inertia_matrix() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetInertiaMatrix(CATSafeArrayVariant oMatrix)Retrieves the matrix of inertia.Parameters:oMatrixThe matrix of inertia array:oMatrix(0) is the Ixx componentoMatrix(1) is the Ixy componentoMatrix(2) is the Ixz componentoMatrix(3) is the Iyx componentoMatrix(4) is the Iyy componentoMatrix(5) is the Iyz componentoMatrix(6) is the Izx componentoMatrix(7) is the Izy componentoMatrix(8) is the Izz componentExample:This example retrieves the matrix of inertia of NewInertiainertia.Dim Matrix (8)NewInertia.GetInertiaMatrix Matrix
- Return type:
tuple
- get_principal_axes() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPrincipalAxes(CATSafeArrayVariant oComponents)Retrieves the principal axes of inertia.Parameters:oComponentsThe principal axes of inertia array (A1, A2 and A3 are theprincipal axes of inertia):oComponents(0) is the A1x componentoComponents(1) is the A2x componentoComponents(2) is the A3x componentoComponents(3) is the A1y componentoComponents(4) is the A2y componentoComponents(5) is the A3y componentoComponents(6) is the A1z componentoComponents(7) is the A2z componentoComponents(8) is the A3z componentExample:This example retrieves the principal axes of inertia of NewInertiainertia.Dim Components (8)NewInertia.GetPrincipalAxes Components
- Return type:
tuple
- get_principal_moments() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPrincipalMoments(CATSafeArrayVariant oValues)Retrieves the principal moments of inertia.Parameters:oValuesThe principal moments of inertia array:oValues(0) is the M1 value with respect to the first principalexes of inertiaoValues(1) is the M2 value with respect to the second principalexes of inertiaoValues(2) is the M3 value with respect to the third principalexes of inertiaExample:This example retrieves principal moments of inertia of NewInertiainertia.Dim Values (2)NewInertia.GetPrincipalMoments Values
- Return type:
tuple
- property granularity_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property GranularityMode() As longReturns or sets the Granularity Mode for InertiaComputation.The Granularity value is set to:0: Only main bodies option is selected => the computation must not useAll bodies.1: Only main bodies option is not selected => the computation must useAll bodies.The Granularity value is returned as:0: the computation had considered only main bodies.1: the computation had not considered only main bodies.Example:The first example gets the Granularity of NewInertiainertia.Dim AGranularityMode As IntegerAGranularityMode = NewInertia.GranularityModeThe second example sets the Granularity of NewInertia inertiato deselect the “only main bodies”.NewInertia.GranularityMode = 1
- Return type:
int
- property mass: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Mass() As double (Read Only)Returns the mass.Example:This example retrieves the mass of NewInertiainertia.Dim AMass As doubleAMass = NewInertia.Mass
- Return type:
float