Model/Save
使用法
save (file="string")
属性
- file
- 文字列
例
# Create a model & do a simulation
m = CreateStewartPlatform (output="Stewart-Platform")
m.simulate (type="DYNAMICS", end=1.77, dtout=0.01, returnResults=True)
# Save the results at time t=1.77
m.save (file="Stewart-Platform-1.77")
# Continue the simulation to t=2 and save again
m.simulate (type="DYNAMICS", end=2, dtout=0.01, returnResults=True)
# Save the results at time t=2.00
m.save (file="Stewart-Platform-2.00")