Skip to content
Snippets Groups Projects
Commit db629479 authored by Henry's avatar Henry
Browse files

Thermodynamics: propagate incompressible and isochoric information from the...

Thermodynamics: propagate incompressible and isochoric information from the EoS through to the basicThermo API
parent 64b6ecf7
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,14 @@ public:
//- Update properties
virtual void correct() = 0;
//- Return true if the equation of state is incompressible
// i.e. rho != f(p)
virtual bool incompressible() const = 0;
//- Return true if the equation of state is isochoric
// i.e. rho = const
virtual bool isochoric() const = 0;
// Access to thermodynamic state variables
......
......@@ -115,6 +115,20 @@ public:
return *this;
}
//- Return true if the equation of state is incompressible
// i.e. rho != f(p)
virtual bool incompressible() const
{
return MixtureType::thermoType::incompressible;
}
//- Return true if the equation of state is isochoric
// i.e. rho = const
virtual bool isochoric() const
{
return MixtureType::thermoType::isochoric;
}
// Access to thermodynamic state variables
......
......@@ -140,12 +140,10 @@ public:
// Fundamental properties
//- Return true if the equation of state is incompressible
// i.e. rho != f(p)
//- Is the equation of state is incompressible i.e. rho != f(p)
static const bool incompressible = true;
//- Return true if the equation of state is isochoric
// i.e. rho = const
//- Is the equation of state is isochoric i.e. rho = const
static const bool isochoric = false;
//- Return density [kg/m^3]
......
......@@ -97,12 +97,10 @@ public:
// Fundamental properties
//- Return true if the equation of state is incompressible
// i.e. rho != f(p)
//- Is the equation of state is incompressible i.e. rho != f(p)
static const bool incompressible = true;
//- Return true if the equation of state is isochoric
// i.e. rho = const
//- Is the equation of state is isochoric i.e. rho = const
static const bool isochoric = false;
//- Return density [kg/m^3]
......
......@@ -83,12 +83,10 @@ public:
// Fundamental properties
//- Return true if the equation of state is incompressible
// i.e. rho != f(p)
//- Is the equation of state is incompressible i.e. rho != f(p)
static const bool incompressible = false;
//- Return true if the equation of state is isochoric
// i.e. rho = const
//- Is the equation of state is isochoric i.e. rho = const
static const bool isochoric = false;
//- Return density [kg/m^3]
......
......@@ -85,12 +85,10 @@ public:
// Fundamental properties
//- Return true if the equation of state is rhoConst
// i.e. rho != f(p)
//- Is the equation of state is incompressible i.e. rho != f(p)
static const bool incompressible = false;
//- Return true if the equation of state is isochoric
// i.e. rho = const
//- Is the equation of state is isochoric i.e. rho = const
static const bool isochoric = true;
//- Return density [kg/m^3]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment