thermophysicalModels: Removed the unnecessary pressure argument to patch and cellSet property evaluation functions

The pressure provided to the patch and cellSet property evaluation functions is
always that stored by the thermodynamics package as is the composition which is
provided internally; given that these functions are used in boundary conditions
to estimate changes in heat flux corresponding to changes in temperature only
there is no need for another pressure to be provided.  In order that the
pressure and composition treatment are consistent and to maintain that during
future rationalisation of the handling of composition it makes sense to remove
this unnecessary pressure argument.
This commit is contained in:
Henry Weller
2019-10-25 16:33:47 +01:00
parent 2d82f63812
commit d97db565c4
37 changed files with 404 additions and 291 deletions

View File

@ -172,8 +172,6 @@ Foam::basicThermo::basicThermo
phaseName_(phaseName),
p_(lookupOrConstruct(mesh, "p")),
T_
(
IOobject
@ -227,8 +225,6 @@ Foam::basicThermo::basicThermo
phaseName_(phaseName),
p_(lookupOrConstruct(mesh, "p")),
T_
(
IOobject
@ -470,18 +466,6 @@ Foam::wordList Foam::basicThermo::splitThermoName
}
Foam::volScalarField& Foam::basicThermo::p()
{
return p_;
}
const Foam::volScalarField& Foam::basicThermo::p() const
{
return p_;
}
const Foam::volScalarField& Foam::basicThermo::T() const
{
return T_;