Resolves bug-report https://bugs.openfoam.org/view.php?id=2785 ENH: compressibleInterFoam family: merged two-phase momentum stress modelling from compressibleInterPhaseTransportFoam The new momentum stress model selector class compressibleInterPhaseTransportModel is now used to select between the options: Description Transport model selection class for the compressibleInterFoam family of solvers. By default the standard mixture transport modelling approach is used in which a single momentum stress model (laminar, non-Newtonian, LES or RAS) is constructed for the mixture. However if the \c simulationType in constant/turbulenceProperties is set to \c twoPhaseTransport the alternative Euler-Euler two-phase transport modelling approach is used in which separate stress models (laminar, non-Newtonian, LES or RAS) are instantiated for each of the two phases allowing for different modeling for the phases. Mixture and two-phase momentum stress modelling is now supported in compressibleInterFoam, compressibleInterDyMFoam and compressibleInterFilmFoam. The prototype compressibleInterPhaseTransportFoam solver is no longer needed and has been removed.
27 lines
517 B
C
27 lines
517 B
C
IOobject alphaPhi10Header
|
|
(
|
|
IOobject::groupName("alphaPhi0", alpha1.group()),
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::READ_IF_PRESENT,
|
|
IOobject::AUTO_WRITE
|
|
);
|
|
|
|
const bool alphaRestart =
|
|
alphaPhi10Header.typeHeaderOk<surfaceScalarField>(true);
|
|
|
|
if (alphaRestart)
|
|
{
|
|
Info << "Restarting alpha" << endl;
|
|
}
|
|
|
|
// MULES flux from previous time-step
|
|
surfaceScalarField alphaPhi10
|
|
(
|
|
alphaPhi10Header,
|
|
phi*fvc::interpolate(alpha1)
|
|
);
|
|
|
|
// MULES Correction
|
|
tmp<surfaceScalarField> talphaPhi1Corr0;
|