Solve a complex differential equations system
Mostrar comentarios más antiguos
I need to write a script that can solve the system of differential equation written in this article.
Thank you to everyone who will try to help me:)
1 comentario
Torsten
el 10 de Abr. de 2024
And what is your specific question ?
Respuestas (1)
Torsten
el 10 de Abr. de 2024
0 votos
The main problem with your equations is that they involve a term that has to be evaluated at a boundary point. Otherwise, you could have tried to use "pdepe". You could also look into "pde1m" under
I'm not sure if you have access to the values in all grid points with this code.
If it cannot solve your equations, you will have to discretize the spatial derivatives, include the boundary conditions and use "ode15s" to solve the resulting system of ordinary differential equations. Look up "method of lines" for more details.
7 comentarios
Diego Rampi
el 27 de Sept. de 2024
Editada: Torsten
el 27 de Sept. de 2024
Diego Rampi
el 27 de Sept. de 2024
Movida: Sam Chak
el 27 de Sept. de 2024
Diego Rampi
el 27 de Sept. de 2024
Movida: Sam Chak
el 27 de Sept. de 2024
Diego Rampi
el 27 de Sept. de 2024
Editada: Torsten
el 27 de Sept. de 2024
As you can see, "pdepe" has problems when coefficients in your PDE system change discontinuously. So integrate up to 86400 (24*3600), change parameters and restart with the last solution. Do the same if there are similar time instances following.
But I'm not sure it makes sense starting with "pdepe" since your equations don't permit a solution with this solver. I'd suggest using "pde1dm" right from the beginning. Or the code in which you use ode15s and the method of lines.
Diego Rampi
el 30 de Sept. de 2024
Diego Rampi
el 30 de Sept. de 2024
Editada: Diego Rampi
el 1 de Oct. de 2024
Categorías
Más información sobre Polar Plots 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!



