ENH: multiphaseInter: ensure consistent Hf treatment for phases

TUT: icoReactingMultiphaseInterFoam: update thermophysicalProperties.liquid
This commit is contained in:
sergio
2022-04-26 14:05:16 -07:00
committed by Kutalmis Bercin
parent 0f0a5c5c0f
commit d91fe9a6ac
9 changed files with 15 additions and 15 deletions

View File

@ -121,7 +121,7 @@ Foam::MassTransferPhaseSystem<BasePhaseSystem>::calculateL
const word species(speciesName.substr(0, speciesName.find('.'))); const word species(speciesName.substr(0, speciesName.find('.')));
L += pos(dmdtNetki)*interfacePtr->L(species, T); L -= pos(dmdtNetki)*interfacePtr->L(species, T);
} }
return tL; return tL;
@ -240,7 +240,7 @@ Foam::MassTransferPhaseSystem<BasePhaseSystem>::heatTransfer
if (KSp.valid()) if (KSp.valid())
{ {
Sp -= KSp.ref(); Sp += KSp.ref();
} }
tmp<volScalarField> KSu = tmp<volScalarField> KSu =
@ -248,13 +248,13 @@ Foam::MassTransferPhaseSystem<BasePhaseSystem>::heatTransfer
if (KSu.valid()) if (KSu.valid())
{ {
Su -= KSu.ref(); Su += KSu.ref();
} }
// If linearization is not provided used full explicit // If linearization is not provided used full explicit
if (!KSp.valid() && !KSu.valid()) if (!KSp.valid() && !KSu.valid())
{ {
Su -= *dmdt_[keyik]; Su += *dmdt_[keyik];
} }
} }

View File

@ -78,7 +78,7 @@ Foam::meltingEvaporationModels::Lee<Thermo, OtherThermo>::Kexp
{ {
return return
( (
coeff*pos(Tactivate_ - refValue) coeff*pos(Tactivate_ - refValue)
); );
} }
} }

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2020 Henning Scheufler Copyright (C) 2020 Henning Scheufler
Copyright (C) 2020-2021 OpenCFD Ltd. Copyright (C) 2020-2022 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -223,7 +223,7 @@ Foam::meltingEvaporationModels::interfaceHeatResistance<Thermo, OtherThermo>
auto tempOpen = fullSpeciesName.find('.'); auto tempOpen = fullSpeciesName.find('.');
const word speciesName(fullSpeciesName.substr(0, tempOpen)); const word speciesName(fullSpeciesName.substr(0, tempOpen));
tmp<volScalarField> L = this->L(speciesName, T); tmp<volScalarField> L = mag(this->L(speciesName, T));
htc_ = R_/L(); htc_ = R_/L();

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2017-2021 OpenCFD Ltd. Copyright (C) 2017-2022 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -206,7 +206,7 @@ Foam::meltingEvaporationModels::kineticGasEvaporation<Thermo, OtherThermo>
); );
word speciesName = IOobject::member(this->transferSpecie()); word speciesName = IOobject::member(this->transferSpecie());
tmp<volScalarField> L = this->L(speciesName, T); tmp<volScalarField> L = mag(this->L(speciesName, T));
updateInterface(T); updateInterface(T);

View File

@ -39,7 +39,7 @@ mixture
thermodynamics thermodynamics
{ {
Cp 4181; Cp 4181;
Hf 2.45e6;//-1.5833e7;//deltaHv 2.45e6; //[J/Kg] Hf -2.45e6; //[J/Kg]
} }
transport transport
{ {

View File

@ -40,7 +40,7 @@ mixture
thermodynamics thermodynamics
{ {
Cp 4181; Cp 4181;
Hf 2.45e6; //[J/Kg] Hf -2.45e6; //[J/Kg]
} }
transport transport
{ {

View File

@ -39,7 +39,7 @@ mixture
thermodynamics thermodynamics
{ {
Cp 4216; Cp 4216;
Hf 2.45e6; Hf -2.45e6;
} }
transport transport
{ {

View File

@ -41,7 +41,7 @@ mixture
thermodynamics thermodynamics
{ {
Cp 381; Cp 381;
Hf 0; Hf 8.016e4;
} }
transport transport
{ {

View File

@ -39,7 +39,7 @@ mixture
thermodynamics thermodynamics
{ {
Cp 381; Cp 381;
Hf 8.016e4;//[J/Kg]; Hf 0; //[J/Kg];
} }
transport transport
{ {