I want to solve a mixed PDE Parabolic-Elliptic system,
subject to initial conditions u(x,y,0)=1 and v(x,y,0)=2-0.5 cos[(Pi x)/5]
.
The respective code version with parameters value, boundary and initial conditions is,
L = 20;(*length of square*)
pts = 100;
T = 100;(*Time integration*)
c11 = 4;
c12 = 4;
c21 = 15;
c22 = 0.5;
α = 70;
β = 20;
a1 = 0.8;
a2 = 0.8;
d1 = 0.2;
d2 = 0.2;
d3 = 10;
d4 = 10;
(*system of nonlinear PDE*)
pde = {D[u[t, x, y], t] ==
d1*(D[u[t, x, y], x, x] + D[u[t, x, y], y, y]) + (α -
u[t, x, y] - c11 w[t, x, y] - c12 z[t, x, y] -
a1 v[t, x, y]) u[t, x, y],
D[v[t, x, y], t] ==
d2*(D[v[t, x, y], x, x] + D[v[t, x, y], y, y]) + (β -
v[t, x, y] - c21 w[t, x, y] - c22 z[t, x, y] -
a2 u[t, x, y]) v[t, x, y],
0 == d3*(D[w[t, x, y], x, x] + D[w[t, x, y], y, y]) - w[t, x, y] +
u[t, x, y],
0 == d4*(D[z[t, x, y], x, x] + D[z[t, x, y], y, y]) - z[t, x, y] +
v[t, x, y]};
(*Neumann boundary condition*)
bc = {(D[u[t, x, y], x] /. x -> -L) ==
0, (D[u[t, x, y], x] /. x -> L) ==
0, (D[u[t, x, y], y] /. y -> -L) ==
0, (D[u[t, x, y], y] /. y -> L) ==
0, (D[v[t, x, y], x] /. x -> -L) ==
0, (D[v[t, x, y], x] /. x -> L) ==
0, (D[v[t, x, y], y] /. y -> -L) ==
0, (D[v[t, x, y], y] /. y -> L) ==
0, (D[w[t, x, y], x] /. x -> -L) ==
0, (D[w[t, x, y], x] /. x -> L) ==
0, (D[w[t, x, y], y] /. y -> -L) ==
0, (D[w[t, x, y], y] /. y -> L) ==
0, (D[z[t, x, y], x] /. x -> -L) ==
0, (D[z[t, x, y], x] /. x -> L) ==
0, (D[z[t, x, y], y] /. y -> -L) ==
0, (D[z[t, x, y], y] /. y -> L) == 0};
(*initial condition*)
ic = {u[0, x, y] == 1, v[0, x, y] == 2 - 0.5 Cos[(Pi x)/5]};
eqns = Flatten@{pde, bc, ic};
sol = NDSolve[eqns, {u, v, w, z}, {t, 0, T}, {x, -L, L}, {y, -L, L},
Method -> {"MethodOfLines",
"SpatialDiscretization" -> {"TensorProductGrid",
"MinPoints" -> pts, "MaxPoints" -> pts}}];
but something is not working well.
NDSolve::ivone: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable. >>
Can anybody help me?