pde1dm with coupled ODEs
Mostrar comentarios más antiguos
According to the pde1dm manual, pde1dm with coupled ODEs has to do with three additional arguments to the pde1dm function:
[solution,odeSolution] = pde1dm(m,pdeFunc,icFunc,bcFunc,meshPts,timePts,... odeFunc, odeIcFunc,xOde)
However, I just:
pde1dm(m,pdeFunc,icFunc,bcFunc,meshPts,timePts)
as though I were using pdepe and I still got the correct result. Why? So when should one add the three additional arguments to pde1dm?
6 comentarios
Why don't you ask all your questions about pde1dm in one request, preferably in this one:
feynman feynman
el 5 de Feb. de 2024
feynman feynman
el 6 de Feb. de 2024
Torsten
el 6 de Feb. de 2024
Bill Greene is the only one who can answer your questions; pde1dm is not a code from TMW.
Bill Greene
el 6 de Feb. de 2024
If you run into problems using pde1dm, I am willing to take a look. But there is no way I can respond based on the scant information you have provided in this post.
In general what I expect is the following:
- A complete mathematical description of the problem you are trying to solve including the equations (in math format) and the result you expect to obtain.
- A complete listing of your source code, simplified as much as possible, and formatted as a code block so I can easily download and run it.
feynman feynman
el 7 de Feb. de 2024
Respuestas (1)
Bill Greene
el 7 de Feb. de 2024
0 votos
Your second equation is an elliptic PDE NOT an ODE because both unknown variables are functions of both x and t.. Accordingly, pdepe(and pde1dm) are able to solve this system.
If you are confused about this issue, you should look more carefully at the definition of an ODE shown as equation 2 in the pde1dm user manual. I looked again at the explanation there and don't have anything to add to that at this point.
4 comentarios
feynman feynman
el 7 de Feb. de 2024
feynman feynman
el 8 de Feb. de 2024
As far as I know, additional ODEs are of the form
d(uode)/dt = f(uode,upde,x,t)
thus the equation for uode is described by an ordinary differential equation in time without dependence on uode_x or upde_x.
feynman feynman
el 8 de Feb. de 2024
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!