level 9
翌日翌日翌
楼主
Clear["`*"];
\[Mu] = 0.1;
m = 0.015;
g = 9.8;
r = 0.05;
NDSolve[{Derivative[2][x][t]*m == (-fn[t])*\[Mu],
Derivative[2][y][t]*m == m*g - fn[t], \[Theta][t] == ArcCos[y[t]/r],
((1/2)*(1/12)*m*Derivative[2][\[Theta]][t]*(2*r)^2)/r ==
fn[t]*Sin[\[Theta][t]] - \[Mu]*fn[t]*Cos[\[Theta][t]],
Derivative[1][x][0] == 0, Derivative[1][y][0] == 0,
Derivative[1][\[Theta]][0] == 0, x[0] == 0,
y[0] == r, \[Theta][0] == 0}, {x[t], y[t], \[Theta][t], fn[t]}, {t,
0, 1000}]
或者:
Clear["`*"];
\[Mu] = 0.1;
m = 0.015;
g = 9.8;
r = 0.05;
NDSolve[{
x''[t]*m == -fn[t]*\[Mu],
y''[t]*m == m g - fn[t],
\[Theta][t] == ArcCos[y[t]/r],
(1/2 1/12 m \[Theta]''[t] (2 r)^2)/r ==
fn[t] Sin[\[Theta][t]] - \[Mu] fn[t] Cos[\[Theta][t]],
x'[0] == 0, y'[0] == 0, \[Theta]'[0] == 0,
x[0] == 0, y[0] == r, \[Theta][0] == 0
}, {x[t], y[t], \[Theta][t], fn[t]}, {t, 0, 1000}]
提示:
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions.
2022年08月24日 12点08分
1
\[Mu] = 0.1;
m = 0.015;
g = 9.8;
r = 0.05;
NDSolve[{Derivative[2][x][t]*m == (-fn[t])*\[Mu],
Derivative[2][y][t]*m == m*g - fn[t], \[Theta][t] == ArcCos[y[t]/r],
((1/2)*(1/12)*m*Derivative[2][\[Theta]][t]*(2*r)^2)/r ==
fn[t]*Sin[\[Theta][t]] - \[Mu]*fn[t]*Cos[\[Theta][t]],
Derivative[1][x][0] == 0, Derivative[1][y][0] == 0,
Derivative[1][\[Theta]][0] == 0, x[0] == 0,
y[0] == r, \[Theta][0] == 0}, {x[t], y[t], \[Theta][t], fn[t]}, {t,
0, 1000}]
或者:
Clear["`*"];
\[Mu] = 0.1;
m = 0.015;
g = 9.8;
r = 0.05;
NDSolve[{
x''[t]*m == -fn[t]*\[Mu],
y''[t]*m == m g - fn[t],
\[Theta][t] == ArcCos[y[t]/r],
(1/2 1/12 m \[Theta]''[t] (2 r)^2)/r ==
fn[t] Sin[\[Theta][t]] - \[Mu] fn[t] Cos[\[Theta][t]],
x'[0] == 0, y'[0] == 0, \[Theta]'[0] == 0,
x[0] == 0, y[0] == r, \[Theta][0] == 0
}, {x[t], y[t], \[Theta][t], fn[t]}, {t, 0, 1000}]
提示:
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions.


