Borrar filtros
Borrar filtros

please, I need help! I don't find the solution to my ODE using bvp4c solver.

1 visualización (últimos 30 días)
Nadjah
Nadjah el 15 de En. de 2015
Comentada: Torsten el 19 de En. de 2015
Hello,
  • I have already asked my question, and remarks pushed me to revise my program, but I still get errors.
  • I have a fourth order ODE/BVP. It describes the stream function in the flow of turbulent gas above a liquid fluid film flowing over an inclined plane.
  • I use the bvp4c solver to solve this EDO/BVP. This is the solver that used the author of the article on which I work.
  • Two errors are displayed compiling program.
  • I attach the program that I do. Could you please help me understand and solve the problem? I will be very grateful.
  4 comentarios
Torsten
Torsten el 16 de En. de 2015
In the program documentation, you write that alpha is an unknown parameter.
Is this true ?
Best wishes
Torsten.

Iniciar sesión para comentar.

Respuestas (1)

Torsten
Torsten el 19 de En. de 2015
a) If alpha is to be determined by bvp4c, then
1. Change the call to bvp4c from
sol = bvp4c(@odes,@bcs,solinit,alpha);
to
sol = bvp4c(@odes,@bcs,solinit);
2. You will Need to supply a forth boundary condition in function "odes".
Take a look at the example
Compute Fourth Eigenvalue of Mathieu's Equation
under
b) The x-array in your function "odes" is supplied by bvp4c. So you can't redefine it as
x=0:0.001:200;
Calculate derivatives of your function psi1 before calling bvp4c on your preferred x-grid and use interp1 to interpolate the derivatives at the points required by bvp4c in "odes".
Best wishes
Torsten.
  1 comentario
Torsten
Torsten el 19 de En. de 2015
Should read
2. You will need to supply a fifth boundary condition in function "odes".
Best wishes
Torsten.

Iniciar sesión para comentar.

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by