acoustic.hpp
Go to the documentation of this file.
1 
6 #ifndef ACOUSTIC_HPP
7 #define ACOUSTIC_HPP 1
8 
9 #include <string>
10 #include "../common/equation_of_state.hpp"
11 #include "../one_dimensional/spatial_distribution1d.hpp"
12 #include "sine_wave.hpp"
13 
14 using std::string;
15 
19 {
20 public:
21 
29  AcousticInitCond(double d0, double p0,
30  EquationOfState const& eos,
31  double dd, double wavelength);
32 
37  SpatialDistribution1D const& getProfile(string const& pname) const;
38 
39 private:
40 
41  double c0_;
42  SineWave density_;
43  SineWave pressure_;
44  SineWave xvelocity_;
45  Uniform yvelocity_;
46 };
47 
48 #endif // ACOUSTIC_HPP
SpatialDistribution1D const & getProfile(string const &pname) const
Returns the spatial distribution of one of the hydrodynamic variables.
Definition: acoustic.cpp:19
Uniform distribution.
Sine wave spatial distribution.
Definition: sine_wave.hpp:14
Initial conditions giving rise to acoustic waves.
Definition: acoustic.hpp:18
Base class for initial conditions.
Single mode sine wave spatial distribution.
Base class for equation of state.
AcousticInitCond(double d0, double p0, EquationOfState const &eos, double dd, double wavelength)
Class constructor.
Definition: acoustic.cpp:7