HyperWorks Solvers

Save

Save

Previous topic Next topic Expand/collapse all hidden text  

Save

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

Command Element

Description

The Save command causes MotionSolve to write out the model data to a MotionSolve XML file.

Format

<Save

    model_file   = "valid_file_name.xml"

/>

Attributes

model_file

The name of the MotionSolve XML file to be created.

Comments

1.The resulting MotionSolve XML file only contains the model block.  It does not contain the command block.
2.The MotionSolve XML created by the Save command may be loaded using Load_Model command for additional simulations.

Example

The following example demonstrates the use of the Save command to save the model as a MotionSolve XML file after a transient simulation.

<Command

 <Simulate

    analysis_type       = "Transient"

    end_time            = "3."

    print_interval      = "0.01"

 />

 <Save

    model_file          = "save1.xml"

 />

 <Simulate

    analysis_type       = "Transient"

    end_time            = "5."

    print_interval      = "0.01"

 />

 <Save

    model_file          = "save2.xml"

 />

</Command>

hmtoggle_plus1greyPython Format

Command Element

Description

The SAVE command causes MotionSolve to write out the model data to a MotionSolve Python file.

Declaration

def SAVE(FILE=""):

Attributes

FILE

The name of the MotionSolve Python file to be created.

Comments

See Save

Example

The example below demonstrates a SAVE command being used to save the model after transient simulation.

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

SAVE(FILE=save1.py)

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

SAVE(FILE=save2.py)

See Also:

Load_Command

Load_Model

Model Statements

Command Statements

Functions

Notation and Syntax