HyperWorks Solvers

Load: Load Command

Load: Load Command

Previous topic Next topic Expand/collapse all hidden text  

Load: Load Command

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_Command command reads the command block from a specified MotionSolve XML file and executes the command elements.

Format

<Load_Command

    Command_File = "valid_file_name.xml"

/>

Attributes

Command_File

The name of the MotionSolve XML file to be loaded.

Comments

1.Any general MotionSolve XML file can be specified.  MotionSolve will read only the command block from the specified file.

Example

The following example demonstrates using the Load_Command to load a MotionSolve XML file, called cmd.xml and then executing the three simulate commands it contains.

<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"

  />

  <Load_Command

    command_file         = "cmd.xml"

  />

  <Simulate

    analysis_type        = "Transient"

    end_time             = "10."

    print_interval       = "0.01"    

  />

</Command>

The contents of the file cmd.xml are as follows.

 

<Command>

 <Simulate

    analysis_type       = "Transient"

    end_time            = "6."

    print_interval      = "0.01"    

 />

 <Simulate

    analysis_type       = "Transient"

    end_time            = "7."

    print_interval      = "0.01"    

 />

 <Simulate

    analysis_type       = "Transient"

    end_time            = "8."

    print_interval      = "0.01"    

 />

</Command>

hmtoggle_plus1greyPython Format

Command Element

Description

The RELOAD command defines options for the output files 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_Model

Save

Model Statements

Command Statements

Functions

Notation and Syntax