HyperWorks Solvers

Load Model

Load Model

Previous topic Next topic Expand/collapse all hidden text  

Load Model

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  
hmtoggle_plus1greyXML Format

Command Element

Description

The Load_Model command reads a MotionSolve XML file and builds a new multi-body model.

This command may be used in conjunction with the Save command, which is used to save a multi-body model as a MotionSolve XML file, following a simulation.  Such a file contains all the model information necessary to restart the simulation.

Format

<Load_Model

    model_file       = "valid_file_name.xml"

    result_file      = "valid_file_name.mrf"

    anima_file       = "valid_file_name.h3d"

/>

Attributes

model_file

The name of the MotionSolve XML file to be loaded.

result_file

The name of the MRF file that will store the results of the new simulation.

anima_file

The name of the H3D file that will store the results of the new simulation.

Comments

1.A new MRF file is generated for each new simulation.
2.A single H3D file is produced which contains the animation results for the entire simulation.

Example

The following example demonstrates using the Load_Model command to load a MotionSolve XML file and then performing a transient simulation until 5 seconds.

<Command

  <Load_Model

     model_file        = "save1.xml"

     result_file       = "output.mrf"

     anima_file        = "output.h3d"

  />

  <Simulate

     analysis_type     = "Transient"

     end_time          = "5."

     print_interval    = "0.01"

  />

</Command>

The file save1.xml was created using the Save command, following a transient simulation for 3 seconds.

hmtoggle_plus1greyPython Format

Command Element

Description

The OUTPUT command defines the options for output files to be generated by MotionSolve.

Declaration

def RELOAD(FILE="", OUTPUT_PREFIX = ""):

Attributes

FILE

The name of the MotionSolve Python file to be loaded.

OUTPUT_PREFIX

The name of the MRF and H3D file that will store the results of the new simulation.

Comments

See Load_Model

Example

The following example demonstrates using the RELOAD command to load a MotionSolve Python file and then performing a transient simulation until 5 seconds.

RELOAD(FILE="save1.py", OUTPUT_PREFIX="my_result")

SIMULATE(TYPE="TRANSIENT", END=5, DTOUT=0.01)

See Also:

Load_Command

Save

Model Statements

Command Statements

Functions

Notation and Syntax