|
CppNoddy
0.92
|
Solve the constant coefficient linear sound wave problem. More...
#include <OneD_HYP_bundle.h>Go to the source code of this file.
Classes | |
| class | CppNoddy::Example::Acoustic_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 | { p , u } |
Functions | |
| double | CppNoddy::Example::K (4.0) |
| bulk modulus More... | |
| double | CppNoddy::Example::rho_big (4.0) |
| higher density More... | |
| double | CppNoddy::Example::rho_small (1.0) |
| lower density More... | |
| double | CppNoddy::Example::rho (const double &x) |
| Density function for the medium. More... | |
| void | CppNoddy::Example::Q_init (const double &x, DenseVector< double > &q) |
| Set the initial state of the system. More... | |
| int | main () |
Solve the constant coefficient linear sound wave problem.
![\[ p_t + K u_x = 0 \]](form_169.png)
![\[ \rho u_t + p_x = 0 \]](form_170.png)
for a right-propagating square pressure pulse in a medium with constant bulk modulus 



![\[ - \left ( \frac{\frac{K_1}{K_2}-\frac{c_1}{c_2}}{\frac{K_1}{K_2}+\frac{c_1}{c_2}} \right ) \]](form_175.png)
where 


Definition in file HYPAcousticImpedance.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| p | |
| u | |
Definition at line 17 of file HYPAcousticImpedance.cpp.
| int main | ( | ) |
Definition at line 91 of file HYPAcousticImpedance.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