Flexbody solved in ADAMS
HyperView supports post-processing of transient analyses and modal (ADAMS Linear) analyses of ADAMS simulations that contain flexbodies.
- FLX (ASCII file)
- GRA (rigid body graphics and results)
- RES (ASCII of flexbody modal participation factors)
- H3D #1 (first flexbody)
- H3D #2 (second flexbody)
- H3D #N (Nth flexbody)
When MDL generates the ADAMS solver input deck, it also creates a FLX file. The FLX file is a small ASCII file that points to the files necessary for post-processing the ADAMS run corresponding to that MDL model. The path to the files is relative.
*ModelSource()
*ResultSource()
*FlexSource()
*AssignIdToVarname()
*AddObjectsFromFile()
*DefineColor()
*TempFileDirectory()
*SetAdamsDirectory()
*ModelSource(), *ResultSource(), and *FlexSource() assemble all necessary information for animation. *TempFileDirectory() allows you to define the directory to which scratch files are written.
A subset of the total time or total mode set can be animated using the following statements inside the FLX file. This allows all frames to be calculated at load time, without requiring all frames to be included in the calculation. For models containing large flexbodies, the reduced calculation time can reduce the initial load time. The following commands are valid for FLX files:
Command | Description |
---|---|
*ModelSource(string) | Defines the source of the file containing rigid body graphics. |
*ResultSource(string) | Defines the source of the file containing flexbody modal participation factors as well as rigid body time histories. |
*FlexSource(string, body_id, scale) | Defines the source of the graphics for the flexbody as well as identifying the ID of the flexbody in the solver input deck and animation scale. Scale determines the magnification of the deformation of the flexbody and can be set independently for each flexbody. |
*AssignIdToVarname | Matches an ADAMS varname with a MotionView ID. |
*AddObjectsFromFile | Parses ADAMS CMD file and reads in all WaveFront objects. |
*DefineColor | Defines a color used in the ADAMS CMD file. All default colors that exist when ADAMS is started do not need to be defined. |
*TempFileDirectory("string") | Allows you to control which directory is used when MotionView creates scratch files during the processing of flexbody animations. |
*SetAdamsDirectory() | For parasolid objects, use *SetAdamsDirectory() in the FLX file. While creating an H3D file for a parasolid, select Manual Mesh and activate the Place Elements on Surface Component option. |
If Apply is not highlighted in HyperView Load Model panel, one or more files in the FLX file cannot be located.
*ModelSource("double_link.gra")
*ResultSource("double_link.res")
*FlexSource("../h3d_flexbodies/link_flex.h3d", 1, 100000.0)
*FlexSource("../h3d_flexbodies/link_flex.h3d", 2, 10000.0)
*AssignIdToVarname(ges_chassis_BODY, 51)
*AddObjectsFromFile("u222_ltlc_full_sys_cnrd_1.cmd")
*DefineColor("ForestGreen", 52, 97, 254)