|
CppNoddy
0.92
|
Solving the 1D Euler problem for gas dynamics. More...
#include <OneD_HYP_bundle.h>Go to the source code of this file.
Classes | |
| class | CppNoddy::Example::Euler_1d |
| 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 |
Enumerations | |
| enum | { rho , m , E } |
Functions | |
| double | CppNoddy::Example::gamma (1.4) |
| Adiabatic index – ratio of specific heats. More... | |
| void | CppNoddy::Example::Q_init (const double &x, DenseVector< double > &q) |
| Set the initial state of the system. More... | |
| int | main () |
Solving the 1D Euler problem for gas dynamics.
![\[ \rho_t + \left ( m \right )_x = 0 \]](form_186.png)
![\[ m_t + \left ( \rho u^2 + p \right )_x = 0 \]](form_187.png)
![\[ E_t + \left ( u ( E + p ) \right )_x = 0 \]](form_188.png)
where
![\[ u = m / \rho \]](form_189.png)
![\[ p = ( \gamma - 1 ) ( E - \frac12 \rho u^2 ) \]](form_190.png)
and 
![\[ (\rho, m, E ) = ( 1, 0, 2.5 ) \]](form_192.png)
for 
![\[ (\rho, m, E ) = ( 0.125, 0, 0.25 ) \]](form_194.png)
for 
Definition in file HYPSodsShocktube.cpp.
| anonymous enum |
| int main | ( | ) |
Definition at line 83 of file HYPSodsShocktube.cpp.
References CppNoddy::OneD_Node_Mesh< _Type, _Xtype >::get_interpolated_vars(), CppNoddy::OneD_TVDLF_Mesh::get_soln(), CppNoddy::OneD_TVDLF_Mesh::integrate(), CppNoddy::TrackerFile::push_ptr(), CppNoddy::TrackerFile::set_filename(), CppNoddy::OneD_TVDLF_Mesh::set_limiter(), CppNoddy::Utility::stringify(), CppNoddy::Utility::uniform_node_vector(), CppNoddy::TrackerFile::update(), and CppNoddy::OneD_TVDLF_Mesh::update().
1.9.5
© 2012
R.E. Hewitt