mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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.
37 lines
753 B
C
37 lines
753 B
C
{
|
|
fvScalarMatrix TEqn
|
|
(
|
|
fvm::ddt(rho, T) + fvm::div(rhoPhi, T)
|
|
- fvm::Sp(contErr, T)
|
|
- fvm::laplacian(turbulence.alphaEff(), T)
|
|
+ (
|
|
(
|
|
fvc::div(fvc::absolute(phi, U), p)
|
|
+ fvc::ddt(rho, K) + fvc::div(rhoPhi, K)
|
|
)()() - contErr*K
|
|
)
|
|
*(
|
|
alpha1/mixture.thermo1().Cv()
|
|
+ alpha2/mixture.thermo2().Cv()
|
|
)()()
|
|
==
|
|
fvOptions(rho, T)
|
|
+ pos(Srho)
|
|
*(
|
|
surfaceFilm.Sh()()/mixture.thermo1().Cp()()
|
|
+ surfaceFilm.Tref*Srho
|
|
)
|
|
);
|
|
|
|
TEqn.relax();
|
|
|
|
fvOptions.constrain(TEqn);
|
|
|
|
TEqn.solve();
|
|
|
|
fvOptions.correct(T);
|
|
|
|
mixture.correctThermo();
|
|
mixture.correct();
|
|
}
|