DOC: elaborate the usage of function objects

ENH: update libs of etc/caseDicts/postProcess items
  ENH: ensure destructor=default
  ENH: ensure constness
  ENH: ensure no 'copy construct' and 'no copy assignment' exist
  TUT: add examples of function objects with full set
       of settings into a TUT if unavailable
  TUT: update pisoFoam/RAS/cavity tutorial in terms of usage
This commit is contained in:
Kutalmis Bercin
2020-03-13 18:49:58 +00:00
committed by Andrew Heather
parent b549116588
commit a5c6516e23
264 changed files with 7120 additions and 2830 deletions

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
XiReactionRate1
{
// Mandatory entries
type XiReactionRate;
libs (fieldFunctionObjects);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -50,4 +50,10 @@ adjustTimeStep yes;
maxCo 0.2;
functions
{
#include "FOXiReactionRate"
}
// ************************************************************************* //

View File

@ -46,7 +46,7 @@ runTimeModifiable true;
functions
{
#includeFunc MachNo
#include "FOMachNo"
#includeFunc solverInfo
}

View File

@ -1,13 +1,17 @@
// -*- C++ -*-
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Control for external coupled simulation
externalCoupled
{
type externalCoupled;
libs (fieldFunctionObjects);
log true;
executeControl timeStep;
// Mandatory entries
type externalCoupled;
libs (fieldFunctionObjects);
// Directory to use for communication
commsDir "<case>/comms";
@ -34,6 +38,24 @@ externalCoupled
// Enabled or not?
#sinclude "<case>/externalCoupled.control"
// Optional entries
waitInterval 1;
// timeOut 100;
statusDone done; // Any arbitrary status=... value
calcFrequency 1;
// Optional (inherited) entries
region region0;
enabled true;
log true;
executeControl timeStep;
/*timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;*/
}

View File

@ -1,19 +1,30 @@
// -*- C++ -*-
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Create additional volume fields (for sampling)
derivedFields
{
type derivedFields;
libs (fieldFunctionObjects);
log true;
// Mandatory entries
type derivedFields;
libs (fieldFunctionObjects);
derived (rhoU pTotal);
writeControl none;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10000;
executeControl timeStep;
executeInterval 1;
derived (rhoU pTotal);
writeControl none;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -1,28 +1,43 @@
// -*- C++ -*-
//
// Summary of fluxes
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
flux
{
// Mandatory entries
type fluxSummary;
libs (fieldFunctionObjects);
log on;
enabled true;
executeControl none;
writeControl timeStep;
writeInterval 4;
mode functionObjectSurface;
phi rhoU;
surfaces
(
sampled.plane-0.25
sampled.plane-0.45
sampled.plane-0.55
);
// Optional entries
phi rhoU;
scaleFactor 1.0;
tolerance 0.8;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime false;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000000;
executeControl none;
executeInterval -1;
writeControl timeStep;
writeInterval 4;
}

View File

@ -47,13 +47,15 @@ graphFormat raw;
runTimeModifiable true;
functions
{
#include "derivedFields"
#include "sampling"
// #include "samplingDebug"
// #include "sampleCellCentres"
#include "isentropicTotalPressure"
#include "isentropicTotalPressure"
#include "wallHeatFlux"
}

View File

@ -1,21 +1,33 @@
// -*- C++ -*-
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Create additional volume fields (for sampling)
derivedFields
{
type derivedFields;
libs (fieldFunctionObjects);
log true;
// Mandatory entries
type derivedFields;
libs (fieldFunctionObjects);
derived (rhoU pTotal);
writeControl none;
// Optional entries
rhoRef 1.25;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10000;
executeControl timeStep;
executeInterval 1;
derived (rhoU pTotal);
rhoRef 1.25;
writeControl none;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
wallHeatFlux1
{
// Mandatory entries
type wallHeatFlux;
libs (fieldFunctionObjects);
// Optional entries
patches (walls);
qr qr;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -1,11 +1,17 @@
// -*- C++ -*-
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Control for external coupled simulation
externalCoupled
{
type externalCoupled;
libs (fieldFunctionObjects);
log true;
// Mandatory entries
type externalCoupled;
libs (fieldFunctionObjects);
// Directory to use for communication
commsDir "<case>/comms";
@ -30,6 +36,23 @@ externalCoupled
}
}
}
// Optional entries
waitInterval 1;
// timeOut 100;
statusDone done; // Any arbitrary status=... value
calcFrequency 1;
// Optional (inherited) entries
region region0;
enabled true;
log true;
/*timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;*/
}

View File

@ -1,11 +1,17 @@
// -*- C++ -*-
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Control for external coupled simulation
externalCoupled
{
type externalCoupled;
libs (fieldFunctionObjects);
log true;
// Mandatory entries
type externalCoupled;
libs (fieldFunctionObjects);
// Directory to use for communication
commsDir "<case>/comms";
@ -13,9 +19,6 @@ externalCoupled
// Does external process start first
initByExternal true;
// Frequency of coupling
calcFrequency 4;
regions
{
// Region name (wildcards allowed)
@ -33,6 +36,23 @@ externalCoupled
}
}
}
// Optional entries
waitInterval 1;
// timeOut 100;
statusDone done; // Any arbitrary status=... value
calcFrequency 4; // Frequency of coupling
// Optional (inherited) entries
region region0;
enabled true;
log true;
/*timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;*/
}

View File

@ -17,19 +17,19 @@ FoamFile
application icoFoam;
startFrom latestTime;
startFrom latestTime;
startTime 0;
stopAt nextWrite;
stopAt nextWrite;
endTime 0.5;
deltaT 0.005;
writeControl timeStep;
writeControl timeStep;
writeInterval 1;
writeInterval 1;
purgeWrite 0;
@ -45,20 +45,34 @@ timePrecision 6;
runTimeModifiable true;
functions
{
meshInterp1
{
// Mandatory entries
type mapFields;
libs (fieldFunctionObjects);
writeControl timeStep;
writeInterval 1;
mapRegion coarseMesh;
mapMethod cellVolumeWeight;
consistent yes;
fields (U); // ("U.*" "p.*");
// Optional entries
// patchMapMethod directAMI; // AMI-related entry
// patchMap (<patchSrc> <patchTgt>); // if consistent=false
// cuttingPatches (<patchTgt1> ... <patchTgtN>); // if consisten=false
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 1;
}
}

View File

@ -18,18 +18,23 @@ functions
{
processorField1
{
// Type of functionObject
// Mandatory entries
type processorField;
// Where to load it from (if not already in solver)
libs (fieldFunctionObjects);
// Function object enabled flag
// Optional (inherited) entries
result procField;
region region0;
enabled true;
// When to output the average fields
log true;
timeStart 0;
timeEnd 5000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
}
// ************************************************************************* //

View File

@ -69,9 +69,9 @@ functions
libs (fieldFunctionObjects);
writeControl writeTime;
}
lambVector1
LambVector1
{
type lambVector;
type LambVector;
libs (fieldFunctionObjects);
writeControl writeTime;
field U;
@ -81,7 +81,7 @@ functions
type div;
libs (fieldFunctionObjects);
writeControl writeTime;
field lambVector;
field LambVector;
}
fieldAverage1
{
@ -106,14 +106,14 @@ functions
base time;
}
lambVector
LambVector
{
mean on;
prime2Mean off;
base time;
}
div(lambVector)
div(LambVector)
{
mean on;
prime2Mean off;

View File

@ -33,7 +33,7 @@ divSchemes
div(phi,B) Gauss limitedLinear 0.1;
div(B) Gauss linear;
div(phi,nuTilda) Gauss limitedLinear 0.1;
div(lambVector) Gauss linear;
div(LambVector) Gauss linear;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -77,13 +77,9 @@ functions
columnAverage
{
// Mandatory entries
type columnAverage;
libs (fieldFunctionObjects);
executeControl writeTime;
writeControl none;
timeStart 1500.5; // approx 2x flow-throughs
// Note: include processorCyclics!
patches (front "proc.*throughfront");
fields
@ -93,6 +89,17 @@ functions
UMean
UPrime2Mean
);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 1500.5; // approx 2x flow-throughs
// timeEnd inf;
executeControl writeTime;
// executeInterval -1;
writeControl none;
// writeInterval -1;
}
sample

View File

@ -56,10 +56,27 @@ functions
}
DESField
{
// Mandatory entries
type DESModelRegions;
libs (fieldFunctionObjects);
//region "region0";
// Optional entries
result DESField;
// Optional (inherited) entries
writePrecision 6;
writeToFile true;
useUserTime false;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
Q1
{

View File

@ -21,5 +21,5 @@ then
runParallel -s surface noise -dict system/noiseDict-surface
fi
#------------------------------------------------------------------------------

View File

@ -45,6 +45,7 @@ timePrecision 6;
runTimeModifiable true;
functions
{
minMax1
@ -56,13 +57,24 @@ functions
curle
{
libs (fieldFunctionObjects);
// Mandatory entries
type Curle;
writeControl writeTime;
timeStart 0.1;
libs (fieldFunctionObjects);
patches (cylinder);
c0 343;
// Optional (inherited) entries
field p;
result Curle;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
cuttingPlane

View File

@ -6,13 +6,28 @@
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
AMIWeights
AMIWeights1
{
type AMIWeights;
libs (fieldFunctionObjects);
writeControl writeTime;
writeFields no;
// writeFields yes;
// Mandatory entries
type AMIWeights;
libs (fieldFunctionObjects);
writeFields true;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime false;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -11,48 +11,69 @@ residuals
type solverInfo;
libs (utilityFunctionObjects);
writeResidualFields true;
writeControl outputTime;
writeControl writeTime;
fields (p);
}
blendingFactor
{
// Mandatory entries
type stabilityBlendingFactor;
libs (fieldFunctionObjects);
log true;
writeToFile false;
field U;
result UBlendingFactor;
// Optional entries
tolerance 0.001;
// Any of the options can be chosen in combinations
// Option-1
switchNonOrtho yes;
switchGradCc no;
switchResiduals yes;
switchSkewness no;
switchFaceWeight no;
switchCo no;
maxNonOrthogonality 20;
minNonOrthogonality 60;
// Option-2
switchGradCc no;
maxGradCc 3;
minGradCc 4;
// Option-3
switchResiduals yes;
maxResidual 100;
P 5;
I 0.01;
D 0.5;
// Option-4
switchFaceWeight no;
minFaceWeight 0.3;
maxFaceWeight 0.2;
Co1 1;
Co2 2;
// Option-5
switchSkewness no;
maxSkewness 2;
minSkewness 3;
// Option-6
switchCo no;
Co1 1;
Co2 2;
field U;
result UBlendingFactor;
// Optional (inherited) entries
writePrecision 10;
writeToFile false;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
#------------------------------------------------------------------------------

View File

@ -0,0 +1,12 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
runApplication blockMesh
restore0Dir
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
CourantNo1
{
// Mandatory entries
type CourantNo;
libs (fieldFunctionObjects);
// Optional entries
rho rho;
// Optional (inherited) entries
field phi;
result CourantNumberField;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
LambVector1
{
// Mandatory entries
type LambVector;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result LambVectorField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Lambda21
{
// Mandatory entries
type Lambda2;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result Lambda2Field;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
PecletNo1
{
// Mandatory entries
type PecletNo;
libs (fieldFunctionObjects);
// Optional entries
rho rho;
// Optional (inherited) entries
field phi;
result PecletNoField;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Q1
{
// Mandatory entries
type Q;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result QField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
add1
{
// Mandatory entries
type add;
libs (fieldFunctionObjects);
fields (k k_0);
// Optional (inherited) entries
result kTotal;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10;
executeControl timeStep;
executeInterval 1;
writeControl runTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
blendingFactor1
{
// Mandatory entries
type blendingFactor;
libs (fieldFunctionObjects);
field U;
// Optional entries
phi phi;
tolerance 0.001;
// Optional (inherited) entries
result blendingFactorField;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 2;
writeControl timeStep;
writeInterval 50;
}
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
components1
{
// Mandatory entries
type components;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
continuityError1
{
// Mandatory entries
type continuityError;
libs (fieldFunctionObjects);
// Optional entries
phi phi;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
ddt1
{
// Mandatory entries
type ddt;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
result ddtU;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
ddt21
{
// Mandatory entries
type ddt2;
libs (fieldFunctionObjects);
fields (U p);
// Optional entries
mag false;
result d@@dt2;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10;
executeControl timeStep;
executeInterval 1;
writeControl runTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
div1
{
// Mandatory entries
type div;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
result divU;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
div2
{
// Mandatory entries
type div;
libs (fieldFunctionObjects);
field phi;
// Optional (inherited) entries
result divPhi;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 10;
writeControl timeStep;
writeInterval 50;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
enstrophy1
{
// Mandatory entries
type enstrophy;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result enstrophyField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,61 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
fieldAverage1
{
// Mandatory entries
type fieldAverage;
libs (fieldFunctionObjects);
fields
(
U
{
mean on;
prime2Mean on;
base time;
/*
windowType exact;
window 10.0;
windowName w1U;
allowRestart true;
*/
}
/*
p
{
mean on;
prime2Mean on;
base iteration;
windowType approximate;
window 1000;
windowName w1p;
}
*/
);
// Optional entries
restartOnRestart false;
restartOnOutput false;
periodicRestart false;
// restartPeriod 0.002;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
flowType1
{
// Mandatory entries
type flowType;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result flowTypeField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
flux1
{
// Mandatory entries
type flux;
libs (fieldFunctionObjects);
// Optional entries
rho none;
// Optional (inherited) entries
field U;
result fluxField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
grad1
{
// Mandatory entries
type grad;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
result gradU;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
grad2
{
// Mandatory entries
type grad;
libs (fieldFunctionObjects);
field phi;
// Optional (inherited) entries
result gradPhi;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 10;
writeControl timeStep;
writeInterval 50;
}
// ************************************************************************* //

View File

@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
histogram1
{
// Mandatory entries
type histogram;
libs (fieldFunctionObjects);
field p;
nBins 100;
setFormat raw;
// Optional entries
max 10;
min -10;
// Optional (inherited) entries
writePrecision 16;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
limitFields1
{
// Mandatory entries
type limitFields;
libs (fieldFunctionObjects);
fields (U p);
limit both;
min 0;
max 5;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
mag1
{
// Mandatory entries
type mag;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
result magU;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
mag2
{
// Mandatory entries
type mag;
libs (fieldFunctionObjects);
field p;
// Optional (inherited) entries
result magP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 10;
writeControl timeStep;
writeInterval 50;
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
magSqr1
{
// Mandatory entries
type magSqr;
libs (fieldFunctionObjects);
field U;
// Optional (inherited) entries
result magSqrU;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
magSqr2
{
// Mandatory entries
type magSqr;
libs (fieldFunctionObjects);
field p;
// Optional (inherited) entries
result magSqrP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 10;
writeControl timeStep;
writeInterval 50;
}
// ************************************************************************* //

View File

@ -0,0 +1,43 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
momentum1
{
// Mandatory entries
type momentum;
libs (fieldFunctionObjects);
// Optional entries
regionType all;
writeMomentum yes;
writePosition yes;
writeVelocity yes;
p p;
U U;
rho rho;
rhoRef 1.0;
cylindrical false;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
nearWallFields1
{
// Mandatory entries
type nearWallFields;
libs (fieldFunctionObjects);
fields
(
(U UNear)
(p pNear)
);
patches (fixedWalls);
distance 0.001;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,121 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
pressure1
{
// Mandatory entries
type pressure;
libs (fieldFunctionObjects);
mode static;
// Optional entries
U U;
rho rhoInf;
rhoInf 1.0;
pRef 1.0;
// Optional (inherited) entries
result staticP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
pressure2
{
// Mandatory entries
type pressure;
libs (fieldFunctionObjects);
mode total;
// Optional entries
U U;
rho rhoInf;
rhoInf 1.0;
pRef 1.0;
// Optional (inherited) entries
result totalP;
region region0;
enabled true;
log true;
timeStart 1;
timeEnd 1000;
executeControl timeStep;
executeInterval 10;
writeControl timeStep;
writeInterval 50;
}
pressure3
{
// Mandatory entries
type pressure;
libs (fieldFunctionObjects);
mode staticCoeff;
// Optional entries
U U;
rho rhoInf;
rhoInf 1.0;
pRef 1.0;
pInf 1.0;
UInf (1 0 0);
// Optional (inherited) entries
result staticCoeffP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 15;
writeControl timeStep;
writeInterval 75;
}
pressure4
{
// Mandatory entries
type pressure;
libs (fieldFunctionObjects);
mode totalCoeff;
// Optional entries
U U;
rho rhoInf;
rhoInf 1.0;
pRef 1.0;
pInf 1.0;
UInf (1.0 0.0 0.0);
// Optional (inherited) entries
result totalCoeffP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 25;
writeControl timeStep;
writeInterval 100;
}
// ************************************************************************* //

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
processorField1
{
// Mandatory entries
type processorField;
libs (fieldFunctionObjects);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 5000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
proudmanAcousticPower1
{
// Mandatory entries
type proudmanAcousticPower;
libs (fieldFunctionObjects);
// Optional entries
alphaEps 0.1;
aRef 340;
rhoInf 1.0;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 5000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
randomise1
{
// Mandatory entries
type randomise;
libs (fieldFunctionObjects);
magPerturbation 0.1;
field U;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
readFields1
{
// Mandatory entries
type readFields;
libs (fieldFunctionObjects);
fields (U p);
// Optional entries
readOnStart true;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,62 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
reference1
{
// Mandatory entries
type reference;
libs (fieldFunctionObjects);
field U;
// Optional entries
scale 1.0;
offset (0.0 0.0 0.0);
position (0 0 0);
interpolationScheme cell;
// Optional (inherited) entries
result diffU;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
reference2
{
// Mandatory entries
type reference;
libs (fieldFunctionObjects);
field p;
// Optional entries
scale -2.0;
offset 1.5;
position (0 0 0);
interpolationScheme cellPoint;
// Optional (inherited) entries
result diffP;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
setFlow1
{
// Mandatory entries
type setFlow;
libs (fieldFunctionObjects);
mode function;
scale 1;
reverseTime 1;
velocity (1 0 0);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 500;
writeControl timeStep;
writeInterval 500;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
streamFunction1
{
// Mandatory entries
type streamFunction;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field phi;
result streamFunc;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
streamLine1
{
// Mandatory entries
type streamLine;
libs (fieldFunctionObjects);
U U;
fields (U p k);
setFormat vtk;
direction forward;
lifeTime 10;
cloud particleTracks;
seedSampleSet
{
type uniform;
axis x;
start (0.0 0.05 0.005);
end (0.1 0.05 0.005);
nPoints 20;
}
// Optional entries
// bounds (0.2 -10 -10)(0.22 10 10);
// trackLength 1e-3;
nSubCycle 1;
interpolationScheme cellPoint;
// Deprecated
// trackForward true;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
subtract1
{
// Mandatory entries
type subtract;
libs (fieldFunctionObjects);
fields (k k_0);
// Optional (inherited) entries
result kDiff;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10;
executeControl timeStep;
executeInterval 1;
writeControl runTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
surfaceDistance1
{
// Mandatory entries
type surfaceDistance;
libs (fieldFunctionObjects);
geometry
{
pending.obj
{
type triSurfaceMesh;
name pending;
}
}
// Optional entries
calculateCells true;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
surfaceInterpolate1
{
// Mandatory entries
type surfaceInterpolate;
libs (fieldFunctionObjects);
fields ((U surfaceU) (p surfaceP) (k surfaceK) (divU surfaceDivU));
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,49 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
turbulenceFields1
{
// Mandatory entries
type turbulenceFields;
libs (fieldFunctionObjects);
fields (k epsilon omega nuTilda nut nuEff R devReff L);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
turbulenceFields2
{
// Mandatory entries
type turbulenceFields;
libs (fieldFunctionObjects);
field I;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
valueAverage1
{
// Mandatory entries
type valueAverage;
libs (fieldFunctionObjects);
functionObject momentum1;
fields (momentum_x momentum_y momentum_z);
// Optional entries
resetOnRestart false;
window 1;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
vorticity1
{
// Mandatory entries
type vorticity;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
result vorticityField;
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
wallShearStress1
{
// Mandatory entries
type wallShearStress;
libs (fieldFunctionObjects);
// Optional entries
patches (fixedWalls);
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeCellCentres1
{
// Mandatory entries
type writeCellCentres;
libs (fieldFunctionObjects);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeCellVolumes1
{
// Mandatory entries
type writeCellVolumes;
libs (fieldFunctionObjects);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl writeTime;
executeInterval -1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
yPlus1
{
// Mandatory entries
type yPlus;
libs (fieldFunctionObjects);
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
zeroGradient1
{
// Mandatory entries
type zeroGradient;
libs (fieldFunctionObjects);
fields (U "(epsilon|omega)" p);
// Optional entries
result @@zeroGrad;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
zeroGradient2
{
// Mandatory entries
type zeroGradient;
libs (fieldFunctionObjects);
fields (U "(epsilon|omega)" p);
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0.25;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl timeStep;
writeInterval 25;
}
// ************************************************************************* //

View File

@ -46,4 +46,52 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#include "FOfieldAverage"
#include "FOadd"
#include "FOblendingFactor"
#include "FOcomponents"
#include "FOCourantNo"
#include "FOcontinuityError"
#include "FOddt"
#include "FOddt2"
#include "FOdiv"
#include "FOenstrophy"
#include "FOflowType"
#include "FOflux"
#include "FOgrad"
#include "FOhistogram"
#include "FOLambda2"
#include "FOLambVector"
#include "FOlimitFields"
#include "FOmag"
#include "FOmagSqr"
#include "FOmomentum"
#include "FOnearWallFields"
#include "FOPecletNo"
#include "FOpressure"
#include "FOprocessorField"
#include "FOproudmanAcousticPower"
#include "FOQ"
#include "FOrandomise"
#include "FOreadFields"
#include "FOsetFlow"
#include "FOstreamFunction"
#include "FOstreamLine"
#include "FOsubtract"
//#include "FOsurfaceDistance"
#include "FOsurfaceInterpolate"
#include "FOturbulenceFields"
#include "FOvalueAverage"
#include "FOvorticity"
#include "FOreference"
#include "FOwallShearStress"
#include "FOwriteCellCentres"
#include "FOwriteCellVolumes"
#include "FOyPlus"
#include "FOzeroGradient"
}
// ************************************************************************* //

View File

@ -28,12 +28,17 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) Gauss limitedLinearV 1;
div(phi,U) Gauss CoBlended
0.01 // Co below which scheme1 is used
limitedLinearV 1 // scheme1
0.05 // Co above which scheme2 is used
linearUpwind grad(U); // scheme2
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
div(phi,omega) Gauss limitedLinear 1;
div(phi,R) Gauss limitedLinear 1;
div(R) Gauss linear;
div(U) Gauss linear; // enables div function object
div(phi,nuTilda) Gauss limitedLinear 1;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -35,39 +35,19 @@ near
distance 0.001;
}
// Use UNear to track along wall
wallBoundedStreamLines
{
// Where to load it from (if not already in solver)
libs (fieldFunctionObjects);
// Mandatory entries
type wallBoundedStreamLine;
// Output every
writeControl writeTime;
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
// Velocity field to use for tracking.
U UNear;
// Interpolation method. Default is cellPoint.
// interpolationScheme pointMVC;
// Tracked forwards (+U) or backwards (-U)
trackForward true;
interpolationScheme cellPoint;
// Names of fields to sample. Should contain above velocity field!
fields (p U k UNear);
// Steps particles can travel before being removed
lifeTime 100;
// Cloud name to use
libs (fieldFunctionObjects);
U UNear; // Velocity field to use for tracking.
fields (p U k UNear); // Names of fields to sample.
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
direction forward;
lifeTime 100; // Steps particles can travel before being removed
cloud wallBoundedParticleTracks;
// Seeding method.
seedSampleSet
{
type patchSeed;
@ -75,7 +55,6 @@ wallBoundedStreamLines
uniformCoeffs
{
axis x; //distance;
start (0.0035 0.0999 0.0001);
end (0.0035 0.0999 0.0099);
nPoints 20;
@ -94,6 +73,26 @@ wallBoundedStreamLines
maxPoints 20000;
}
}
// Optional entries
// bounds (0.2 -10 -10)(0.22 10 10);
// trackLength 1e-3;
// nSubCycle 1;
interpolationScheme cellPoint;
// Deprecated
// trackForward true;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}

View File

@ -1,21 +1,33 @@
// -*- C++ -*-
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Create additional volume fields (for sampling)
derivedFields
{
type derivedFields;
libs (fieldFunctionObjects);
log true;
// Mandatory entries
type derivedFields;
libs (fieldFunctionObjects);
derived (rhoU pTotal);
writeControl none;
// Optional entries
rhoRef 1.25;
// Optional (inherited) entries
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 10000;
executeControl timeStep;
executeInterval 1;
derived (rhoU pTotal);
rhoRef 1.25;
writeControl none;
writeInterval -1;
}
// ************************************************************************* //

View File

@ -49,13 +49,14 @@ maxCo 0.1;
runTimeModifiable yes;
functions
{
distribtion1
distribution1
{
// Mandatory entries
type particleDistribution;
libs (fieldFunctionObjects);
writeControl writeTime;
cloud sprayCloud;
nameVsBinWidth
(
@ -63,6 +64,24 @@ functions
(U 10)
);
setFormat raw;
// Optional entries
tagField none;
// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
}

View File

@ -53,16 +53,40 @@ maxAlphaCo 1;
maxDeltaT 1;
functions
{
extractEulerianParticles1
{
// Mandatory entries
type extractEulerianParticles;
libs (fieldFunctionObjects);
writeControl writeTime;
faceZone collector;
alpha alpha.water;
// Optional entries
alphaThreshold 0.1;
nLocations 20;
U U;
rho rho;
phi phi;
//minDiameter 1e-30;
//maxDiameter 1e30;
// Optional (inherited) entries
writePrecision 6;
writeToFile true;
useUserTime false;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
}

View File

@ -74,4 +74,5 @@ functions
}
}
// ************************************************************************* //

View File

@ -90,6 +90,39 @@ functions
}
);
}
regionSizeDistribution1
{
// Mandatory entries
type regionSizeDistribution;
libs (fieldFunctionObjects);
field alpha.air;
patches (inlet);
fields (p U);
threshold 0.5;
maxDiameter 0.5;
nBins 100;
setFormat gnuplot;
// Optional entries
minDiameter 0.0;
isoPlanes false;
// Optional (inherited) entries
writePrecision 12;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
}

View File

@ -54,6 +54,15 @@ maxDeltaT 1;
functions
{
add1
{
type add;
libs (fieldFunctionObjects);
fields (U.air U.water);
result U.total;
writeControl writeTime;
}
fieldAverage1
{
type fieldAverage;

View File

@ -51,18 +51,38 @@ maxCo 0.01;
maxAlphaCo 0.01;
maxAlphaDdt 0.01;
functions
{
interfaceHeight1
{
type interfaceHeight;
libs (fieldFunctionObjects);
alpha alpha.liquid;
locations ((0 0 0));
// Mandatory entries
type interfaceHeight;
libs (fieldFunctionObjects);
locations ((0 0 0));
// Optional entries
alpha alpha.liquid;
direction (1 0 0);
liquid true;
interpolationScheme cellPoint;
// Optional (inherited) entries
writePrecision 16;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 3;
}
}
// ************************************************************************* //

View File

@ -51,18 +51,38 @@ maxCo 0.01;
maxAlphaCo 0.01;
maxDeltaT 0.01;
functions
{
interfaceHeight1
{
type interfaceHeight;
libs (fieldFunctionObjects);
alpha alpha.liquid;
locations ((0 0.0001 1e-5));
// Mandatory entries
type interfaceHeight;
libs (fieldFunctionObjects);
locations ((0 0.0001 1e-5));
// Optional entries
alpha alpha.liquid;
direction (1 0 0);
liquid true;
interpolationScheme cellPoint;
// Optional (inherited) entries
writePrecision 16;
writeToFile true;
useUserTime true;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl timeStep;
writeInterval 3;
}
}
// ************************************************************************* //