How can I solve a system of ODEs with boundary conditions

25 vues (au cours des 30 derniers jours)
Simone Paganelli
Simone Paganelli le 14 Juil 2019
Modifié(e) : Elia Paini le 28 Avr 2021
Hi, I am trying to solve a system of boundary value problem. I have problems in writing the code and running the program.
Briefly, I have 3 equations to solve:
Where k(C) is a known function depends on C.
with the following BCs:
I converted them to first order system in order to put it in matlab.
Where, I let
so the resulting system is:
with BCs:
Thank you in advance!

Réponse acceptée

Stephan
Stephan le 14 Juil 2019
  6 commentaires
Simone Paganelli
Simone Paganelli le 15 Juil 2019
Thank you so much!
Elia Paini
Elia Paini le 28 Avr 2021
Modifié(e) : Elia Paini le 28 Avr 2021
@Simone Paganelli Why did you put in solinit, as second vector, [0,0,0,1,1,1]?
I'm solving a similar system in spherical coordinates, but I don't know how the second vector must be inserted.
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by