|
CppNoddy
0.92
|
Solving the nonlinear advection diffusion equation. More...
#include <IBVP_bundle.h>Go to the source code of this file.
Classes | |
| class | CppNoddy::Example::Nlin_adv_equation |
| class | CppNoddy::Example::Nlin_adv_left_BC |
| class | CppNoddy::Example::Nlin_adv_right_BC |
Namespaces | |
| namespace | CppNoddy |
| A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechanics. | |
| namespace | CppNoddy::Example |
Enumerations | |
| enum | { U , Ud } |
Functions | |
| const double | CppNoddy::Example::eps (2.0) |
| double | CppNoddy::Example::source (const double &y, const double &t) |
| int | main () |
Solving the nonlinear advection diffusion equation.
![\[ U_{yy} - Re U U_t = S( y, t ) \]](form_222.png)
subject to 


![\[ S(y,t) = ( 1 + y + \epsilon y(1-y)e^{-t} ) \epsilon y(1-y ) e^{-t} - 2\epsilon e^{-t} / Re \]](form_226.png)
for some constant parameters 

![\[ U(y,t) = 1 + y + \epsilon y(1-y) e^{-t} \]](form_228.png)
against which the numerical computation is compared, by computing the maximum absolute deviation over all spatial and temporal nodes.
Definition in file IBVPNonlinearAdvDiffusion.cpp.
| anonymous enum |
| int main | ( | ) |
Definition at line 107 of file IBVPNonlinearAdvDiffusion.cpp.
References CppNoddy::PDE_IBVP< _Type >::coord(), CppNoddy::TrackerFile::header(), CppNoddy::TrackerFile::newline(), CppNoddy::TrackerFile::push_ptr(), CppNoddy::PDE_IBVP< _Type >::solution(), CppNoddy::PDE_IBVP< _Type >::step2(), U, Ud, CppNoddy::Utility::uniform_node_vector(), and CppNoddy::TrackerFile::update().
1.9.5
© 2012
R.E. Hewitt