I tried to solve this coupled PDE with NDsolve
and use manipulation code for manipulating the obtained plot, but I get an error like order inconsistency. Here I take the Initial and boundary condition as when t>0
u=1
, Theta=1
, C=t
. And I want to plot various curves with different values of parameters in a single curve.
Module[{u, y, t, c, \[Theta], Gr, Gm, \[Alpha], M, K, Pr, Sc, Kc,
pde1, pde2, pde3, parm},
pde1 = D[u[t, y], t] ==
D[u[t, y], y,
y] (\[Alpha]*(D[u[t, y], y, y, t])) + (Gr*\[Theta][t,
y]) + (Gm*c[t, y]) - ((M + (1/K))*u[t, y]);
pde2 = D[\[Theta][t, y], t] == ((1/Pr)*D[\[Theta][t, y], y, y]);
pde3 = D[c[t, y], t] == ((1/Sc)*D[c[t, y], y, y]) - (Kc*c[t, y]);
ic = {u[y, 0] == 0, \[Theta][y, 0] == 0, c[y, 0] == 0};
bc = {u[0, t] == 1, \[Theta][0, t] == 1,
c[0, t] == t, (D[u[y, t], y, y] /. y -> 0) ==
0, (D[u[y, t], y] /. y -> 0) ==
0, (D[\[Theta][y, t], y] /. y -> 0) ==
0, (D[c[y, t], y] /. y -> 0) == 0};
parm = {Gr -> 10, Gm -> 5, \[Alpha] -> 1, M -> 1, K -> 3, Pr -> 5,
Sc -> 2.02, Kc -> 2};
{usol1, \[Theta]sol1, Csol1} =
NDSolveValue[{pde1, pde2, pde3, ic, bc} /. parm, {u, \[Theta],
c}, {y, 0, 10}, {t, 0, 20}];
parm = {Gr -> 10, Gm -> 5, \[Alpha] -> 3, M -> 1, K -> 3, Pr -> 5,
Sc -> 2.02, Kc -> 2};
{usol2, \[Theta]sol2, Csol2} =
NDSolveValue[{pde1, pde2, pde3, ic, bc} /. parm, {u, \[Theta],
c}, {y, 0, 10}, {t, 0, 20}];
parm = {Gr -> 10, Gm -> 5, \[Alpha] -> 5, M -> 1, K -> 3, Pr -> 5,
Sc -> 2.02, Kc -> 2};
{usol3, \[Theta]sol3, Csol3} =
NDSolveValue[{pde1, pde2, pde3, ic, bc} /. parm, {u, \[Theta],
c}, {y, 0, 10}, {t, 0, 20}];
Grid[{{Row[{"Time = ", t0, " seconds"}]}, {Plot[{usol1[y, t0],
usol2[y, t0], usol3[y, t0]}, {y, 0, 5},
AxesLabel -> {"y", "U"}, BaseStyle -> 12, ImageSize -> 300,
PlotRange -> {Automatic, {-0.1, 2}},
PlotStyle -> {Red, Blue, Green}, GridLines -> Automatic,
GridLinesStyle -> LightGray,
PlotLegends ->
Placed[LineLegend[
Automatic, {"\[Alpha]=1", "\[Alpha]=3",
"\[Alpha]=5"}], {.84, .62}]]}}]], {{t0, 0, "time"}, 0,
5, .01, Appearance -> "Labeled"}, TrackedSymbols :> {t0}]```
pde1
you wroteu[t, y]
but inic
you wroteu[y, 0]
, the order is obviouly inconsistent. $\endgroup$