import myjm

mod = myjm.load("SamplingClock","samplingClock.mo")
res = mod.simulate(final_time=10)
myjm.plot(res, 'i','r')
Пример #2
0
import myjm

mod = myjm.load("BouncingBall", "BouncingBall.mo")
res = mod.simulate(final_time=20, options={"ncp": 1000})
myjm.plot(res, "height")
import myjm

mod = myjm.load("MoonLanding","moonLanding.mo")
#~ mod.set('apollo.mass', 1100)
res = mod.simulate(final_time=500)
myjm.plot(res, 'apollo.altitude','apollo.velocity')