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

Tait equation of state. More...

#include <Eos.h>

Inheritance diagram for TaitEos:
IEos Polymorphic

Public Member Functions

 TaitEos (const BodySettings &settings)
 
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 UNUSED(rho), const Float UNUSED(p)) const override
 
virtual Float getDensity (const Float UNUSED(p), const Float UNUSED(u)) const override
 
- Public Member Functions inherited from IEos
virtual Float getInternalEnergy (const Float rho, const Float p) const =0
 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 =0
 Inverted function; computes density from pressure p and internal energy u. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Tait equation of state.

Equation describing behavior of water and other fluids. Depends only on density, does not require energy equation to be used.

Definition at line 52 of file Eos.h.

Constructor & Destructor Documentation

◆ TaitEos()

TaitEos::TaitEos ( const BodySettings settings)
explicit

Definition at line 40 of file Eos.cpp.

Member Function Documentation

◆ evaluate()

Pair< Float > TaitEos::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 46 of file Eos.cpp.

◆ getDensity()

virtual Float TaitEos::getDensity ( const Float   UNUSEDp,
const Float   UNUSED
) const
inlineoverridevirtual

Definition at line 67 of file Eos.h.

◆ getInternalEnergy()

virtual Float TaitEos::getInternalEnergy ( const Float   UNUSEDrho,
const Float   UNUSED
) const
inlineoverridevirtual

Definition at line 63 of file Eos.h.


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