Public Member Functions | List of all members
ConstRiemannInv Class Reference

Velocity distribution where the Riemann invariant is constant throughout. More...

#include <simple_waves_ideal_gas.hpp>

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

Public Member Functions

 ConstRiemannInv (double rv, bool dir, SpatialDistribution1D const &sound_speed, double g)
 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

Velocity distribution where the Riemann invariant is constant throughout.

Definition at line 83 of file simple_waves_ideal_gas.hpp.

Constructor & Destructor Documentation

◆ ConstRiemannInv()

ConstRiemannInv::ConstRiemannInv ( double  rv,
bool  dir,
SpatialDistribution1D const &  sound_speed,
double  g 
)

Class constructor.

Parameters
rvValue of the riemann invariant
dirDirection
sound_speedSound speed distribution
gAdiabatic index

Definition at line 39 of file simple_waves_ideal_gas.cpp.

Member Function Documentation

◆ operator()()

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

Calculates initial conditions.

Parameters
xPosition
Returns
Value of the function at x

Implements SpatialDistribution1D.

Definition at line 44 of file simple_waves_ideal_gas.cpp.

Here is the call graph for this function:

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