Model/Reload

Usage

reload (file="string", output_prefix)

Attributes

file
String
Specifies the file from which the simulation state is to be restored. It must be a legal file name and it must contain data that has previously been "saved".
output_prefix
String
Specifies the output prefix used in the MotionSolve output files.

Example

# Create a model
m = CreateStewartPlatform (output="Stewart-Platform")

# Reload the simulation state at t=1.77
m.reload (file="Stewart-Platform-1.77")

# Continue the simulation to 2 seconds
m.simulate (type="DYNAMICS", end=2, dtout=0.01, returnResults=True)