Public Member Functions | List of all members
interpolations1d::EOSConsistent Class Reference

A class that guarantees that a spatial reconstruction would satisfy the equation of state. More...

#include <eos_consistent1d.hpp>

Inheritance diagram for interpolations1d::EOSConsistent:
Inheritance graph
[legend]
Collaboration diagram for interpolations1d::EOSConsistent:
Collaboration graph
[legend]

Public Member Functions

 EOSConsistent (SpatialReconstruction1D const &naive, EquationOfState const &eos)
 Class constructor. More...
 
Primitive operator() (vector< double > const &vp, vector< Primitive > const &hv, double interface_speed, size_t i, int dir, double dt) const
 Returns the hydrodynamic state on the left or the right side of the interface position (=vertexes). More...
 

Detailed Description

A class that guarantees that a spatial reconstruction would satisfy the equation of state.

Definition at line 18 of file eos_consistent1d.hpp.

Constructor & Destructor Documentation

◆ EOSConsistent()

EOSConsistent::EOSConsistent ( SpatialReconstruction1D const &  naive,
EquationOfState const &  eos 
)

Class constructor.

Parameters
naiveBase interpolation
eosEquation of state

Definition at line 7 of file eos_consistent1d.cpp.

Member Function Documentation

◆ operator()()

Primitive EOSConsistent::operator() ( vector< double > const &  vp,
vector< Primitive > const &  hv,
double  interface_speed,
size_t  i,
int  dir,
double  dt 
) const
virtual

Returns the hydrodynamic state on the left or the right side of the interface position (=vertexes).

Parameters
vpPointer to vertex positions
hvPointer to hydrodynamic variables
iVertex index
interface_speedSpeed of the interface between cells
dirDirection (0 for left of the boundary, 1 for right ofthe boundary) *** ( positive direction is from the left to the right).
dtTime step
Returns
Hydrodynamic variables on the left or right side of the interface

Implements SpatialReconstruction1D.

Definition at line 12 of file eos_consistent1d.cpp.


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