How can you solve a system of second order differential equation, which is not time, but length and radius dependent?

I thnik it cannot be solved by some prebuild ode integrator, like ode45. I tried using 'for loop', but I don't know, how to solve a second order diff.eq. with for cycle. Here is the example I try to model. (Also if you can help me out with the programing of the initial and boundary conditions I would be very glad :) )

 Respuesta aceptada

This is not an ODE but a PDE. you should have a look at pdepe

4 comentarios

Thank you for you answer!
It sure helped a lot, I can see many examples are similiar to mine.
Though I am not sure if I can solve it, I'm a chemistry engineer and need to model a dryer for my thesis. If some of you guys can make the script, even ignoring the constants, than it would be certainly appreciated.
It is important to challenge yourself and try the implementation. Modelling and implementing your model are important skills for any engineer. You can post your solution and the Matlab community may help you in getting the job done
@Jani - This would take a moderate amount of time for someone to write the code for you, far beyond what can be expected of an answer, even using a tool like pdepe. And you would surely want explanations, etc, not just bare code that would be unreadable and unusable. This is why you need to make some serious effort. You might even succeed.
If at some point, you then get stuck, then post a question, showing what you did, and explaining where and why you are stuck. Then you may get additional help. Otherwise, it is asking too much for someone to do your work for you.
You're right, thanks for the inspiring comments. I'm gonna try make it work.

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 16 de Sept. de 2021

Comentada:

el 16 de Sept. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by