reacting*EulerFoam: Various consistency improvements

Mass transfer rates now have a more comprehensive naming convention.
"dmdt" means a bulk/mixture transfer, whilst "dmidt" is for a
specie-specific transfer. "dmdt" implies a transfer into a phase, whilst
"dmdtf" means a transfer across an interface. Tables or lists of
transfers are denoted by pluralising the name with the suffix "s"; e.g.,
"dmdtfs". All registered mass transfer rate fields have names which
include the name of the sub-model or phase system which generated them.

The phaseTransfer models have been changed so that the mixture and the
specie-specific mass transfers are independent. This simplifies the
naming convention required for registering the resulting mass transfers
and reduces the amount of logic necessary in the phase system.

The inheritance pattern of the alphat wall functions has been altered so
that the code and parameters relating to phase change are reused, and so
that the base (the Jayatilleke wall function) more closely resembles the
library implementation. This should make it easier to remove it when the
library function is generalised enough to use it directly.

The phaseSystem::zero*Field construction functions have been removed as
their behaviour regarding registration was not clear, and in most
instances of their usage the GeometriField<...>::New methods are
similarly convenient.
This commit is contained in:
Will Bainbridge
2019-10-08 16:28:05 +01:00
parent 7381f45d03
commit 96f10fa31a
64 changed files with 1655 additions and 1443 deletions

View File

@ -135,10 +135,13 @@ populationBalanceCoeffs
(
phaseChange
{
pairs ( (gas and liquid) (gas2 and liquid) );
pairs ((gas and liquid) (gas2 and liquid));
dmdtf thermalPhaseChange:dmdtf;
}
densityChange{}
densityChange
{
}
);
nucleationModels

View File

@ -108,7 +108,7 @@ relaxationFactors
{
fields
{
iDmdt 0.8;
thermalPhaseChange:dmdtf 0.8;
}
equations

View File

@ -33,7 +33,7 @@ boundaryField
}
wall
{
type compressible::alphatPhaseChangeJayatillekeWallFunction;
type compressible::alphatPhaseJayatillekeWallFunction;
Prt 0.85;
Cmu 0.09;
kappa 0.41;

View File

@ -33,7 +33,7 @@ boundaryField
}
wall
{
type compressible::alphatPhaseChangeJayatillekeWallFunction;
type compressible::alphatPhaseJayatillekeWallFunction;
Prt 0.85;
Cmu 0.09;
kappa 0.41;

View File

@ -81,7 +81,7 @@ relaxationFactors
{
fields
{
iDmdt 1.0;
thermalPhaseChange:dmdtf 1.0;
}
equations

View File

@ -39,7 +39,6 @@ boundaryField
kappa 0.41;
E 9.8;
relax 0.2;
dmdt uniform 0;
otherPhase gas;
phaseType liquid;
partitioningModel

View File

@ -108,7 +108,7 @@ relaxationFactors
{
fields
{
iDmdt 1.0;
thermalPhaseChange:dmdtf 1.0;
}
equations

View File

@ -39,7 +39,6 @@ boundaryField
kappa 0.41;
E 9.8;
relax 0.2;
dmdt uniform 0;
otherPhase gas;
phaseType liquid;
partitioningModel

View File

@ -54,7 +54,8 @@ gas
phaseChange
{
pairName gasAndLiquid;
otherPhase liquid;
dmdtf thermalPhaseChange:dmdtf;
}
wallBoiling

View File

@ -118,7 +118,7 @@ relaxationFactors
{
fields
{
iDmdt 0.8;
thermalPhaseChange:dmdtf 1.0;
}
equations

View File

@ -39,7 +39,6 @@ boundaryField
kappa 0.41;
E 9.8;
relax 0.2;
dmdt uniform 0;
otherPhase gas;
phaseType liquid;
partitioningModel

View File

@ -111,10 +111,13 @@ populationBalanceCoeffs
(
phaseChange
{
pairs ( (gas and liquid) );
pairs ((gas and liquid));
dmdtf thermalPhaseChange:dmdtf;
}
densityChange{}
densityChange
{
}
);
nucleationModels

View File

@ -108,7 +108,7 @@ relaxationFactors
{
fields
{
iDmdt 0.8;
thermalPhaseChange:dmdtf 1.0;
}
equations

View File

@ -89,7 +89,7 @@ relaxationFactors
{
fields
{
iDmdt 1;
thermalPhaseChange:dmdtf 1.0;
}
equations

View File

@ -123,6 +123,7 @@ populationBalanceCoeffs
nucleationDiameter 4E-10;
velocityGroup particles;
reactingPhase vapor;
dmdtf phaseTransfer:dmidtf;
specie TiO2;
}
);

View File

@ -123,9 +123,10 @@ populationBalanceCoeffs
(
phaseChange
{
pairs ( (particles and vapor) );
specie TiO2_s;
surfaceGrowthType ParkRogak;
pairs ((particles and vapor));
dmdtf phaseTransfer:dmidtf;
specie TiO2_s;
surfaceGrowthType ParkRogak;
}
);
@ -136,6 +137,7 @@ populationBalanceCoeffs
nucleationDiameter 4E-10;
velocityGroup particles;
reactingPhase vapor;
dmdtf phaseTransfer:dmidtf;
specie TiO2;
}
);