4.5

4.5 | 34 ratings Rate this file 275 downloads (last 30 days) File Size: 197.25 KB File ID: #3819

Tutorial on solving BVPs with BVP4C

by Jacek Kierzenka

 

06 Aug 2003 (Updated 21 Jul 2004)

Code covered by BSD License  

Solving boundary value problems with BVP4C. Tutorial + Examples.

Download Now | Watch this File

File Information
Description

This tutorial shows how to formulate, solve, and plot the solutions of boundary value problems (BVPs) for ordinary differential equations.

The tutorial introduces the function BVP4C (available in MATLAB 6.0 and later), briefly describes the numerical method used, and illustrates solving BVPs with several examples and exercises.

The M-files for all the examples and exercises in the tutorial are available in the directory BVP_examples.

The directory BVP_examples_65 contains the files for the examples and exercises, updated to take advantage of features available in MATLAB 6.5 (R13).
Correspondingly, BVP_examples_70 contains files modified for use with MATLAB 7.0 (R14).

More information about solving BVPs in MATLAB, can be found in the paper

  Jacek Kierzenka, Lawrence F. Shampine,
  A BVP Solver based on Residual Control and the MATLAB PSE,
  ACM TOMS, Vol. 27 (2001), No. 3, pp. 299-316.

or in the book

  L.F. Shampine, I. Gladwell, and S. Thompson,
  Solving ODEs with MATLAB, Cambridge University Press, 2003.

Acknowledgements
This submission has inspired the following:
bvp6c
MATLAB release MATLAB 6.0 (R12)
Zip File Content  
Other Files
BVP_tutorial/BVP_examples/bratubvp.m,
BVP_tutorial/BVP_examples/ex1bvp.m,
BVP_tutorial/BVP_examples/ex2bvp.m,
BVP_tutorial/BVP_examples/ex3bvp.m,
BVP_tutorial/BVP_examples/ex4bvp.m,
BVP_tutorial/BVP_examples/ex5bvp.m,
BVP_tutorial/BVP_examples/ex6bvp.m,
BVP_tutorial/BVP_examples/ex7bvp.m,
BVP_tutorial/BVP_examples/ex8bvp.m,
BVP_tutorial/BVP_examples/ex9bvp.m,
BVP_tutorial/BVP_examples/gasbvp.m,
BVP_tutorial/BVP_examples/mmbvp.m,
BVP_tutorial/BVP_examples/trbvp.m,
BVP_tutorial/BVP_examples_65/bratubvp.m,
BVP_tutorial/BVP_examples_65/ex1bvp.m,
BVP_tutorial/BVP_examples_65/ex2bvp.m,
BVP_tutorial/BVP_examples_65/ex3bvp.m,
BVP_tutorial/BVP_examples_65/ex4bvp.m,
BVP_tutorial/BVP_examples_65/ex5bvp.m,
BVP_tutorial/BVP_examples_65/ex6bvp.m,
BVP_tutorial/BVP_examples_65/ex7bvp.m,
BVP_tutorial/BVP_examples_65/ex8bvp.m,
BVP_tutorial/BVP_examples_65/ex9bvp.m,
BVP_tutorial/BVP_examples_65/gasbvp.m,
BVP_tutorial/BVP_examples_65/mmbvp.m,
BVP_tutorial/BVP_examples_65/readme.txt,
BVP_tutorial/BVP_examples_65/trbvp.m,
BVP_tutorial/BVP_tutorial.pdf,
BVP_tutorial/BVP_examples_70/bratubvp.m,
BVP_tutorial/BVP_examples_70/ex1bvp.m,
BVP_tutorial/BVP_examples_70/ex2bvp.m,
BVP_tutorial/BVP_examples_70/ex3bvp.m,
BVP_tutorial/BVP_examples_70/ex4bvp.m,
BVP_tutorial/BVP_examples_70/ex5bvp.m,
BVP_tutorial/BVP_examples_70/ex6bvp.m,
BVP_tutorial/BVP_examples_70/ex7bvp.m,
BVP_tutorial/BVP_examples_70/ex8bvp.m,
BVP_tutorial/BVP_examples_70/ex9bvp.m,
BVP_tutorial/BVP_examples_70/gasbvp.m,
BVP_tutorial/BVP_examples_70/mmbvp.m,
BVP_tutorial/BVP_examples_70/trbvp.m,
BVP_tutorial/BVP_examples_70/ex9mbvp.m,
BVP_tutorial/BVP_examples_70/readme.txt,
BVP_tutorial/intro.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (38)
27 Feb 2004 chi ho

much helpful to begineers

31 May 2004 khaled khalaf  
29 Nov 2004 Spyridon Gerontas  
14 Dec 2004 kalbin salim  
17 Dec 2004 raavi kumar

 i ned matlab r14, because i will do the project with the the help of this software

04 Mar 2005 Mao Wei

good

30 Apr 2005 w a  
18 May 2005 Volkan Çark

perfect to learn.

08 Sep 2005 David Brooks

Summarize everything you need to know

01 Oct 2005 dhilip kumar ramalingam  
19 Oct 2005 Matjaz Licer

Helped me a whole lot!! - from zero knowledge of Matlab to calculation of the polyelectrolyte density distributions in colloid crystals (involving nonlinear coupled systems of BVP's) in 3 weeks! Without bvp4c and this tutorial, i'd be torturing Fortran, c++ and myself as we speak.

15 Nov 2005 kong dong

Mr.Kierzenka,thanks a lot.The tutorial is very useful.

23 Feb 2006 Leo Trav  
17 Mar 2006 BIKASH SAHOO

I am working on CFD(non-Newtonian). The tutorial by Dr.Jacek helped me a lot to improve my skills.

16 May 2006 lisa jam  
23 Oct 2006 Troy Eastin  
31 Oct 2006 Leonardo Molisani  
30 Jan 2007 abdullah al-khudhiri  
15 Feb 2007 Francesco Sarnari  
03 Mar 2007 Nikolaos Tubanos  
25 Mar 2007 mohammed kalil

F.L. Lewis , Optimal Estimation , NY John Wiley & Sons, 1986

02 Apr 2007 Vince Aderangi

It is a very good resource. However, the m files of examples could have more comments. For example, in example 1 it does not explain what is used as initial guess.

21 Apr 2007 Sunil Arya

Its a very good tool fou boundary value problem. One can learn a lot of from this m.code.

10 May 2007 Daniel Magohe

I hope people with basic knowledge of pure mathematics will find it quite useful.

11 Jun 2007 John D'Onofrio  
14 Jul 2007 Mircea-Jean Cristea  
30 Jul 2007 wahid ghanem  
17 Aug 2007 Valery Naunyka

You strongly help me to solve my numerical problem

20 Aug 2007 prakriti trivedi  
16 Nov 2007 Fabricio Nápoles  
21 Jan 2008 bhbh ffff

Poor
Needs Improvement

06 Mar 2008 judith p  
19 Mar 2008 harvinder kaur  
22 May 2008 chaudhari urmila

Excellent

19 Jun 2008 Muhammad Noaman ul Haq

Excsellent

28 Jul 2008 sharareh Bayat

Hello, I want to solve 24 diffrential equations in matlab using BVP4C but it says singular jacobian . could you please help me

05 Sep 2008 MASIALA MAVUNGU

with ode45 solving initial value problems I have no problem,but to use bvp4c I have some problem,most of time I receive the message,
??? Error using ==> bvp4c
Unable to solve the collocation equations --
a singular Jacobian encountered.I try to change initial guess but I'm reiceving the same message.bvp4c need to be improved in order to help user strigling to solve two-point boundary value problems.

15 Oct 2008 Dr. Rajeev Shrivastava  
Please login to add a comment or rating.
Updates
21 Jul 2004

Updated to MATLAB 7.0 (R14)

Tag Activity for this File
Tag Applied By Date/Time
differential equations Jacek Kierzenka 22 Oct 2008 07:05:58
boundary value problems Jacek Kierzenka 22 Oct 2008 07:05:58
ordinary differential equations Jacek Kierzenka 22 Oct 2008 07:05:58
bvp Jacek Kierzenka 22 Oct 2008 07:05:58
ode Jacek Kierzenka 22 Oct 2008 07:05:58
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com