Thermodynamics: propagate incompressible and isochoric information from the EoS through to the basicThermo API
This commit is contained in:
parent
64b6ecf7c6
commit
db62947968
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user