cantera/samples/cxx/bvp
Ray Speth 54efbaa320 Rewrote exception handling to be more general and more explicit
CanteraError inerits from std:exception, so now it has a what() method
that is used to print a message describing the exception. Adding an
exception to the Cantera error stack now requires explicitly calling
the .save() method.
2012-03-05 20:45:56 +00:00
..
AxiStagnBVP.cpp Reorganized source tree structure 2012-02-12 02:27:14 +00:00
AxiStagnBVP.h Rewrote exception handling to be more general and more explicit 2012-03-05 20:45:56 +00:00
blasius.cpp Rewrote exception handling to be more general and more explicit 2012-03-05 20:45:56 +00:00
BoundaryValueProblem.h Updated the C++ samples so that they compile and (mostly) run 2012-02-15 01:01:30 +00:00
README Reorganized source tree structure 2012-02-12 02:27:14 +00:00
stagnation.cpp Removed class ArrayViewer (use Array2D instead) 2012-02-27 18:14:08 +00:00

This example program solves the Blasius boundary value problem for the
velocity profile of a laminar boundary layer over a flat plate. It
uses class BoundaryValueProblem, which provides a simplified interface
to the boundary value problem capabilities of Cantera.

To build this example, type "ctnew" to generate a demo c++ program and
a makefile (demo.mak) that is correctly configured for your Cantera
installation. It it is not on your path, you can find the ctnew script
in the "bin" directory of your Cantera installation directory. 

First make sure the Cantera demo works by typing "make -f demo.mak",
then "./demo". Assuming this works, now edit demo.mak and change the
line "OBJS = demo.o" to "OBJS = blasius.o". You can optionally change
the program name too. Now when you rebuild the executable and run it,
it will solve the blasius boundary layer problem.