mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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.
26 lines
509 B
C
26 lines
509 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>();
|
|
|
|
if (alphaRestart)
|
|
{
|
|
Info << "Restarting alpha" << endl;
|
|
}
|
|
|
|
// MULES flux from previous time-step
|
|
surfaceScalarField alphaPhi10
|
|
(
|
|
alphaPhi10Header,
|
|
phi*fvc::interpolate(alpha1)
|
|
);
|
|
|
|
// MULES Correction
|
|
tmp<surfaceScalarField> talphaPhi1Corr0;
|