Any help would be appreciated!
I've been attempting to manipulate the graphics for time t. We need to have Di set to 11.2, however when it is set to any value greater than .1, we see a great deal of slowdown. Is there anyway to increase performance so that we don't see any slowdown? Adjusting Di affects the "vibration" between the two disks.
Clear[qzero];
Clear[Pthzero];
Clear[\[Lambda]];
Clear[Di];
sol = ParametricNDSolve[{q'[t] == Pq[t],
theta'[t] == Ptheta[t]/q[t]^2,
Pq'[t] ==
Ptheta[t]^2/q[t]^3 -
2 Di \[Lambda] (1 - Exp[-\[Lambda] (q[t] - 1)]) Exp[-\[Lambda] (q[t] - 1)],
Ptheta'[t] == 0, q[0] == qzero, theta[0] == 0, Pq[0] == 0,
Ptheta[0] == Pthzero}, {Pq, q, theta, Ptheta}, {t, 0, 500}, {PqO,
thzero, qzero, Pthzero, \[Lambda], Di}];
m1 = 12*(1.99*10^-26);
radius1 = 70;
m2 = 16*(1.99*10^-26);
radius2 = 60;
re = 112.8;
Di = 10;
Manipulate[
Graphics[{White,
Rectangle[{-300, -300}, {300, 300}], {Darker[Red],
Disk[{(m2/(m1 + m2))*re*
Evaluate[q[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol]*
Cos[Evaluate[
theta[0, 0, qzero, Pthzero, 2.7965, Di][t] /.
sol]], (m2/(m1 + m2))*re*
Evaluate[q[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol]*
Sin[Evaluate[
theta[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol]]},
radius1]}, {Darker[Green],
Disk[{(m1/(m1 + m2))*re*
Evaluate[q[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol]*
Cos[Evaluate[
theta[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol] +
Pi], (m1/(m1 + m2))*re*
Evaluate[q[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol]*
Sin[Evaluate[
theta[0, 0, qzero, Pthzero, 2.7965, Di][t] /. sol] + Pi]},
radius2]}}], {qzero, .5,
2}, {Pthzero, -.0445633841, .0445633841}, {t, 0, 500}]