I am solving 6 differential equations in matrix form as:
\[Theta] = 34.5*\[Pi]/180;
m2 = 1/2*7.3*10^-5*{{Cos[
2 \[Theta]], -Sin[2 \[Theta]]}, {-Sin[2 \[Theta]], -Cos[
2 \[Theta]]}}
M = Array[Subscript[Subscript[\[Rho], 1], #1, #2][t] &, {2, 2}]
M2 = Array[Subscript[c, #1, #2][t] &, {2, 2}]
M0 = {{1, 0.00001}, {0.00001, 0}};
ci = Thread[Flatten[M] == Flatten[M0]] /. {t -> 0};
M20 = {{2, 0.00001}, {0.00001, 0}};
di = Thread[Flatten[M2] == Flatten[M20]] /. {t -> 0};
s = NDSolve[{
I D[M, t] == (m2/10 + 10^5*2*M2).M - M.(m2/10 + 10^5*2*M2),
I D[M2, t] == (m2/11 + 10^5*2*M).M2 - M2.(m2/11 + 10^5*2*M)}, ci,
di, {Variables[M], Variables[M2]}, {t, 0, 10^7}]
But it is showing the error as :
Subscript[c, 1,1][0]==2 cannot be used as a variable. >> Can someone please help me with this?
t=0.096
, so you will have to investigate that. $\endgroup$