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

View File

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

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020 Henning Scheufler
Copyright (C) 2020-2021 OpenCFD Ltd.
Copyright (C) 2020-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -223,7 +223,7 @@ Foam::meltingEvaporationModels::interfaceHeatResistance<Thermo, OtherThermo>
auto tempOpen = fullSpeciesName.find('.');
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();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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