Is there a tutorial in MATLAB for solving a radial PDE ?
이전 댓글 표시
Hi, I have a PDE with radial coordinates that has no analytic solution. Is there a way to generate the plot of the function using numerical methods in MATLAB?
Is there a tutorial for this? I could not find anything on MATLAB for a specific PDE that is not part of the MATLAB toolbox sets.
댓글 수: 6
Torsten
2018년 3월 6일
We have to see the PDE in order to answer your question.
Sergio Manzetti
2018년 3월 6일
편집: Sergio Manzetti
2018년 3월 6일
Torsten
2018년 3월 7일
And why is this a PDE and not an ODE ?
Sergio Manzetti
2018년 3월 7일
Birdman
2018년 3월 7일
What are your initial conditions?
Torsten
2018년 3월 7일
Could you please clearly write down the transformation from
y'''+(1-x^2)*y=0
to the u-formulation ?
I must admit that I don't understand what you are talking about.
Best wishes
Torsten.
답변 (1개)
Sergio Manzetti
2018년 3월 7일
편집: Sergio Manzetti
2018년 3월 7일
댓글 수: 14
Sergio Manzetti
2018년 3월 7일
Sergio Manzetti
2018년 3월 7일
편집: Sergio Manzetti
2018년 3월 7일
Torsten
2018년 3월 7일
All of the above does not make sense at all - sorry.
Sergio Manzetti
2018년 3월 7일
편집: Sergio Manzetti
2018년 3월 7일
Torsten
2018년 3월 7일
An ODE is an ODE and won't become a PDE by a coordinate transformation.
Your ODE depends on one independent variable, namely x, and y is the solution of the ODE (the dependent variable).
In your PDE, y suddenly becomes an independent variable and you introduce a new solution u depending on x and y which has absolutely nothing to do with the former solution y.
How can you make sense of all this ?
Maybe you can give a link to a website where it is explained what you are trying to do.
Best wishes
Torsten.
Sergio Manzetti
2018년 3월 7일
편집: Sergio Manzetti
2018년 3월 7일
Torsten
2018년 3월 7일
d^2/dx^2 is the Laplace-Operator in one dimension and d^2/dr^2 + 1/r*d/dr + 1/r^2*d^2/dphi^2 is the Laplace-Operator in two dimensions (polar coordinates).
I don't know how your third-order operator is extended to several dimensions.
Best wishes
Torsten.
Sergio Manzetti
2018년 3월 7일
편집: Sergio Manzetti
2018년 3월 7일
The extension of an operator from 1d to 2d, e.g., is not a mathematical formalism, but depends on the physics of the problem you want to describe by the differential equation.
Consider your case
z'''(x)+(1-x^2)*z(x)=0.
Now what is the two-dimensional extension ?
One could choose the extension as
d^3u(x,y)/dx^3 + d^3u(x,y)/dy^3 = (1-x^2-y^2)*u(x,y),
but this is pretty arbitrary.
Why should this be better than
d^3u(x,y)/dx^3 - d^2u(x,y)/dy^2 = (1-x^2+sin(y))*u(x,y)
?
And to answer your question:
There is no ready-to-use MATLAB software or tutorials for the solution of PDEs of order > 2.
Usually, you will find numerical solution methods for standard equations (heat conduction, wave equation, ...) in the literature. MATLAB's PDE toolbox solves PDEs of order 2 of a special structure.
For an arbitrary PDE of order >2, you will have to use the method of lines and solve the resulting system of ordinary differential equations or algebraic equations using a standard solver (ODE15S, fsolve). But usually, setting appropriate boundary conditions will be a non-trivial task.
Best wishes
Torsten.
John D'Errico
2018년 3월 8일
편집: John D'Errico
2018년 3월 8일
The problem is, you are (I will argue) misusing the mathematics here.
The ODE you show describes a single path in the (x,y) plane, dependent on initial conditions. However, it is not a PDE, nor can it be used in that form.
The transformation, by a change of variables to polar form, would allow you to develop a form that is valid in polar coordinates. But it will still describe a specific path through the plane, only you are now plotting the path using polar coordinates. The conversion to polar form does not magically convert an ODE into a PDE.
The website that you linked uses mathematics that applies to a completely different problem, unrelated to what you describe here.
So while you may have a valid physical system that you are trying to model, the mathematics that you have written so far is invalid.
Sergio Manzetti
2018년 3월 8일
편집: Sergio Manzetti
2018년 3월 8일
Torsten
2018년 3월 8일
Can you write out what you mean by
(cos(phi)*d/dr + 1/r*sin(phi)*d/dphi)^3 r cos^2(phi) psi(r,phi)
?
Sergio Manzetti
2018년 3월 8일
편집: Sergio Manzetti
2018년 3월 8일
pooja sudha
2021년 5월 16일
you can use numerical methods to solve schrodinger equations like this for ex. Finite difference method.
카테고리
도움말 센터 및 File Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


