Skip to content

Commit 4a22d8b

Browse files
committed
more interesting initial condition
1 parent 05a59c0 commit 4a22d8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/examples/swing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ ssys = structural_simplify(IRSystem(model))
132132
d = 10
133133
dj = 0.01
134134
prob = ODEProblem(ssys, [
135+
collect(model.body.r_0) .=> [0, -2, 0.0];
135136
collect(model.body_right.body.r_0) .=> [0, -2, 0.5];
136-
# collect(model.body_left.body.r_0) .=> [0, -2, -0.5];
137-
collect(model.body_right.body.v_0) .=> 0;
137+
collect(model.body_left.body.r_0) .=> [0, -2, -0.5];
138+
collect(model.body.v_0) .=> [0, 0, 5];
138139
model.damper.d => 1;
139140
model.rope1.damper.d => d;
140141
model.rope2.damper.d => d;

0 commit comments

Comments
 (0)