mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding stabilizationSchemes FO and tutorial
This commit is contained in:
@ -32,6 +32,8 @@ restore0Dir -processor
|
||||
|
||||
runParallel $decompDict patchSummary
|
||||
runParallel $decompDict potentialFoam
|
||||
runParallel $decompDict checkMesh -writeFields '(nonOrthoAngle)' -constant
|
||||
|
||||
runParallel $decompDict $(getApplication)
|
||||
|
||||
runApplication reconstructParMesh -constant
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user