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