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 |
|||
|
|||
ExampleThe 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> |
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. |
CommentsSee Load_Model |
|
ExampleThe 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) |