I am trying to solve a system of PDE´s coupled by interface boundary conditions, this is my code:
g = 1; k = 1; f = 0.5; Pe = 1; pde = {D[u[t, x, y], x, x] + k^2 D[u[t, x, y], y, y] == g D[u[t, x, y], t] + Pe (1 - (y/f)^2) D[u[t, x, y], x], D[v[t, x, y], x, x] + k^2 D[v[t, x, y], y, y] == D[v[t, x, y], t]}; s = 1; f = 0.5; bc = {u[t, 0, y] == Exp[-10000 t], (u^(0,1,0))[t, 1, y] == Exp[-10000 t], (u^(0,0,1))[t, x, 0] == Exp[-10000 t], (u^(0,0,1))[t, x, f] == s (v^(0,0,1))[t, x, f], u[t, x, f] == v[t, x,f], u[0, x, y] == Exp[-10000 t], (v^(0,1,0))[t, 0, y] == Exp[-10000 t], (v^(0,1,0))[t, 1, y] == Exp[-10000 t], v[0, x, y] == 1}; sol = NDSolve[{pde, bc}, {u, v}, {t, 0, 6}, {x, 0, 1}, {y, 0, 1}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", "DifferenceOrder" -> "Pseudospectral"}}] But the following error message appears:
NDSolve::bcedge: Boundary condition (u^(0,0,1))[t,x,0.5]==(v^(0,0,1))[t,x,0.5] is not specified on a single edge of the boundary of the computational domain. >>
Is here any way to fix this?
v^(0,0,1)andu^(0,1,0)- which aren't valid Mathematica code. $\endgroup$