mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
In this version of compressibleInterFoam separate stress models (laminar, non-Newtonian, LES or RAS) are instantiated for each of the two phases allowing for completely different modeling for the phases. e.g. in the climbingRod tutorial case provided a Newtonian laminar model is instantiated for the air and a Maxwell non-Newtonian model is instantiated for the viscoelastic liquid. To stabilize the Maxwell model in regions where the liquid phase-fraction is 0 the new symmTensorPhaseLimitStabilization fvOption is applied. Other phase stress modeling combinations are also possible, e.g. the air may be turbulent but the liquid laminar and an RAS or LES model applied to the air only. However, to stabilize this combination a suitable fvOption would need to be applied to the turbulence properties where the air phase-fraction is 0. Henry G. Weller, Chris Greenshields CFD Direct Ltd.
66 lines
1.8 KiB
C++
66 lines
1.8 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSchemes;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
ddtSchemes
|
|
{
|
|
default Euler;
|
|
}
|
|
|
|
gradSchemes
|
|
{
|
|
default Gauss linear;
|
|
}
|
|
|
|
divSchemes
|
|
{
|
|
div(rhoPhi,U) Gauss linearUpwindV grad(U);
|
|
div(rhoPhi,T) Gauss linearUpwind grad(T);
|
|
|
|
div(phi,alpha) Gauss vanLeer;
|
|
div(phirb,alpha) Gauss linear;
|
|
|
|
div(phi,p) Gauss upwind;
|
|
div(rhoPhi,K) Gauss upwind;
|
|
|
|
div(alphaRhoPhi.water,sigma.water) Gauss linearUpwind grad(sigma);
|
|
|
|
div(((alpha.water*thermo:rho.water)*sigma.water)) Gauss linear;
|
|
div((((alpha.water*thermo:rho.water)*nuM)*grad(U))) Gauss linear;
|
|
div((((alpha.water*thermo:rho.water)*(thermo:mu.water|thermo:rho.water))*dev2(T(grad(U))))) Gauss linear;
|
|
|
|
div((((alpha.air*thermo:rho.air)*nuEff.air)*dev2(T(grad(U))))) Gauss linear;
|
|
div((((alpha.water*thermo:rho.water)*nuEff.water)*dev2(T(grad(U))))) Gauss linear;
|
|
}
|
|
|
|
laplacianSchemes
|
|
{
|
|
default Gauss linear corrected;
|
|
}
|
|
|
|
interpolationSchemes
|
|
{
|
|
default linear;
|
|
}
|
|
|
|
snGradSchemes
|
|
{
|
|
default corrected;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|