Thermodynamics: propagate incompressible and isochoric information from the EoS through to the basicThermo API

This commit is contained in:
Henry 2012-09-12 09:53:43 +01:00
parent 64b6ecf7c6
commit db62947968
6 changed files with 30 additions and 16 deletions

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]