ENH: Adding stabilizationSchemes FO and tutorial

This commit is contained in:
sergio
2018-06-06 12:54:34 -07:00
parent 47d7405d62
commit 46e7dab0cb
7 changed files with 1177 additions and 2 deletions

View File

@ -32,6 +32,8 @@ restore0Dir -processor
runParallel $decompDict patchSummary
runParallel $decompDict potentialFoam
runParallel $decompDict checkMesh -writeFields '(nonOrthoAngle)' -constant
runParallel $decompDict $(getApplication)
runApplication reconstructParMesh -constant

View File

@ -16,7 +16,7 @@ FoamFile
application simpleFoam;
startFrom latestTime;
startFrom startTime;
startTime 0;
@ -51,6 +51,7 @@ functions
#include "cuttingPlane"
#include "forceCoeffs"
#include "ensightWrite"
#include "stabilizationSchemes"
}

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) bounded Gauss linearUpwindV grad(U);
div(phi,U) bounded Gauss localBlended linearUpwindV grad(U) linear;
div(phi,k) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div((nuEff*dev2(T(grad(U))))) Gauss linear;

View File

@ -0,0 +1,56 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
residuals
{
type residuals;
libs ("libutilityFunctionObjects.so");
writeFields true;
writeControl outputTime;
fields (p);
}
blendingFactor
{
type stabilityBlendingFactor;
libs ("libfieldFunctionObjects.so");
log true;
switchNonOrtho yes;
switchGradCc no;
switchResiduals yes;
switchSkewness no;
switchFaceWeight no;
switchCo no;
maxNonOrthogonality 20;
minNonOrthogonality 60;
maxGradCc 3;
minGradCc 4;
maxResidual 100;
P 5;
I 0.01;
D 0.5;
minFaceWeight 0.3;
maxFaceWeight 0.2;
Co1 1;
Co2 2;
maxSkewness 2;
minSkewness 3;
field U;
result UBlendingFactor;
}
// ************************************************************************* //