Message Boards Message Boards

0
|
14720 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Solve Nonlinear 2nd Order Partial Differential Equation Numerically?

Posted 11 years ago
Hey!

I am kind of new to mathematica so I don't know a lot of stuff... 

So trying to put the question in context... I want to know if there is a way in Mathematica 9 to solve Nonlinear Second Order Parial Differential Equation?
I understand that I cannot use DSolve since its a Second Order PDE but even with NDSolve, I keep getting errors..

My PDEs are something like this:
fpde = (1 + (D[y[x, t], t])^2) (D[y[x, t], {x, 2}]) + (1 + (D[y[x, t], x])^2) (D[y[x, t], {t, 2}]) == 0;
i.e.
(1 + (dy / dt)^2 ) * (d2y / dx2))   +   (1 + (dy / dx)^2 ) * (d2y / d?t2))    =    0
where y is a function of x and t.

I also give two boundary conditions and one initial conditon while using NDSolve
I have tried the following:
mysol = NDSolve[{fpde, y[0, t] == 0, y[2 Pi, t] == 0, y[x, Pi/4] == 0}, y, {x, 0, 2 Pi}, {t, 0, 2 Pi}]
Error : The number of constraints (1) (initial conditions) is not equal to the total differential order of the system plus the number of discrete variables (2).


mysol = NDSolve[{fpde, y[0, t] == 0, y[2 Pi, t] == 0, Derivative[1, 0][y][x, 2 Pi] == Tan[x]}, y, {x, 0, 2 Pi}, {t, 0, 2 Pi}]
Error: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable.

I can't figure out if my application of the command is incorrect or if a different approach is required to solve such PDEs. My objective is to get the numerical solution to such an equation.

Thanks a lot!
POSTED BY: Chirag Agrawal
2 Replies
Hi,

Your system is second order in time and space. Generally, this means you need two spatial boundary conditions and two time conditions.  This is the cause of the first error.

Your boundary conditions in the second case are a bit confusing.  y[0, t] == 0, y[2 Pi, t] == 0 is fine, however, Derivative[1, 0][x, 2 Pi] suggests that you are specifying the spatial derivative of y at the value t = 2 Pi. If you had conditions like y[x,0] ==... and Derivative[0,1][x,0] == ..., you might find more success.
POSTED BY: Jason Grigsby
Wow! That worked!
What I was actually trying to do there  -- first take the derivative wrt to x and then put the value for t as 2Pi and not the other way around.
Thanks a lot!!!
POSTED BY: Chirag Agrawal
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract