Applying Boundary Condition to ODE45

9 次查看(过去 30 天)
Hi all,
I have a set of coupled differential equations which are readily arranged to be solved on ode45 in a domain [0 L]. However, all the boundary conditions of the differential equations are given at x=L instead of x=0. I cannot enforce these BCs to my problem using MATLAB. How can i accomplish that ? (I would like to solve set of ODEs using 4th order Runge Katta Method)
Kind Regards

采纳的回答

Stephan
Stephan 2019-4-21
编辑:Stephan 2019-4-21
Hi,
you can reverse tspan. If you for example use:
tspan = [20 0]
then the integration will be backwards and your condition is an initial condition.
Best regards
Stephan

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by