From 2133c5be768d6176d602d7036108eb619fba85f8 Mon Sep 17 00:00:00 2001 From: sergio <sergio> Date: Mon, 14 May 2012 09:52:12 +0100 Subject: [PATCH] ENH: Adding enthalpyJump and temperature jump boundary conditions for cyclic --- src/finiteVolume/Make/files | 1 + .../temperatureJumpFvPatchScalarField.C | 129 ++++++++++++++ .../temperatureJumpFvPatchScalarField.H | 159 +++++++++++++++++ .../fvPatchField/fvPatchFieldNew.C | 4 +- src/thermophysicalModels/basic/Make/files | 1 + .../basic/basicThermo/basicThermo.C | 3 +- .../enthalpyJumpFvPatchScalarField.C | 165 ++++++++++++++++++ .../enthalpyJumpFvPatchScalarField.H | 142 +++++++++++++++ .../basic/psiThermo/hPsiThermo/hPsiThermo.C | 3 +- .../basic/psiThermo/hsPsiThermo/hsPsiThermo.C | 3 +- .../basic/rhoThermo/hsRhoThermo/hsRhoThermo.C | 3 +- 11 files changed, 606 insertions(+), 7 deletions(-) create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.C create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.H create mode 100644 src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.C create mode 100644 src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.H diff --git a/src/finiteVolume/Make/files b/src/finiteVolume/Make/files index 3691354d0bc..22988f32169 100644 --- a/src/finiteVolume/Make/files +++ b/src/finiteVolume/Make/files @@ -174,6 +174,7 @@ $(derivedFvPatchFields)/waveSurfacePressure/waveSurfacePressureFvPatchScalarFiel $(derivedFvPatchFields)/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C $(derivedFvPatchFields)/variableHeightFlowRate/variableHeightFlowRateFvPatchField.C $(derivedFvPatchFields)/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C +$(derivedFvPatchFields)/temperatureJump/temperatureJumpFvPatchScalarField.C fvsPatchFields = fields/fvsPatchFields $(fvsPatchFields)/fvsPatchField/fvsPatchFields.C diff --git a/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.C new file mode 100644 index 00000000000..99be42e3d6f --- /dev/null +++ b/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.C @@ -0,0 +1,129 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. + +\*---------------------------------------------------------------------------*/ + +#include "addToRunTimeSelectionTable.H" +#include "temperatureJumpFvPatchScalarField.H" +#include "volFields.H" + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + +Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField +( + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF +) +: + fixedJumpFvPatchField<scalar>(p, iF), + jumpTable_(0) +{} + + +Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField +( + const temperatureJumpFvPatchScalarField& ptf, + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF, + const fvPatchFieldMapper& mapper +) +: + fixedJumpFvPatchField<scalar>(ptf, p, iF, mapper), + jumpTable_(ptf.jumpTable_().clone().ptr()) +{} + + +Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField +( + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF, + const dictionary& dict +) +: + fixedJumpFvPatchField<scalar>(p, iF), + jumpTable_(new DataEntry<scalar>("jumpTable")) +{ + + if (this->cyclicPatch().owner()) + { + jumpTable_ = DataEntry<scalar>::New("jumpTable", dict); + } + + if (dict.found("value")) + { + fvPatchScalarField::operator= + ( + scalarField("value", dict, p.size()) + ); + } +} + + +Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField +( + const temperatureJumpFvPatchScalarField& ptf +) +: + cyclicLduInterfaceField(), + fixedJumpFvPatchField<scalar>(ptf), + jumpTable_(ptf.jumpTable_().clone().ptr()) +{} + + +Foam::temperatureJumpFvPatchScalarField::temperatureJumpFvPatchScalarField +( + const temperatureJumpFvPatchScalarField& ptf, + const DimensionedField<scalar, volMesh>& iF +) +: + fixedJumpFvPatchField<scalar>(ptf, iF), + jumpTable_(ptf.jumpTable_().clone().ptr()) +{} + + +// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + + +void Foam::temperatureJumpFvPatchScalarField::write(Ostream& os) const +{ + fixedJumpFvPatchField<scalar>::write(os); + if (this->cyclicPatch().owner()) + { + jumpTable_->writeData(os); + } + this->writeEntry("value", os); +} + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + makePatchTypeField + ( + fvPatchScalarField, + temperatureJumpFvPatchScalarField + ); +} + +// ************************************************************************* // diff --git a/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.H new file mode 100644 index 00000000000..55364eac5d2 --- /dev/null +++ b/src/finiteVolume/fields/fvPatchFields/derived/temperatureJump/temperatureJumpFvPatchScalarField.H @@ -0,0 +1,159 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. + +Class + Foam::temperatureJumpFvPatchScalarField + +Description + Introduce a jump in temperature on a cycle patch + front + { + type temperatureJump; + patchType cyclic; + jumpTable constant 100; + value uniform 300; + } + +SourceFiles + temperatureJumpFvPatchScalarField.C + +\*---------------------------------------------------------------------------*/ + +#ifndef temperatureJumpFvPatchScalarField_H +#define temperatureJumpFvPatchScalarField_H + +#include "fixedJumpFvPatchField.H" +#include "DataEntry.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +/*---------------------------------------------------------------------------*\ + Class temperatureJumpFvPatchScalarField Declaration +\*---------------------------------------------------------------------------*/ + +class temperatureJumpFvPatchScalarField +: + public fixedJumpFvPatchField<scalar> +{ + + // Private data + + //- Interpolation table + autoPtr<DataEntry<scalar> > jumpTable_; + + +public: + + //- Runtime type information + TypeName("temperatureJump"); + + // Constructors + + //- Construct from patch and internal field + temperatureJumpFvPatchScalarField + ( + const fvPatch&, + const DimensionedField<scalar, volMesh>& + ); + + //- Construct from patch, internal field and dictionary + temperatureJumpFvPatchScalarField + ( + const fvPatch&, + const DimensionedField<scalar, volMesh>&, + const dictionary& + ); + + //- Construct by mapping given temperatureJumpFvPatchScalarField onto a + // new patch + temperatureJumpFvPatchScalarField + ( + const temperatureJumpFvPatchScalarField&, + const fvPatch&, + const DimensionedField<scalar, volMesh>&, + const fvPatchFieldMapper& + ); + + //- Construct as copy + temperatureJumpFvPatchScalarField + ( + const temperatureJumpFvPatchScalarField& + ); + + //- Construct and return a clone + virtual tmp<fvPatchField<scalar> > clone() const + { + return tmp<fvPatchField<scalar> > + ( + new temperatureJumpFvPatchScalarField(*this) + ); + } + + //- Construct as copy setting internal field reference + temperatureJumpFvPatchScalarField + ( + const temperatureJumpFvPatchScalarField&, + const DimensionedField<scalar, volMesh>& + ); + + //- Construct and return a clone setting internal field reference + virtual tmp<fvPatchField<scalar> > clone + ( + const DimensionedField<scalar, volMesh>& iF + ) const + { + return tmp<fvPatchField<scalar> > + ( + new temperatureJumpFvPatchScalarField(*this, iF) + ); + } + + + // Member functions + + + // Access functions + + //- Return jumpTable + const DataEntry<scalar>& jumpTable() const + { + return jumpTable_(); + } + + + //- Write + virtual void write(Ostream&) const; +}; + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* // diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchFieldNew.C b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchFieldNew.C index 84835248716..7d07ca649fd 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchFieldNew.C +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchFieldNew.C @@ -65,10 +65,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New || actualPatchType != p.type() ) { - Info << actualPatchType << endl; - Info << p.type() << endl; typename patchConstructorTable::iterator patchTypeCstrIter = - patchConstructorTablePtr_->find(actualPatchType);//p.type()); + patchConstructorTablePtr_->find(p.type()); if (patchTypeCstrIter != patchConstructorTablePtr_->end()) { diff --git a/src/thermophysicalModels/basic/Make/files b/src/thermophysicalModels/basic/Make/files index 1c08f455dfd..ba53ed77405 100644 --- a/src/thermophysicalModels/basic/Make/files +++ b/src/thermophysicalModels/basic/Make/files @@ -22,6 +22,7 @@ derivedFvPatchFields/mixedEnthalpy/mixedEnthalpyFvPatchScalarField.C derivedFvPatchFields/fixedInternalEnergy/fixedInternalEnergyFvPatchScalarField.C derivedFvPatchFields/gradientInternalEnergy/gradientInternalEnergyFvPatchScalarField.C derivedFvPatchFields/mixedInternalEnergy/mixedInternalEnergyFvPatchScalarField.C +derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.C derivedFvPatchFields/wallHeatTransfer/wallHeatTransferFvPatchScalarField.C diff --git a/src/thermophysicalModels/basic/basicThermo/basicThermo.C b/src/thermophysicalModels/basic/basicThermo/basicThermo.C index 8eed4f23114..bb6acc01ed2 100644 --- a/src/thermophysicalModels/basic/basicThermo/basicThermo.C +++ b/src/thermophysicalModels/basic/basicThermo/basicThermo.C @@ -33,6 +33,7 @@ License #include "fixedInternalEnergyFvPatchScalarField.H" #include "gradientInternalEnergyFvPatchScalarField.H" #include "mixedInternalEnergyFvPatchScalarField.H" +#include "temperatureJumpFvPatchScalarField.H" #include "enthalpyJumpFvPatchScalarField.H" /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */ @@ -69,7 +70,7 @@ Foam::wordList Foam::basicThermo::hBoundaryTypes() { hbt[patchi] = mixedEnthalpyFvPatchScalarField::typeName; } - else if (isA<enthalpyJumpFvPatchScalarField>(tbf[patchi])) + else if (isA<temperatureJumpFvPatchScalarField>(tbf[patchi])) { hbt[patchi] = enthalpyJumpFvPatchScalarField::typeName; } diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.C new file mode 100644 index 00000000000..78c27e6d037 --- /dev/null +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.C @@ -0,0 +1,165 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. + +\*---------------------------------------------------------------------------*/ + +#include "addToRunTimeSelectionTable.H" +#include "enthalpyJumpFvPatchScalarField.H" +#include "temperatureJumpFvPatchScalarField.H" +#include "basicThermo.H" + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + +Foam::enthalpyJumpFvPatchScalarField::enthalpyJumpFvPatchScalarField +( + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF +) +: + fixedJumpFvPatchField<scalar>(p, iF) +{} + + +Foam::enthalpyJumpFvPatchScalarField::enthalpyJumpFvPatchScalarField +( + const enthalpyJumpFvPatchScalarField& ptf, + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF, + const fvPatchFieldMapper& mapper +) +: + fixedJumpFvPatchField<scalar>(ptf, p, iF, mapper) +{} + + +Foam::enthalpyJumpFvPatchScalarField::enthalpyJumpFvPatchScalarField +( + const fvPatch& p, + const DimensionedField<scalar, volMesh>& iF, + const dictionary& dict +) +: + fixedJumpFvPatchField<scalar>(p, iF) +{ + + if (dict.found("value")) + { + fvPatchScalarField::operator= + ( + scalarField("value", dict, p.size()) + ); + } +} + + +Foam::enthalpyJumpFvPatchScalarField::enthalpyJumpFvPatchScalarField +( + const enthalpyJumpFvPatchScalarField& ptf +) +: + cyclicLduInterfaceField(), + fixedJumpFvPatchField<scalar>(ptf) +{} + + +Foam::enthalpyJumpFvPatchScalarField::enthalpyJumpFvPatchScalarField +( + const enthalpyJumpFvPatchScalarField& ptf, + const DimensionedField<scalar, volMesh>& iF +) +: + fixedJumpFvPatchField<scalar>(ptf, iF) +{} + + +// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + +void Foam::enthalpyJumpFvPatchScalarField::updateCoeffs() +{ + if (this->updated()) + { + return; + } + + if (this->cyclicPatch().owner()) + { + const basicThermo& thermo = db().lookupObject<basicThermo> + ( + "thermophysicalProperties" + ); + + label patchID = patch().index(); + + const temperatureJumpFvPatchScalarField& TbPatch = + refCast<const temperatureJumpFvPatchScalarField> + ( + thermo.T().boundaryField()[patchID] + ); + + const scalar time = this->db().time().value(); + const scalarField jumpTb + ( + patch().size(), TbPatch.jumpTable().value(time) + ); + + const labelUList& faceCells = this->patch().faceCells(); + + if (db().foundObject<volScalarField>("h")) + { + jump_ = thermo.h(jumpTb, faceCells)(); + } + else if (db().foundObject<volScalarField>("hs")) + { + jump_ = thermo.hs(jumpTb, faceCells)(); + } + else + { + FatalErrorIn("enthalpyJumpFvPatchScalarField::updateCoeffs()") + << " hs or h are not found in db()" + << exit(FatalError); + } + } + + fixedJumpFvPatchField<scalar>::updateCoeffs(); +} + + +void Foam::enthalpyJumpFvPatchScalarField::write(Ostream& os) const +{ + fixedJumpFvPatchField<scalar>::write(os); + this->writeEntry("value", os); +} + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + makePatchTypeField + ( + fvPatchScalarField, + enthalpyJumpFvPatchScalarField + ); +} + +// ************************************************************************* // diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.H new file mode 100644 index 00000000000..770e2a47394 --- /dev/null +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/enthalpyJump/enthalpyJumpFvPatchScalarField.H @@ -0,0 +1,142 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. + +Class + Foam::enthalpyJumpFvPatchScalarField + +Description + +SourceFiles + enthalpyJumpFvPatchScalarField.C + +\*---------------------------------------------------------------------------*/ + +#ifndef enthalpyJumpFvPatchScalarField_H +#define enthalpyJumpFvPatchScalarField_H + +#include "fixedJumpFvPatchField.H" +#include "DataEntry.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +/*---------------------------------------------------------------------------*\ + Class enthalpyJumpFvPatchScalarField Declaration +\*---------------------------------------------------------------------------*/ + +class enthalpyJumpFvPatchScalarField +: + public fixedJumpFvPatchField<scalar> +{ + +public: + + //- Runtime type information + TypeName("enthalpyJump"); + + // Constructors + + //- Construct from patch and internal field + enthalpyJumpFvPatchScalarField + ( + const fvPatch&, + const DimensionedField<scalar, volMesh>& + ); + + //- Construct from patch, internal field and dictionary + enthalpyJumpFvPatchScalarField + ( + const fvPatch&, + const DimensionedField<scalar, volMesh>&, + const dictionary& + ); + + //- Construct by mapping given enthalpyJumpFvPatchScalarField onto a + // new patch + enthalpyJumpFvPatchScalarField + ( + const enthalpyJumpFvPatchScalarField&, + const fvPatch&, + const DimensionedField<scalar, volMesh>&, + const fvPatchFieldMapper& + ); + + //- Construct as copy + enthalpyJumpFvPatchScalarField + ( + const enthalpyJumpFvPatchScalarField& + ); + + //- Construct and return a clone + virtual tmp<fvPatchField<scalar> > clone() const + { + return tmp<fvPatchField<scalar> > + ( + new enthalpyJumpFvPatchScalarField(*this) + ); + } + + //- Construct as copy setting internal field reference + enthalpyJumpFvPatchScalarField + ( + const enthalpyJumpFvPatchScalarField&, + const DimensionedField<scalar, volMesh>& + ); + + //- Construct and return a clone setting internal field reference + virtual tmp<fvPatchField<scalar> > clone + ( + const DimensionedField<scalar, volMesh>& iF + ) const + { + return tmp<fvPatchField<scalar> > + ( + new enthalpyJumpFvPatchScalarField(*this, iF) + ); + } + + + // Member functions + + + // Evaluation functions + + //- Update the coefficients + virtual void updateCoeffs(); + + + //- Write + virtual void write(Ostream&) const; +}; + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* // diff --git a/src/thermophysicalModels/basic/psiThermo/hPsiThermo/hPsiThermo.C b/src/thermophysicalModels/basic/psiThermo/hPsiThermo/hPsiThermo.C index 7f4d0fe1887..92604068408 100644 --- a/src/thermophysicalModels/basic/psiThermo/hPsiThermo/hPsiThermo.C +++ b/src/thermophysicalModels/basic/psiThermo/hPsiThermo/hPsiThermo.C @@ -113,7 +113,8 @@ Foam::hPsiThermo<MixtureType>::hPsiThermo(const fvMesh& mesh) ), mesh, dimEnergy/dimMass, - this->hBoundaryTypes() + this->hBoundaryTypes(), + mesh.boundaryMesh().types() ) { scalarField& hCells = h_.internalField(); diff --git a/src/thermophysicalModels/basic/psiThermo/hsPsiThermo/hsPsiThermo.C b/src/thermophysicalModels/basic/psiThermo/hsPsiThermo/hsPsiThermo.C index a8010f8700f..7d1cae28f97 100644 --- a/src/thermophysicalModels/basic/psiThermo/hsPsiThermo/hsPsiThermo.C +++ b/src/thermophysicalModels/basic/psiThermo/hsPsiThermo/hsPsiThermo.C @@ -113,7 +113,8 @@ Foam::hsPsiThermo<MixtureType>::hsPsiThermo(const fvMesh& mesh) ), mesh, dimEnergy/dimMass, - this->hBoundaryTypes() + this->hBoundaryTypes(), + mesh.boundaryMesh().types() ) { scalarField& hsCells = hs_.internalField(); diff --git a/src/thermophysicalModels/basic/rhoThermo/hsRhoThermo/hsRhoThermo.C b/src/thermophysicalModels/basic/rhoThermo/hsRhoThermo/hsRhoThermo.C index f8697bf675b..8d55e26d93d 100644 --- a/src/thermophysicalModels/basic/rhoThermo/hsRhoThermo/hsRhoThermo.C +++ b/src/thermophysicalModels/basic/rhoThermo/hsRhoThermo/hsRhoThermo.C @@ -118,7 +118,8 @@ Foam::hsRhoThermo<MixtureType>::hsRhoThermo(const fvMesh& mesh) ), mesh, dimEnergy/dimMass, - this->hBoundaryTypes() + this->hBoundaryTypes(), + mesh.boundaryMesh().types() ) { scalarField& hsCells = hs_.internalField(); -- GitLab