::hwat::utils::GetMassCG

Finds the mass, cg, and centroids of the given assembly.

Syntax

::hwat::utils::GetMassCG str_templateFilePath str_outputFilePath assemname

Arguments

str_templateFilePath
The directory location of the template file.
str_outputFilePath
The directory to write the intermediate output file.
assemname
The HWAT assembly name.
Default = ""

Returns

Success
A Tcl list of the form mass, xcoordinate of cg, ycoordinate of cg, zcoordinate of cg, xcoordinate of centroid, ycoordinate of centroid, zcoordinate of centroid
Failure
{}

Example

::hwat::utils::GetMassCG "D:/Altair/templates" "D:/Project/files" "Vehicle".

Comments

If no assembly name is given, the values are calculated for the displayed assemblies.