Group Abstract Group Abstract

Message Boards Message Boards

Solve a PDE by using NDSolve?

Posted 7 years ago

I try to solve my equations by using NDsolve. But it does not solve my solution. Can anyone help me to check whether I used correct command or not?

eq1 = {D[Subscript[\[Theta], c][x, y], x] - 
     2/(Y - Y^2)*D[Subscript[\[Theta], c][x, y], y, y] == 0};
ic = {Subscript[\[Theta], c][0, y] == 1};
bc = {DirichletCondition[{Subscript[\[Theta], c][x, y] == 0}, y == 0],NeumannValue[0, y == 1]};

sol = NDSolve[{eq1, ic, bc}, {Subscript[\[Theta], c]}, {x, 0, 1}, {y, 
   0, 1}]
4 Replies
POSTED BY: Neil Singer

Thanks for your correction. But still, it does not give me the solution.

Thanks for your help. But I checked after correction it does not give me a result.

When I copy eq1 into Mathematica, I get a message

Syntax::bktmcp: Expression "{D[Subscript[\[Theta],c][x,y],x]-2/(Y-Y^2)*D[Subscript[\[Theta],c][x,y],y,y]==0" has no closing "}".
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard