Public Member Functions | List of all members
SoundSpeedDist Class Reference

Spatial distribution of the speed of sound. More...

#include <simple_waves_ideal_gas.hpp>

Inheritance diagram for SoundSpeedDist:
Inheritance graph
[legend]
Collaboration diagram for SoundSpeedDist:
Collaboration graph
[legend]

Public Member Functions

 SoundSpeedDist (SpatialDistribution1D const &pressure, SpatialDistribution1D const &density, EquationOfState const &eos)
 Class constructor. More...
 
double operator() (double x) const
 Calculates initial conditions. More...
 
- Public Member Functions inherited from SpatialDistribution1D
virtual ~SpatialDistribution1D (void)
 Abstract class for initial conditions. More...
 

Detailed Description

Spatial distribution of the speed of sound.

Definition at line 50 of file simple_waves_ideal_gas.hpp.

Constructor & Destructor Documentation

◆ SoundSpeedDist()

SoundSpeedDist::SoundSpeedDist ( SpatialDistribution1D const &  pressure,
SpatialDistribution1D const &  density,
EquationOfState const &  eos 
)

Class constructor.

Parameters
pressurePressure Distribution
densityDensity distribution
eosEquation of state

Definition at line 20 of file simple_waves_ideal_gas.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ operator()()

double SoundSpeedDist::operator() ( double  x) const
virtual

Calculates initial conditions.

Parameters
xPosition
Returns
Value of the function at x

Implements SpatialDistribution1D.

Definition at line 25 of file simple_waves_ideal_gas.cpp.


The documentation for this class was generated from the following files: