I have some differential equations as below. I have tried to solve them numerically with NDSolve
:
cf = 200000000;
α = .7;
r = 0.4;
FSR = Pi (cf/500);
g0 = 1;
g1[t_] := g0 (Sin[t/τ]);
g2[t_] := -g0 (Cos[t/τ]);
γc1 = 000 Pi;
γc2 = 000 Pi;
γf = 44000 Pi;
τ = 1;
ξi = {{Re[α]}, {Im[α]}};
ai = 1/4 {{E^(-2 r), 0}, {0, E^(2 r)}};
γ1 = (2 γf (g1[t])^2)/FSR;
γ2 = (2 γf (g2[t])^2)/FSR;
γ12 = (2 γf (g1[t]) (g2[t]))/FSR;
sol1 = NDSolve[{Derivative[1][m1][
t] == (-γc1 + γ1/2) (m1[t]) -
g1[t] (f0[t]) - (γ12/2) (m2[t]),
Derivative[1][f0][
t] == -((γf/2) f0[t] + g1[t] (m1[t]) + g2[t] (m2[t])),
Derivative[1][m2][t] == (-γc2 + γ2/2) (m2[t]) -
g2[t] (f0[t]) - (γ12/2) (m1[t]), m1[0] == 1, f0[0] == 0,
m2[0] == 0}, {m1, m2, f0}, {t, 0, (Pi/2) τ}]
MM[t_] = Evaluate[m2[t] /. sol1[[1]]]
ans = MM[1.57]
As one can see, the final answer is a number. The question is, how can I solve these equations for a variety of values in FSR = Pi (cf/500)
? The above is for just 500
but I want to have MM[t_]
for FSR = Pi (cf/L)
where L=100,110,120,...,500
. Note that in each case, the final value of the t
(after solving the set of equations) should be equal to \pi/2=1.57
.
Thank U for helping.