|
CppNoddy
0.92
|
Solving the 1D ‘nonlinear advection equation’. More...
#include <TwoD_HYP_bundle.h>Go to the source code of this file.
Classes | |
| class | CppNoddy::Example::NlinAdv |
| Define the system. More... | |
Namespaces | |
| namespace | CppNoddy |
| A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechanics. | |
| namespace | CppNoddy::Example |
Functions | |
| void | CppNoddy::Example::Q_init (const double &x, const double &y, DenseVector< double > &q) |
| Set the initial state of the system. More... | |
| int | main () |
Solving the 1D ‘nonlinear advection equation’.
![\[ Q_t + \left ( \frac{Q^2}{2} \right )_x = 0 \quad \mbox{where} \quad Q=Q(x,y,t) \]](form_198.png)
using a TVD Lax-Friedrichs scheme for ![$ (x,y)\in[-1,1]\times[-1,1]$](form_197.png)
Definition in file HYP2DNonlinearAdvectionX.cpp.
| int main | ( | ) |
Definition at line 76 of file HYP2DNonlinearAdvectionX.cpp.
References CppNoddy::TwoD_TVDLF_Mesh::get_point_values(), CppNoddy::TwoD_TVDLF_Mesh::get_time(), CppNoddy::TwoD_TVDLF_Mesh::set_limiter(), CppNoddy::Utility::uniform_node_vector(), and CppNoddy::TwoD_TVDLF_Mesh::update().
1.9.5
© 2012
R.E. Hewitt