level 4
善良的邓牧之
楼主
SetAttributes[{a, b, q}, Constant];
eqn = {Laplacian[w[x, y], {x, y}] == v[x, y],
Laplacian[v[x, y], {x, y}] == 7};
bcs = {w[0, y] == 0, w[x, 20] == 0, w[10, y] == 0, w[x, 0] == 0,
Derivative[1, 0][w][0, y] == 0, v[x, 20] == 0,
Derivative[1, 0][w][10, y] == 0, v[x, 0] == 0};
ufun = NDSolveValue[{eqn, bcs}, w, {x, 0, 10}, {y, 0, 20}]
NDSolveValue::fembdnl: The dependent variable in (w^(1,0))[0,y]==0 in the boundary condition DirichletCondition[(w^(1,0))[0,y]==0,x==0.] needs to be linear.
怎么搞成线性的啊
2022年11月12日 12点11分
1
eqn = {Laplacian[w[x, y], {x, y}] == v[x, y],
Laplacian[v[x, y], {x, y}] == 7};
bcs = {w[0, y] == 0, w[x, 20] == 0, w[10, y] == 0, w[x, 0] == 0,
Derivative[1, 0][w][0, y] == 0, v[x, 20] == 0,
Derivative[1, 0][w][10, y] == 0, v[x, 0] == 0};
ufun = NDSolveValue[{eqn, bcs}, w, {x, 0, 10}, {y, 0, 20}]
NDSolveValue::fembdnl: The dependent variable in (w^(1,0))[0,y]==0 in the boundary condition DirichletCondition[(w^(1,0))[0,y]==0,x==0.] needs to be linear.
怎么搞成线性的啊