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_;

View File

@ -65,15 +65,13 @@ protected:
// Fields
//- Pressure [Pa]
volScalarField& p_;
//- Temperature [K]
volScalarField T_;
//- Laminar thermal diffusivity [kg/m/s]
volScalarField alpha_;
//- Should the dpdt term be included in the enthalpy equation
Switch dpdt_;
@ -271,13 +269,6 @@ public:
// Access to thermodynamic state variables
//- Pressure [Pa]
// Non-const access allowed for transport equations
virtual volScalarField& p();
//- Pressure [Pa]
virtual const volScalarField& p() const;
//- Density [kg/m^3]
virtual tmp<volScalarField> rho() const = 0;
@ -302,7 +293,6 @@ public:
//- Enthalpy/Internal energy for cell-set [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const = 0;
@ -310,7 +300,6 @@ public:
//- Enthalpy/Internal energy for patch [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
@ -329,7 +318,6 @@ public:
//- Absolute enthalpy for cell-set [J/kg]
virtual tmp<scalarField> ha
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const = 0;
@ -337,7 +325,6 @@ public:
//- Absolute enthalpy for patch [J/kg]
virtual tmp<scalarField> ha
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
@ -349,7 +336,6 @@ public:
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const labelList& cells
) const = 0;
@ -358,7 +344,6 @@ public:
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const label patchi
) const = 0;
@ -379,7 +364,6 @@ public:
//- Heat capacity at constant pressure for patch [J/kg/K]
virtual tmp<scalarField> Cp
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
@ -390,18 +374,6 @@ public:
//- Heat capacity at constant volume for patch [J/kg/K]
virtual tmp<scalarField> Cv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Gamma = Cp/Cv []
virtual tmp<volScalarField> gamma() const = 0;
//- Gamma = Cp/Cv for patch []
virtual tmp<scalarField> gamma
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
@ -412,7 +384,6 @@ public:
//- Heat capacity at constant pressure/volume for patch [J/kg/K]
virtual tmp<scalarField> Cpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
@ -423,17 +394,10 @@ public:
//- Heat capacity ratio for patch []
virtual tmp<scalarField> CpByCpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Molecular weight [kg/kmol]
virtual tmp<volScalarField> W() const = 0;
//- Molecular weight for patch [kg/kmol]
virtual tmp<scalarField> W(const label patchi) const = 0;
// Access to transport state variables
@ -465,35 +429,6 @@ public:
//- Thermal diffusivity for energy of mixture for patch [kg/m/s]
virtual tmp<scalarField> alphahe(const label patchi) const = 0;
//- Effective thermal turbulent diffusivity for temperature
// of mixture [W/m/K]
virtual tmp<volScalarField> kappaEff
(
const volScalarField&
) const = 0;
//- Effective thermal turbulent diffusivity for temperature
// of mixture for patch [W/m/K]
virtual tmp<scalarField> kappaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Effective thermal turbulent diffusivity of mixture [kg/m/s]
virtual tmp<volScalarField> alphaEff
(
const volScalarField& alphat
) const = 0;
//- Effective thermal turbulent diffusivity of mixture
// for patch [kg/m/s]
virtual tmp<scalarField> alphaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Read thermophysical properties dictionary
virtual bool read();

View File

@ -108,7 +108,6 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
const basicThermo& thermo = basicThermo::lookupThermo(*this);
label patchID = patch().index();
const scalarField& pp = thermo.p().boundaryField()[patchID];
const fixedJumpFvPatchScalarField& TbPatch =
refCast<const fixedJumpFvPatchScalarField>
(
@ -123,7 +122,7 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
const labelUList& faceCells = this->patch().faceCells();
jump_ = thermo.he(pp, Tbp.jump(), faceCells);
jump_ = thermo.he(Tbp.jump(), faceCells);
}
fixedJumpFvPatchField<scalar>::updateCoeffs();

View File

@ -108,7 +108,6 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs()
const basicThermo& thermo = basicThermo::lookupThermo(*this);
label patchID = patch().index();
const scalarField& pp = thermo.p().boundaryField()[patchID];
const fixedJumpAMIFvPatchScalarField& TbPatch =
refCast<const fixedJumpAMIFvPatchScalarField>
(
@ -123,7 +122,7 @@ void Foam::energyJumpAMIFvPatchScalarField::updateCoeffs()
const labelUList& faceCells = this->patch().faceCells();
jump_ = thermo.he(pp, Tbp.jump(), faceCells);
jump_ = thermo.he(Tbp.jump(), faceCells);
}
fixedJumpAMIFvPatchField<scalar>::updateCoeffs();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -100,11 +100,10 @@ void Foam::fixedEnergyFvPatchScalarField::updateCoeffs()
const basicThermo& thermo = basicThermo::lookupThermo(*this);
const label patchi = patch().index();
const scalarField& pw = thermo.p().boundaryField()[patchi];
fvPatchScalarField& Tw =
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
Tw.evaluate();
operator==(thermo.he(pw, Tw, patchi));
operator==(thermo.he(Tw, patchi));
fixedValueFvPatchScalarField::updateCoeffs();
}

View File

@ -100,17 +100,16 @@ void Foam::gradientEnergyFvPatchScalarField::updateCoeffs()
const basicThermo& thermo = basicThermo::lookupThermo(*this);
const label patchi = patch().index();
const scalarField& pw = thermo.p().boundaryField()[patchi];
fvPatchScalarField& Tw =
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
Tw.evaluate();
gradient() = thermo.Cpv(pw, Tw, patchi)*Tw.snGrad()
gradient() = thermo.Cpv(Tw, patchi)*Tw.snGrad()
+ patch().deltaCoeffs()*
(
thermo.he(pw, Tw, patchi)
- thermo.he(pw, Tw, patch().faceCells())
thermo.he(Tw, patchi)
- thermo.he(Tw, patch().faceCells())
);
fixedGradientFvPatchScalarField::updateCoeffs();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -105,7 +105,6 @@ void Foam::mixedEnergyFvPatchScalarField::updateCoeffs()
const basicThermo& thermo = basicThermo::lookupThermo(*this);
const label patchi = patch().index();
const scalarField& pw = thermo.p().boundaryField()[patchi];
mixedFvPatchScalarField& Tw = refCast<mixedFvPatchScalarField>
(
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi])
@ -114,13 +113,13 @@ void Foam::mixedEnergyFvPatchScalarField::updateCoeffs()
Tw.evaluate();
valueFraction() = Tw.valueFraction();
refValue() = thermo.he(pw, Tw.refValue(), patchi);
refValue() = thermo.he(Tw.refValue(), patchi);
refGrad() =
thermo.Cpv(pw, Tw, patchi)*Tw.refGrad()
thermo.Cpv(Tw, patchi)*Tw.refGrad()
+ patch().deltaCoeffs()*
(
thermo.he(pw, Tw, patchi)
- thermo.he(pw, Tw, patch().faceCells())
thermo.he(Tw, patchi)
- thermo.he(Tw, patch().faceCells())
);
mixedFvPatchScalarField::updateCoeffs();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -38,7 +38,8 @@ namespace Foam
Foam::fluidThermo::fluidThermo(const fvMesh& mesh, const word& phaseName)
:
basicThermo(mesh, phaseName)
basicThermo(mesh, phaseName),
p_(lookupOrConstruct(mesh, "p"))
{}
@ -50,7 +51,8 @@ Foam::fluidThermo::fluidThermo
const word& phaseName
)
:
basicThermo(mesh, dict, phaseName)
basicThermo(mesh, dict, phaseName),
p_(lookupOrConstruct(mesh, "p"))
{}
@ -74,6 +76,18 @@ Foam::fluidThermo::~fluidThermo()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::volScalarField& Foam::fluidThermo::p()
{
return p_;
}
const Foam::volScalarField& Foam::fluidThermo::p() const
{
return p_;
}
Foam::tmp<Foam::volScalarField> Foam::fluidThermo::nu() const
{
return mu()/rho();

View File

@ -53,6 +53,14 @@ class fluidThermo
public compressibleTransportModel
{
protected:
// Fields
//- Pressure [Pa]
volScalarField& p_;
public:
//- Runtime type information
@ -103,6 +111,13 @@ public:
// Access to thermodynamic state variables
//- Pressure [Pa]
// Non-const access allowed for transport equations
virtual volScalarField& p();
//- Pressure [Pa]
virtual const volScalarField& p() const;
//- Add the given density correction to the density field.
// Used to update the density field following pressure solution
virtual void correctRho(const volScalarField& deltaRho) = 0;
@ -111,6 +126,25 @@ public:
virtual const volScalarField& psi() const = 0;
// Fields derived from thermodynamic state variables
//- Gamma = Cp/Cv []
virtual tmp<volScalarField> gamma() const = 0;
//- Gamma = Cp/Cv for patch []
virtual tmp<scalarField> gamma
(
const scalarField& T,
const label patchi
) const = 0;
//- Molecular weight [kg/kmol]
virtual tmp<volScalarField> W() const = 0;
//- Molecular weight for patch [kg/kmol]
virtual tmp<scalarField> W(const label patchi) const = 0;
// Access to transport state variables
//- Dynamic viscosity of mixture [kg/m/s]
@ -124,6 +158,38 @@ public:
//- Kinematic viscosity of mixture for patch [m^2/s]
virtual tmp<scalarField> nu(const label patchi) const;
// Fields derived from transport state variables
//- Effective thermal turbulent diffusivity for temperature
// of mixture [W/m/K]
virtual tmp<volScalarField> kappaEff
(
const volScalarField&
) const = 0;
//- Effective thermal turbulent diffusivity for temperature
// of mixture for patch [W/m/K]
virtual tmp<scalarField> kappaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Effective thermal turbulent diffusivity of mixture [kg/m/s]
virtual tmp<volScalarField> alphaEff
(
const volScalarField& alphat
) const = 0;
//- Effective thermal turbulent diffusivity of mixture
// for patch [kg/m/s]
virtual tmp<scalarField> alphaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
};

View File

@ -33,7 +33,7 @@ template<class BasicThermo, class MixtureType>
void Foam::heThermo<BasicThermo, MixtureType>::init()
{
scalarField& heCells = he_.primitiveFieldRef();
const scalarField& pCells = this->p_;
const scalarField& pCells = this->p();
const scalarField& TCells = this->T_;
forAll(heCells, celli)
@ -48,7 +48,6 @@ void Foam::heThermo<BasicThermo, MixtureType>::init()
{
heBf[patchi] == he
(
this->p_.boundaryField()[patchi],
this->T_.boundaryField()[patchi],
patchi
);
@ -74,14 +73,14 @@ Foam::heThermo<BasicThermo, MixtureType>::volScalarFieldProperty
volScalarField::New
(
IOobject::groupName(psiName, this->group()),
this->p_.mesh(),
this->T_.mesh(),
psiDim
)
);
volScalarField& psi = tPsi.ref();
forAll(this->p_, celli)
forAll(this->T_, celli)
{
psi[celli] = (this->cellMixture(celli).*psiMethod)(args[celli] ...);
}
@ -92,7 +91,7 @@ Foam::heThermo<BasicThermo, MixtureType>::volScalarFieldProperty
{
fvPatchScalarField& pPsi = psiBf[patchi];
forAll(this->p_.boundaryField()[patchi], facei)
forAll(this->T_.boundaryField()[patchi], facei)
{
pPsi[facei] =
(this->patchFaceMixture(patchi, facei).*psiMethod)
@ -144,11 +143,11 @@ Foam::heThermo<BasicThermo, MixtureType>::patchFieldProperty
{
tmp<scalarField> tPsi
(
new scalarField(this->p_.boundaryField()[patchi].size())
new scalarField(this->T_.boundaryField()[patchi].size())
);
scalarField& psi = tPsi.ref();
forAll(this->p_.boundaryField()[patchi], facei)
forAll(this->T_.boundaryField()[patchi], facei)
{
psi[facei] =
(this->patchFaceMixture(patchi, facei).*psiMethod)(args[facei] ...);
@ -281,7 +280,6 @@ Foam::tmp<Foam::volScalarField> Foam::heThermo<BasicThermo, MixtureType>::he
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::he
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const
@ -290,7 +288,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::he
(
&MixtureType::thermoType::HE,
cells,
p,
UIndirectList<scalar>(this->p(), cells),
T
);
}
@ -299,7 +297,6 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::he
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::he
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -308,7 +305,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::he
(
&MixtureType::thermoType::HE,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -323,7 +320,7 @@ Foam::heThermo<BasicThermo, MixtureType>::ha() const
"ha",
dimEnergy/dimMass,
&MixtureType::thermoType::Ha,
this->p_,
this->p(),
this->T_
);
}
@ -350,7 +347,6 @@ Foam::tmp<Foam::volScalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const
@ -359,7 +355,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
(
&MixtureType::thermoType::Ha,
cells,
p,
UIndirectList<scalar>(this->p(), cells),
T
);
}
@ -368,7 +364,6 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -377,7 +372,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::ha
(
&MixtureType::thermoType::Ha,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -399,7 +394,6 @@ Foam::heThermo<BasicThermo, MixtureType>::hc() const
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::Cp
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -408,7 +402,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::Cp
(
&MixtureType::thermoType::Cp,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -423,7 +417,7 @@ Foam::heThermo<BasicThermo, MixtureType>::Cp() const
"Cp",
dimEnergy/dimMass/dimTemperature,
&MixtureType::thermoType::Cp,
this->p_,
this->p(),
this->T_
);
}
@ -433,7 +427,6 @@ template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField>
Foam::heThermo<BasicThermo, MixtureType>::Cv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -442,7 +435,7 @@ Foam::heThermo<BasicThermo, MixtureType>::Cv
(
&MixtureType::thermoType::Cv,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -457,7 +450,7 @@ Foam::heThermo<BasicThermo, MixtureType>::Cv() const
"Cv",
dimEnergy/dimMass/dimTemperature,
&MixtureType::thermoType::Cv,
this->p_,
this->p(),
this->T_
);
}
@ -466,7 +459,6 @@ Foam::heThermo<BasicThermo, MixtureType>::Cv() const
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::gamma
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -475,7 +467,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::gamma
(
&MixtureType::thermoType::gamma,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -490,7 +482,7 @@ Foam::heThermo<BasicThermo, MixtureType>::gamma() const
"gamma",
dimless,
&MixtureType::thermoType::gamma,
this->p_,
this->p(),
this->T_
);
}
@ -499,7 +491,6 @@ Foam::heThermo<BasicThermo, MixtureType>::gamma() const
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::Cpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -508,7 +499,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::Cpv
(
&MixtureType::thermoType::Cpv,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -523,7 +514,7 @@ Foam::heThermo<BasicThermo, MixtureType>::Cpv() const
"Cpv",
dimEnergy/dimMass/dimTemperature,
&MixtureType::thermoType::Cpv,
this->p_,
this->p(),
this->T_
);
}
@ -532,7 +523,6 @@ Foam::heThermo<BasicThermo, MixtureType>::Cpv() const
template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::CpByCpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const
@ -541,7 +531,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::CpByCpv
(
&MixtureType::thermoType::CpByCpv,
patchi,
p,
this->p().boundaryField()[patchi],
T
);
}
@ -556,7 +546,7 @@ Foam::heThermo<BasicThermo, MixtureType>::CpByCpv() const
"CpByCpv",
dimless,
&MixtureType::thermoType::CpByCpv,
this->p_,
this->p(),
this->T_
);
}
@ -566,7 +556,6 @@ template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0,
const labelList& cells
) const
@ -576,7 +565,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::THE
&MixtureType::thermoType::THE,
cells,
h,
p,
UIndirectList<scalar>(this->p(), cells),
T0
);
}
@ -586,7 +575,6 @@ template<class BasicThermo, class MixtureType>
Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0,
const label patchi
) const
@ -596,7 +584,7 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::THE
&MixtureType::thermoType::THE,
patchi,
h,
p,
this->p().boundaryField()[patchi],
T0
);
}
@ -650,7 +638,6 @@ Foam::tmp<Foam::scalarField> Foam::heThermo<BasicThermo, MixtureType>::kappa
return
Cp
(
this->p_.boundaryField()[patchi],
this->T_.boundaryField()[patchi],
patchi
)*this->alpha_.boundaryField()[patchi];
@ -676,7 +663,6 @@ Foam::heThermo<BasicThermo, MixtureType>::alphahe(const label patchi) const
return
this->CpByCpv
(
this->p_.boundaryField()[patchi],
this->T_.boundaryField()[patchi],
patchi
)
@ -710,7 +696,6 @@ Foam::heThermo<BasicThermo, MixtureType>::kappaEff
return
Cp
(
this->p_.boundaryField()[patchi],
this->T_.boundaryField()[patchi],
patchi
)
@ -744,7 +729,6 @@ Foam::heThermo<BasicThermo, MixtureType>::alphaEff
return
this->CpByCpv
(
this->p_.boundaryField()[patchi],
this->T_.boundaryField()[patchi],
patchi
)

View File

@ -195,7 +195,6 @@ public:
//- Enthalpy/Internal energy for cell-set [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const;
@ -203,7 +202,6 @@ public:
//- Enthalpy/Internal energy for patch [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -222,7 +220,6 @@ public:
//- Absolute enthalpy for patch [J/kg/K]
virtual tmp<scalarField> ha
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -230,7 +227,6 @@ public:
//- Absolute enthalpy for cell-set [J/kg]
virtual tmp<scalarField> ha
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const;
@ -242,7 +238,6 @@ public:
virtual tmp<scalarField> THE
(
const scalarField& he,
const scalarField& p,
const scalarField& T0, // starting temperature
const labelList& cells
) const;
@ -251,7 +246,6 @@ public:
virtual tmp<scalarField> THE
(
const scalarField& he,
const scalarField& p,
const scalarField& T0, // starting temperature
const label patchi
) const;
@ -259,7 +253,6 @@ public:
//- Heat capacity at constant pressure for patch [J/kg/K]
virtual tmp<scalarField> Cp
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -270,7 +263,6 @@ public:
//- Heat capacity at constant volume for patch [J/kg/K]
virtual tmp<scalarField> Cv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -284,7 +276,6 @@ public:
//- Gamma = Cp/Cv for patch []
virtual tmp<scalarField> gamma
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -292,7 +283,6 @@ public:
//- Heat capacity at constant pressure/volume for patch [J/kg/K]
virtual tmp<scalarField> Cpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;
@ -306,7 +296,6 @@ public:
//- Heat capacity ratio for patch []
virtual tmp<scalarField> CpByCpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const;