SPH
Public Member Functions | List of all members
IdealGasEos Class Reference

Equation of state for ideal gas. More...

#include <Eos.h>

Inheritance diagram for IdealGasEos:
IEos Polymorphic

Public Member Functions

 IdealGasEos (const Float gamma)
 
virtual Pair< Floatevaluate (const Float rho, const Float u) const override
 Computes pressure and local sound speed from given density rho and specific internal energy u. More...
 
virtual Float getInternalEnergy (const Float rho, const Float p) const override
 Inverted function; computes specific internal energy u from given density rho and pressure p. More...
 
virtual Float getDensity (const Float p, const Float u) const override
 Inverted function; computes density from pressure p and internal energy u. More...
 
Float getTemperature (const Float u) const
 
Float getSpecificEntropy (const Float rho, const Float p) const
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Equation of state for ideal gas.

Definition at line 30 of file Eos.h.

Constructor & Destructor Documentation

◆ IdealGasEos()

NAMESPACE_SPH_BEGIN IdealGasEos::IdealGasEos ( const Float  gamma)
explicit

Definition at line 12 of file Eos.cpp.

Member Function Documentation

◆ evaluate()

Pair< Float > IdealGasEos::evaluate ( const Float  rho,
const Float  u 
) const
overridevirtual

Computes pressure and local sound speed from given density rho and specific internal energy u.

Implements IEos.

Definition at line 15 of file Eos.cpp.

◆ getDensity()

Float IdealGasEos::getDensity ( const Float  p,
const Float  u 
) const
overridevirtual

Inverted function; computes density from pressure p and internal energy u.

Implements IEos.

Definition at line 24 of file Eos.cpp.

◆ getInternalEnergy()

Float IdealGasEos::getInternalEnergy ( const Float  rho,
const Float  p 
) const
overridevirtual

Inverted function; computes specific internal energy u from given density rho and pressure p.

Implements IEos.

Definition at line 20 of file Eos.cpp.

◆ getSpecificEntropy()

Float IdealGasEos::getSpecificEntropy ( const Float  rho,
const Float  p 
) const

Definition at line 32 of file Eos.cpp.

◆ getTemperature()

Float IdealGasEos::getTemperature ( const Float  u) const

Definition at line 28 of file Eos.cpp.


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