loom
1import "test/source/sbl/modules/scene/ode-01.sbl" ("sbl") type LS;
2LS ls1 = {
3sigma : 10, b : 8./3, R : 28,
4x : 10, y : 1, z : 1,
5},
6ls2 = {
7sigma : 10, b : 8/3, R : 28,
8x : 10, y : 1, z : 1,
9};
10
11import "scene" scene;
12scene = {
13t : 0.0, tk : 10.0, dt : 0.01,
14callback_period : 100,
15actors : [ls1, ls2],
16callback : func [scene, ls1, ls2] () {
17print scene.t + ", " + ls1.x + ", " + ls1.y + ", " + ls1.z +
18", " + ls2.x + ", " + ls2.y + ", " + ls2.z;
19},
20};
21
22wait scene.start();
23