Numerical Solution to second order coupled system of boundary value equations
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have two second order coupled boundary value problems, and I could not find a method to solve them numerically
(d^2(s)/dx^2) = B(s-f);
(d^2(f)/dx^2) = (K(x)-B(s-f))/A;
Boundary Conditions:
s(0) = 0;
f(0) = 0;
at x=1; ds/dx = 0;
at x=1; df/dx = 0;
A and B are constants, and K(x) is known. I would like to find s(x), and f(x)
What is the most appropriate method and how can i solve the equations? Can you help on this?
2 comentarios
Sam Chak
el 4 de Abr. de 2022
Since A, B, , and two of the initial values and are known, you can possibly use the SHOOTING METHOD with ode45 to solve the ODEs by considering the boundary conditions as a multivariate function of initial conditions at some point, reducing the boundary value problem to finding the initial values that satisfy .
Respuestas (1)
Torsten
el 4 de Abr. de 2022
Use MATLAB's bvp4c.
2 comentarios
Torsten
el 4 de Abr. de 2022
Transfer the array K to the function where you define your ODEs.
Then, for a given value of x from bvp4c, you can use interp1 to interpolate the corresponding value of K(x) and insert this value into your function.
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!