|
CppNoddy
0.92
|
Solving the 1D ‘nonlinear advection equation’. More...
#include <OneD_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, 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,t) \]](form_180.png)
using a TVD Lax-Friedrichs scheme for ![$ x\in[0,1]$](form_181.png)
![\[ Q(x,0) = \sin( 2\pi x ) \]](form_182.png)
The test is simply conservation of 
Definition in file HYPNonlinearAdvection.cpp.
| int main | ( | ) |
Definition at line 72 of file HYPNonlinearAdvection.cpp.
References CppNoddy::OneD_Node_Mesh< _Type, _Xtype >::get_interpolated_vars(), CppNoddy::OneD_TVDLF_Mesh::get_soln(), CppNoddy::OneD_TVDLF_Mesh::integrate(), CppNoddy::TrackerFile::newline(), CppNoddy::TrackerFile::push_ptr(), CppNoddy::OneD_TVDLF_Mesh::set_limiter(), CppNoddy::Utility::uniform_node_vector(), CppNoddy::TrackerFile::update(), and CppNoddy::OneD_TVDLF_Mesh::update().
1.9.5
© 2012
R.E. Hewitt