mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object steadyState;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
fields
|
||||||
|
{
|
||||||
|
p 0.3;
|
||||||
|
}
|
||||||
|
equations
|
||||||
|
{
|
||||||
|
U 0.7;
|
||||||
|
".*" 0.7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/general/fvSolution/relaxationFactors/transient
Normal file
28
etc/caseDicts/general/fvSolution/relaxationFactors/transient
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object transient;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
fields
|
||||||
|
{
|
||||||
|
}
|
||||||
|
equations
|
||||||
|
{
|
||||||
|
".*" 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
59
etc/caseDicts/mesh/generation/meshQualityDict.cfg
Normal file
59
etc/caseDicts/mesh/generation/meshQualityDict.cfg
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object meshQualityDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
maxNonOrtho 65;
|
||||||
|
|
||||||
|
maxBoundarySkewness 20;
|
||||||
|
|
||||||
|
maxInternalSkewness 4;
|
||||||
|
|
||||||
|
maxConcave 80;
|
||||||
|
|
||||||
|
// Minimum cell pyramid volume; case dependent
|
||||||
|
minVol 1e-13;
|
||||||
|
|
||||||
|
// 1e-15 (small positive) to enable tracking
|
||||||
|
// -1e+30 (large negative) for best layer insertion
|
||||||
|
minTetQuality 1e-15;
|
||||||
|
|
||||||
|
// if >0 : preserve single cells with all points on the surface if the
|
||||||
|
// resulting volume after snapping (by approximation) is larger than
|
||||||
|
// minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
|
||||||
|
// If <0 : delete always.
|
||||||
|
//minVolCollapseRatio 0.5;
|
||||||
|
|
||||||
|
minArea -1;
|
||||||
|
|
||||||
|
minTwist 0.02;
|
||||||
|
|
||||||
|
minDeterminant 0.001;
|
||||||
|
|
||||||
|
minFaceWeight 0.05;
|
||||||
|
|
||||||
|
minVolRatio 0.01;
|
||||||
|
|
||||||
|
minTriangleTwist -1;
|
||||||
|
|
||||||
|
nSmoothScale 4;
|
||||||
|
|
||||||
|
errorReduction 0.75;
|
||||||
|
|
||||||
|
relaxed
|
||||||
|
{
|
||||||
|
maxNonOrtho 75;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
83
etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg
Normal file
83
etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object snappyHexMeshDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
castellatedMesh true;
|
||||||
|
snap true;
|
||||||
|
addLayers true;
|
||||||
|
|
||||||
|
castellatedMeshControls
|
||||||
|
{
|
||||||
|
maxLocalCells 100000;
|
||||||
|
maxGlobalCells 100000000;
|
||||||
|
minRefinementCells 10;
|
||||||
|
maxLoadUnbalance 0.10;
|
||||||
|
nCellsBetweenLevels 3;
|
||||||
|
resolveFeatureAngle 30;
|
||||||
|
allowFreeStandingZoneFaces true;
|
||||||
|
features
|
||||||
|
(
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
snapControls
|
||||||
|
{
|
||||||
|
nSmoothPatch 3;
|
||||||
|
tolerance 2.0;
|
||||||
|
nSolveIter 100;
|
||||||
|
nRelaxIter 5;
|
||||||
|
|
||||||
|
nFeatureSnapIter 10;
|
||||||
|
|
||||||
|
explicitFeatureSnap false;
|
||||||
|
multiRegionFeatureSnap false;
|
||||||
|
implicitFeatureSnap true;
|
||||||
|
}
|
||||||
|
|
||||||
|
addLayersControls
|
||||||
|
{
|
||||||
|
featureAngle 100;
|
||||||
|
slipFeatureAngle 30;
|
||||||
|
|
||||||
|
nLayerIter 50;
|
||||||
|
nRelaxedIter 20;
|
||||||
|
nRelaxIter 5;
|
||||||
|
|
||||||
|
nGrow 0;
|
||||||
|
|
||||||
|
nSmoothSurfaceNormals 1;
|
||||||
|
nSmoothNormals 3;
|
||||||
|
nSmoothThickness 10;
|
||||||
|
maxFaceThicknessRatio 0.5;
|
||||||
|
maxThicknessToMedialRatio 0.3;
|
||||||
|
|
||||||
|
minMedialAxisAngle 90;
|
||||||
|
nMedialAxisIter 10;
|
||||||
|
|
||||||
|
nBufferCellsNoExtrude 0;
|
||||||
|
additionalReporting false;
|
||||||
|
// nSmoothDisplacement 0;
|
||||||
|
// detectExtrusionIsland false;
|
||||||
|
}
|
||||||
|
|
||||||
|
meshQualityControls
|
||||||
|
{
|
||||||
|
#include "${FOAM_CASE}/system/meshQualityDict"
|
||||||
|
}
|
||||||
|
|
||||||
|
debug 0;
|
||||||
|
mergeTolerance 1e-6;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
40
etc/caseDicts/mesh/manipulation/refineRegion/refineMeshDict
Normal file
40
etc/caseDicts/mesh/manipulation/refineRegion/refineMeshDict
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object refineMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
set c0;
|
||||||
|
|
||||||
|
coordinateSystem global;
|
||||||
|
|
||||||
|
globalCoeffs
|
||||||
|
{
|
||||||
|
tan1 ( 1 0 0 );
|
||||||
|
tan2 ( 0 1 0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
directions // comment out as required
|
||||||
|
(
|
||||||
|
tan1
|
||||||
|
tan2
|
||||||
|
normal
|
||||||
|
);
|
||||||
|
|
||||||
|
useHexTopology no;
|
||||||
|
|
||||||
|
geometricCut yes;
|
||||||
|
|
||||||
|
writeMesh no;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
31
etc/caseDicts/mesh/manipulation/refineRegion/topoSetDict
Normal file
31
etc/caseDicts/mesh/manipulation/refineRegion/topoSetDict
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object topoSetDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
actions
|
||||||
|
(
|
||||||
|
{
|
||||||
|
name c0;
|
||||||
|
type cellSet;
|
||||||
|
action new;
|
||||||
|
source boxToCell;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
box (-1 -1 -1) (1 1 1); // Edit box bounds as required
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
52
etc/caseDicts/postProcessing/README
Normal file
52
etc/caseDicts/postProcessing/README
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
Overview
|
||||||
|
========
|
||||||
|
- This directory contains files to help post-processing of OpenFOAM cases
|
||||||
|
- It primariy "packages" functionObject functionality in a convenient form for
|
||||||
|
users to plug into their OpenFOAM cases
|
||||||
|
- While some tools are quite generic, e.g. minMax, others are more application-
|
||||||
|
oriented, e.g. flowRate.
|
||||||
|
|
||||||
|
How the tools work
|
||||||
|
==================
|
||||||
|
- The configuration of functionObjects includes both required input data and
|
||||||
|
control parameters for the functionObject
|
||||||
|
- This creates a lot of input that can be confusing to users
|
||||||
|
- The tools here are packaged so that the user input is separated from control
|
||||||
|
parameters
|
||||||
|
- Control parameters are pre-configured in .cfg files - users can ignore these
|
||||||
|
files
|
||||||
|
- For each tool, required user input is all in one file, for the users to copy
|
||||||
|
into their case and set accordingly
|
||||||
|
|
||||||
|
Example of how to use the tools
|
||||||
|
===============================
|
||||||
|
Task: monitor flow rate at an outlet patch named "outlet" for a case
|
||||||
|
Solution:
|
||||||
|
- locate the flowRatePatch tool in the flowRate directory
|
||||||
|
- copy the flowRatePatch file into the case system directory (not
|
||||||
|
flowRatePatch.cfg)
|
||||||
|
- edit system/flowRatePatch to set the patch name
|
||||||
|
replace "patch <patchName>;"
|
||||||
|
with "patch outlet;"
|
||||||
|
- activate the function object by including the flowRatePatch file in functions
|
||||||
|
sub-dictionary in the case controlDict file, e.g.
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
#include "flowRatePatch"
|
||||||
|
... other function objects here ...
|
||||||
|
}
|
||||||
|
|
||||||
|
Current tools
|
||||||
|
=============
|
||||||
|
- fields calculate specific fields, e.g. Q
|
||||||
|
- flowRate tools to calculate flow rate
|
||||||
|
- forces forces and forceCoeffs for incompressible/compressible flows
|
||||||
|
- graphs simple sampling for graph plotting, e.g. singleGraph
|
||||||
|
- minMax range of minimum and maximum field monitoring, e.g. cellMax
|
||||||
|
- numerical outputs information relating to numerics, e.g. residuals
|
||||||
|
- pressure calculates different forms of pressure, pressure drop, etc
|
||||||
|
- probes options for probing data
|
||||||
|
- scalarTransport for plugin scalar transport calculations
|
||||||
|
- visualization post-processing VTK files for cutting planes, streamlines,...
|
||||||
|
|
||||||
|
- faceSource configuration for some of the tools above
|
||||||
27
etc/caseDicts/postProcessing/faceSource/faceSource.cfg
Normal file
27
etc/caseDicts/postProcessing/faceSource/faceSource.cfg
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceSource.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type faceSource;
|
||||||
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
valueOutput false;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
21
etc/caseDicts/postProcessing/faceSource/faceZoneSource.cfg
Normal file
21
etc/caseDicts/postProcessing/faceSource/faceZoneSource.cfg
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceZoneSource.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||||
|
|
||||||
|
source faceZone;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/faceSource/patchSource.cfg
Normal file
22
etc/caseDicts/postProcessing/faceSource/patchSource.cfg
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object patchSource.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||||
|
|
||||||
|
source patch;
|
||||||
|
sourceName $patch;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
29
etc/caseDicts/postProcessing/faceSource/surfaceSource.cfg
Normal file
29
etc/caseDicts/postProcessing/faceSource/surfaceSource.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object surfaceSource.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||||
|
|
||||||
|
source sampledSurface;
|
||||||
|
|
||||||
|
sampledSurfaceDict
|
||||||
|
{
|
||||||
|
type sampledTriSurfaceMesh;
|
||||||
|
surface $triSurface;
|
||||||
|
source cells;
|
||||||
|
interpolate true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/fields/Lambda2
Normal file
22
etc/caseDicts/postProcessing/fields/Lambda2
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object Lambda2.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Lambda2
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/fields/Lambda2.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
23
etc/caseDicts/postProcessing/fields/Lambda2.cfg
Normal file
23
etc/caseDicts/postProcessing/fields/Lambda2.cfg
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object Lambda2.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type Lambda2;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/fields/Q
Normal file
22
etc/caseDicts/postProcessing/fields/Q
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object Q.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Q
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/fields/Q.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
23
etc/caseDicts/postProcessing/fields/Q.cfg
Normal file
23
etc/caseDicts/postProcessing/fields/Q.cfg
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object Q.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type Q;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/flowRate/flowRatePatch
Normal file
28
etc/caseDicts/postProcessing/flowRate/flowRatePatch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object flowRatePatch;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// This packaged function object sums the flux phi on patch faces so the
|
||||||
|
// calculated volume flow rate for solvers where phi = volumetric flux, and
|
||||||
|
// mass flow rate for solvers where phi = mass flux.
|
||||||
|
|
||||||
|
flowRatePatch
|
||||||
|
{
|
||||||
|
patch <patchName>;
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/flowRate/flowRatePatch.cfg
Normal file
22
etc/caseDicts/postProcessing/flowRate/flowRatePatch.cfg
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object flowRatePatch.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/patchSource.cfg"
|
||||||
|
|
||||||
|
fields (phi);
|
||||||
|
operation sum;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/flowRate/volFlowRateSurface
Normal file
28
etc/caseDicts/postProcessing/flowRate/volFlowRateSurface
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object volFlowRateSurface;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// This packaged function object interpolates velocity U onto triangles in
|
||||||
|
// triSurface file and integrates over the surface area. Triangles need to
|
||||||
|
// be small (<= cell size) for an accurate integration.
|
||||||
|
|
||||||
|
volFlowRateSurface
|
||||||
|
{
|
||||||
|
triSurface <triSurfaceFile>;
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg
Normal file
22
etc/caseDicts/postProcessing/flowRate/volFlowRateSurface.cfg
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object volFlowRateSurface.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/surfaceSource.cfg"
|
||||||
|
|
||||||
|
fields (U);
|
||||||
|
operation areaNormalIntegrate;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
22
etc/caseDicts/postProcessing/forces/forceCoeffs.cfg
Normal file
22
etc/caseDicts/postProcessing/forces/forceCoeffs.cfg
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forceCoeffs.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||||
|
|
||||||
|
type forceCoeffs;
|
||||||
|
rhoInf 1; // Redundant for incompressible
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
35
etc/caseDicts/postProcessing/forces/forceCoeffsCompressible
Normal file
35
etc/caseDicts/postProcessing/forces/forceCoeffsCompressible
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forceCoeffsCompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
forceCoeffs
|
||||||
|
{
|
||||||
|
patches ( patch1 patch2 );
|
||||||
|
|
||||||
|
magUInf 20;
|
||||||
|
rhoInf 1.225;
|
||||||
|
lRef 1;
|
||||||
|
Aref 1;
|
||||||
|
|
||||||
|
liftDir (0 0 1);
|
||||||
|
dragDir (1 0 0);
|
||||||
|
|
||||||
|
CofR (0 0 0);
|
||||||
|
pitchAxis (0 1 0);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forceCoeffsCompressible.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forceCoeffsCompressible.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg"
|
||||||
|
rhoName rho;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forceCoeffsIncompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
forceCoeffs
|
||||||
|
{
|
||||||
|
patches ( patch1 patch2 );
|
||||||
|
|
||||||
|
magUInf 20;
|
||||||
|
lRef 1;
|
||||||
|
Aref 1;
|
||||||
|
|
||||||
|
liftDir (0 0 1);
|
||||||
|
dragDir (1 0 0);
|
||||||
|
|
||||||
|
CofR (0 0 0);
|
||||||
|
pitchAxis (0 1 0);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forceCoeffs.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
29
etc/caseDicts/postProcessing/forces/forces.cfg
Normal file
29
etc/caseDicts/postProcessing/forces/forces.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forces.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type forces;
|
||||||
|
functionObjectLibs ( "libforces.so" );
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
outputInterval 1;
|
||||||
|
|
||||||
|
pName p;
|
||||||
|
UName U;
|
||||||
|
rhoName rhoInf; // Incompressible solver
|
||||||
|
log off;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
27
etc/caseDicts/postProcessing/forces/forcesCompressible
Normal file
27
etc/caseDicts/postProcessing/forces/forcesCompressible
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forcesCompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
forces
|
||||||
|
{
|
||||||
|
patches ( patch1 patch2 );
|
||||||
|
|
||||||
|
CofR (0 0 0);
|
||||||
|
pitchAxis (0 1 0);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forcesCompressible.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
21
etc/caseDicts/postProcessing/forces/forcesCompressible.cfg
Normal file
21
etc/caseDicts/postProcessing/forces/forcesCompressible.cfg
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forcesCompressible.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||||
|
rhoName rho;
|
||||||
|
rhoInf 1; // Redundant
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/forces/forcesIncompressible
Normal file
28
etc/caseDicts/postProcessing/forces/forcesIncompressible
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object forcesIncompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
forces
|
||||||
|
{
|
||||||
|
rhoInf 1.225; // Fluid density
|
||||||
|
patches ( patch1 patch2 );
|
||||||
|
|
||||||
|
CofR (0 0 0);
|
||||||
|
pitchAxis (0 1 0);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
33
etc/caseDicts/postProcessing/graphs/graph.cfg
Normal file
33
etc/caseDicts/postProcessing/graphs/graph.cfg
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object graph.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type sets;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
sets
|
||||||
|
(
|
||||||
|
line
|
||||||
|
{
|
||||||
|
$setConfig;
|
||||||
|
start $start;
|
||||||
|
end $end;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
31
etc/caseDicts/postProcessing/graphs/sampleDict
Normal file
31
etc/caseDicts/postProcessing/graphs/sampleDict
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object sampleDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||||
|
|
||||||
|
sets
|
||||||
|
(
|
||||||
|
graph
|
||||||
|
{
|
||||||
|
$:setConfig;
|
||||||
|
start (0 1e-6 0);
|
||||||
|
end (1 1e-6 0);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/graphs/sampleDict.cfg
Normal file
28
etc/caseDicts/postProcessing/graphs/sampleDict.cfg
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object sampleDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
|
setFormat raw;
|
||||||
|
|
||||||
|
setConfig
|
||||||
|
{
|
||||||
|
type uniform;
|
||||||
|
axis distance;
|
||||||
|
nPoints 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
29
etc/caseDicts/postProcessing/graphs/singleGraph
Normal file
29
etc/caseDicts/postProcessing/graphs/singleGraph
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object graph;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
graph
|
||||||
|
{
|
||||||
|
start (0 1e-06 0);
|
||||||
|
end (1 1e-06 0);
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
|
||||||
|
|
||||||
|
// Must be last entry
|
||||||
|
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/cellMax
Normal file
24
etc/caseDicts/postProcessing/minMax/cellMax
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object cellMax;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
cellMax
|
||||||
|
{
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/cellMin
Normal file
24
etc/caseDicts/postProcessing/minMax/cellMin
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object cellMin;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
cellMin
|
||||||
|
{
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/cellMin.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
20
etc/caseDicts/postProcessing/minMax/cellMin.cfg
Normal file
20
etc/caseDicts/postProcessing/minMax/cellMin.cfg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object cellMin.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/cellMinMax.cfg"
|
||||||
|
operation min;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
30
etc/caseDicts/postProcessing/minMax/cellMinMax.cfg
Normal file
30
etc/caseDicts/postProcessing/minMax/cellMinMax.cfg
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object cellMinMax.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type cellSource;
|
||||||
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
valueOutput false;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
source all;
|
||||||
|
operation max;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/faceMax
Normal file
24
etc/caseDicts/postProcessing/minMax/faceMax
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceMax;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
faceMax
|
||||||
|
{
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/faceMin
Normal file
24
etc/caseDicts/postProcessing/minMax/faceMin
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceMin;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
faceMin
|
||||||
|
{
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/faceMin.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
20
etc/caseDicts/postProcessing/minMax/faceMin.cfg
Normal file
20
etc/caseDicts/postProcessing/minMax/faceMin.cfg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceMin.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/faceMinMax.cfg"
|
||||||
|
operation min;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
30
etc/caseDicts/postProcessing/minMax/faceMinMax.cfg
Normal file
30
etc/caseDicts/postProcessing/minMax/faceMinMax.cfg
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object faceMinMax.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type faceSource;
|
||||||
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
valueOutput false;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
source all;
|
||||||
|
operation max;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
29
etc/caseDicts/postProcessing/minMax/fieldMinMax.cfg
Normal file
29
etc/caseDicts/postProcessing/minMax/fieldMinMax.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object fieldMinMax.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type fieldMinMax;
|
||||||
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
write true;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
mode magnitude;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/minMaxComponents
Normal file
24
etc/caseDicts/postProcessing/minMax/minMaxComponents
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object minMaxComponents;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
minMaxComponents
|
||||||
|
{
|
||||||
|
mode components;
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/minMaxComponents.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
20
etc/caseDicts/postProcessing/minMax/minMaxComponents.cfg
Normal file
20
etc/caseDicts/postProcessing/minMax/minMaxComponents.cfg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object minMaxComponents.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
|
||||||
|
mode components;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/minMax/minMaxMagnitude
Normal file
24
etc/caseDicts/postProcessing/minMax/minMaxMagnitude
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object minMaxMagnitude;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
minMaxMagnitude
|
||||||
|
{
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/minMax/fieldMinMax.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/numerical/residuals
Normal file
24
etc/caseDicts/postProcessing/numerical/residuals
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object residuals;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
residuals
|
||||||
|
{
|
||||||
|
fields ( p U );
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/numerical/residuals.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/numerical/residuals.cfg
Normal file
24
etc/caseDicts/postProcessing/numerical/residuals.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object residuals.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type residuals;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
outputInterval 1;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
40
etc/caseDicts/postProcessing/pressure/pressureDifference.cfg
Normal file
40
etc/caseDicts/postProcessing/pressure/pressureDifference.cfg
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureDifference.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type fieldValueDelta;
|
||||||
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||||
|
|
||||||
|
operation subtract;
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1
|
||||||
|
log false;
|
||||||
|
|
||||||
|
source1
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||||
|
operation areaAverage;
|
||||||
|
fields ( p );
|
||||||
|
}
|
||||||
|
source2
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/faceSource/faceSource.cfg"
|
||||||
|
operation areaAverage;
|
||||||
|
fields ( p );
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureDifferencePatch;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
pressureDifferencePatch
|
||||||
|
{
|
||||||
|
patch1 <patch1>;
|
||||||
|
patch2 <patch2>;
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureDifferencePatch.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureDifferencePatch.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureDifference.cfg"
|
||||||
|
|
||||||
|
source1
|
||||||
|
{
|
||||||
|
source patch;
|
||||||
|
sourceName $patch1;
|
||||||
|
}
|
||||||
|
source2
|
||||||
|
{
|
||||||
|
source patch;
|
||||||
|
sourceName $patch2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureDifferenceSurface;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
pressureDifferenceSurface
|
||||||
|
{
|
||||||
|
triSurface1 <triSurface1>;
|
||||||
|
triSurface2 <triSurface2>;
|
||||||
|
|
||||||
|
#includeEtc
|
||||||
|
"caseDicts/postProcessing/pressure/pressureDifferenceSurface.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureDifferenceSurface.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureDifference.cfg"
|
||||||
|
|
||||||
|
source1
|
||||||
|
{
|
||||||
|
source sampledSurface;
|
||||||
|
|
||||||
|
sampledSurfaceDict
|
||||||
|
{
|
||||||
|
type sampledTriSurfaceMesh;
|
||||||
|
source cells;
|
||||||
|
interpolate true;
|
||||||
|
surface $triSurface1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
source2
|
||||||
|
{
|
||||||
|
$source1;
|
||||||
|
sampledSurfaceDict
|
||||||
|
{
|
||||||
|
surface $triSurface2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/pressure/pressureTools.cfg
Normal file
24
etc/caseDicts/postProcessing/pressure/pressureTools.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object pressureTools.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type pressureTools;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/pressure/staticPressure
Normal file
24
etc/caseDicts/postProcessing/pressure/staticPressure
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object staticPressure;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
staticPressure
|
||||||
|
{
|
||||||
|
rho 1.2; // Density to scale
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/staticPressure.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/pressure/staticPressure.cfg
Normal file
24
etc/caseDicts/postProcessing/pressure/staticPressure.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object staticPressure.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureTools.cfg"
|
||||||
|
|
||||||
|
calcTotal no;
|
||||||
|
calcCoeff no;
|
||||||
|
rhoName rhoInf;
|
||||||
|
rhoInf $rho;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object totalPressureCompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
totalPressure
|
||||||
|
{
|
||||||
|
pRef 0.0;
|
||||||
|
|
||||||
|
#includeEtc
|
||||||
|
"caseDicts/postProcessing/pressure/totalPressureCompressible.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object totalPressureCompressible.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureTools.cfg"
|
||||||
|
|
||||||
|
calcTotal no;
|
||||||
|
calcCoeff no;
|
||||||
|
rhoName rho;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object totalPressureIncompressible;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
totalPressure
|
||||||
|
{
|
||||||
|
pRef 0.0;
|
||||||
|
rho 1.2;
|
||||||
|
|
||||||
|
#includeEtc
|
||||||
|
"caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object totalPressureIncompressible.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/pressure/pressureTools.cfg"
|
||||||
|
|
||||||
|
calcTotal yes;
|
||||||
|
calcCoeff no;
|
||||||
|
rhoName rhoInf;
|
||||||
|
rhoInf $rho;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
33
etc/caseDicts/postProcessing/probes/boundaryCloud
Normal file
33
etc/caseDicts/postProcessing/probes/boundaryCloud
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object boundaryCloud;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
boundaryCloud
|
||||||
|
{
|
||||||
|
fields ( p U );
|
||||||
|
|
||||||
|
points
|
||||||
|
(
|
||||||
|
(0 0 0)
|
||||||
|
);
|
||||||
|
|
||||||
|
maxDistance 0.1;
|
||||||
|
|
||||||
|
patches (".*");
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/probes/boundaryCloud.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
31
etc/caseDicts/postProcessing/probes/boundaryCloud.cfg
Normal file
31
etc/caseDicts/postProcessing/probes/boundaryCloud.cfg
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object boundaryCloud.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/probes/cloud.cfg"
|
||||||
|
|
||||||
|
sets
|
||||||
|
(
|
||||||
|
cloud
|
||||||
|
{
|
||||||
|
type patchCloud;
|
||||||
|
axis xyz;
|
||||||
|
points $points;
|
||||||
|
maxDistance $maxDistance;
|
||||||
|
patches $patches;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
23
etc/caseDicts/postProcessing/probes/cloud.cfg
Normal file
23
etc/caseDicts/postProcessing/probes/cloud.cfg
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object cloud.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type sets;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/probes/internalCloud
Normal file
28
etc/caseDicts/postProcessing/probes/internalCloud
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object internalCloud;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
internalCloud
|
||||||
|
{
|
||||||
|
fields ( p U );
|
||||||
|
points
|
||||||
|
(
|
||||||
|
(0 0 0)
|
||||||
|
);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/probes/internalCloud.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
29
etc/caseDicts/postProcessing/probes/internalCloud.cfg
Normal file
29
etc/caseDicts/postProcessing/probes/internalCloud.cfg
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object internalCloud.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/probes/cloud.cfg"
|
||||||
|
|
||||||
|
sets
|
||||||
|
(
|
||||||
|
cloud
|
||||||
|
{
|
||||||
|
type cloud;
|
||||||
|
axis xyz;
|
||||||
|
points $points;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/probes/probes
Normal file
28
etc/caseDicts/postProcessing/probes/probes
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object probes;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
probes
|
||||||
|
{
|
||||||
|
fields ( p U );
|
||||||
|
probeLocations
|
||||||
|
(
|
||||||
|
(0 0 0)
|
||||||
|
);
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/probes/probes.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
24
etc/caseDicts/postProcessing/probes/probes.cfg
Normal file
24
etc/caseDicts/postProcessing/probes/probes.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object probes.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type probes;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
outputInterval 1;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
40
etc/caseDicts/postProcessing/scalarTransport/T
Normal file
40
etc/caseDicts/postProcessing/scalarTransport/T
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- 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 volScalarField;
|
||||||
|
object T;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Tinlet 1;
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0]; // T can represent any scalar
|
||||||
|
// with any dimensional units
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
inlet
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform $Tinlet;
|
||||||
|
}
|
||||||
|
|
||||||
|
".*"
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
25
etc/caseDicts/postProcessing/scalarTransport/scalarTransport
Normal file
25
etc/caseDicts/postProcessing/scalarTransport/scalarTransport
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object scalarTransport.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
T
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransport.cfg"
|
||||||
|
|
||||||
|
userDT true;
|
||||||
|
DT 1e-09;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object scalarTransport.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type scalarTransport;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl timeStep;
|
||||||
|
writeInterval 1;
|
||||||
|
|
||||||
|
write true;
|
||||||
|
log false;
|
||||||
|
|
||||||
|
resetOnStartUp false;
|
||||||
|
autoSchemes true;
|
||||||
|
fvOptions {};
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object scalarTransportDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// controlDict settings
|
||||||
|
startTime 0;
|
||||||
|
|
||||||
|
stopAt endTime;
|
||||||
|
endTime 1;
|
||||||
|
|
||||||
|
deltaT 1e-4;
|
||||||
|
|
||||||
|
writeControl runTime;
|
||||||
|
writeInterval 1e-2;
|
||||||
|
|
||||||
|
// transportProperties settings
|
||||||
|
DT DT [ 0 2 -1 0 0 0 0 ] 1e-9;
|
||||||
|
|
||||||
|
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransportDict.cfg"
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object scalarTransportDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// fvSchemes settings
|
||||||
|
ddtSchemes
|
||||||
|
{
|
||||||
|
default Euler;
|
||||||
|
}
|
||||||
|
divSchemes
|
||||||
|
{
|
||||||
|
div(phi,T) Gauss limitedLinear 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// fvSolution settings
|
||||||
|
solvers
|
||||||
|
{
|
||||||
|
T
|
||||||
|
{
|
||||||
|
solver smoothSolver;
|
||||||
|
smoother symGaussSeidel;
|
||||||
|
tolerance 1e-6;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
fields
|
||||||
|
{
|
||||||
|
}
|
||||||
|
equations
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
28
etc/caseDicts/postProcessing/visualization/streamlines
Normal file
28
etc/caseDicts/postProcessing/visualization/streamlines
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object streamlines.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
streamlines
|
||||||
|
{
|
||||||
|
nLines 20;
|
||||||
|
start (0 -4 1e-06); // Ensure that points do not coincide with
|
||||||
|
end (0 4 1e-06); // mesh faces, but instead lie inside cells
|
||||||
|
fields ( U p );
|
||||||
|
|
||||||
|
// Must be last entry
|
||||||
|
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
40
etc/caseDicts/postProcessing/visualization/streamlines.cfg
Normal file
40
etc/caseDicts/postProcessing/visualization/streamlines.cfg
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object streamlines.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type streamLine;
|
||||||
|
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||||
|
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
setFormat vtk;
|
||||||
|
UName U;
|
||||||
|
trackForward true;
|
||||||
|
|
||||||
|
lifeTime 10000;
|
||||||
|
nSubCycle 5;
|
||||||
|
|
||||||
|
cloudName particleTracks;
|
||||||
|
seedSampleSet uniform;
|
||||||
|
uniformCoeffs
|
||||||
|
{
|
||||||
|
type uniform;
|
||||||
|
axis x;
|
||||||
|
start $start;
|
||||||
|
end $end;
|
||||||
|
nPoints $nLines;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
64
etc/caseDicts/postProcessing/visualization/surfaces
Normal file
64
etc/caseDicts/postProcessing/visualization/surfaces
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object surfaces.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
surfaces
|
||||||
|
{
|
||||||
|
#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"
|
||||||
|
|
||||||
|
fields ( p U );
|
||||||
|
|
||||||
|
surfaces
|
||||||
|
(
|
||||||
|
xNormal
|
||||||
|
{
|
||||||
|
$cuttingPlane;
|
||||||
|
}
|
||||||
|
|
||||||
|
yNormal
|
||||||
|
{
|
||||||
|
$cuttingPlane;
|
||||||
|
pointAndNormalDict
|
||||||
|
{
|
||||||
|
normalVector $y; // Overrides default normalVector (1 0 0)
|
||||||
|
} // $y: macro for (0 1 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
zNormal
|
||||||
|
{
|
||||||
|
$cuttingPlane;
|
||||||
|
pointAndNormalDict
|
||||||
|
{
|
||||||
|
basePoint (0 0 2); // Overrides default basePoint (0 0 0)
|
||||||
|
normalVector $z; // $y: macro for (0 0 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p100
|
||||||
|
{
|
||||||
|
$isosurface;
|
||||||
|
isoField p;
|
||||||
|
isoValue 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
CAD
|
||||||
|
{
|
||||||
|
$patchSurface;
|
||||||
|
patches ( CAD );
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
55
etc/caseDicts/postProcessing/visualization/surfaces.cfg
Normal file
55
etc/caseDicts/postProcessing/visualization/surfaces.cfg
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object surfaces.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
type surfaces;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
|
||||||
|
enabled true;
|
||||||
|
outputControl outputTime;
|
||||||
|
|
||||||
|
surfaceFormat vtk;
|
||||||
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
|
x (1 0 0);
|
||||||
|
y (0 1 0);
|
||||||
|
z (0 0 1);
|
||||||
|
origin (0 0 0);
|
||||||
|
|
||||||
|
cuttingPlane
|
||||||
|
{
|
||||||
|
type cuttingPlane;
|
||||||
|
planeType pointAndNormal;
|
||||||
|
pointAndNormalDict
|
||||||
|
{
|
||||||
|
basePoint $origin;
|
||||||
|
normalVector $x;
|
||||||
|
}
|
||||||
|
interpolate true;
|
||||||
|
}
|
||||||
|
|
||||||
|
isosurface
|
||||||
|
{
|
||||||
|
type isoSurface;
|
||||||
|
interpolate true;
|
||||||
|
}
|
||||||
|
|
||||||
|
patchSurface
|
||||||
|
{
|
||||||
|
type patch;
|
||||||
|
interpolate true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
33
etc/caseDicts/surface/surfaceFeatureExtractDict.cfg
Normal file
33
etc/caseDicts/surface/surfaceFeatureExtractDict.cfg
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object surfaceFeatureExtractDict.cfg;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
extractionMethod extractFromSurface;
|
||||||
|
|
||||||
|
extractFromSurfaceCoeffs
|
||||||
|
{
|
||||||
|
includedAngle 150;
|
||||||
|
geometricTestOnly no;
|
||||||
|
}
|
||||||
|
|
||||||
|
subsetFeatures
|
||||||
|
{
|
||||||
|
nonManifoldEdges yes;
|
||||||
|
openEdges yes;
|
||||||
|
}
|
||||||
|
|
||||||
|
writeObj yes;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -21,6 +21,9 @@ dsmcFields/dsmcFieldsFunctionObject.C
|
|||||||
pressureTools/pressureTools.C
|
pressureTools/pressureTools.C
|
||||||
pressureTools/pressureToolsFunctionObject.C
|
pressureTools/pressureToolsFunctionObject.C
|
||||||
|
|
||||||
|
residuals/residuals.C
|
||||||
|
residuals/residualsFunctionObject.C
|
||||||
|
|
||||||
scalarTransport/scalarTransport.C
|
scalarTransport/scalarTransport.C
|
||||||
scalarTransport/scalarTransportFunctionObject.C
|
scalarTransport/scalarTransportFunctionObject.C
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,49 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::IOresiduals
|
||||||
|
|
||||||
|
Description
|
||||||
|
Instance of the generic IOOutputFilter for residuals.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef IOresiduals_H
|
||||||
|
#define IOresiduals_H
|
||||||
|
|
||||||
|
#include "residuals.H"
|
||||||
|
#include "IOOutputFilter.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
typedef IOOutputFilter<residuals> IOresiduals;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,153 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "residuals.H"
|
||||||
|
#include "volFields.H"
|
||||||
|
#include "dictionary.H"
|
||||||
|
#include "Time.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineTypeNameAndDebug(residuals, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::residuals::residuals
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const objectRegistry& obr,
|
||||||
|
const dictionary& dict,
|
||||||
|
const bool loadFromFiles
|
||||||
|
)
|
||||||
|
:
|
||||||
|
functionObjectFile(obr, name, typeName),
|
||||||
|
name_(name),
|
||||||
|
obr_(obr),
|
||||||
|
active_(true),
|
||||||
|
fieldSet_()
|
||||||
|
{
|
||||||
|
// Check if the available mesh is an fvMesh otherwise deactivate
|
||||||
|
if (!isA<fvMesh>(obr_))
|
||||||
|
{
|
||||||
|
active_ = false;
|
||||||
|
WarningIn
|
||||||
|
(
|
||||||
|
"residuals::residuals"
|
||||||
|
"("
|
||||||
|
"const word&, "
|
||||||
|
"const objectRegistry&, "
|
||||||
|
"const dictionary&, "
|
||||||
|
"const bool"
|
||||||
|
")"
|
||||||
|
) << "No fvMesh available, deactivating " << name_
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
read(dict);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Foam::residuals::~residuals()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void Foam::residuals::read(const dictionary& dict)
|
||||||
|
{
|
||||||
|
if (active_)
|
||||||
|
{
|
||||||
|
dict.lookup("fields") >> fieldSet_;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::residuals::writeFileHeader(const label i)
|
||||||
|
{
|
||||||
|
if (Pstream::master())
|
||||||
|
{
|
||||||
|
writeHeader(file(), "Residuals");
|
||||||
|
writeCommented(file(), "Time");
|
||||||
|
|
||||||
|
forAll(fieldSet_, fieldI)
|
||||||
|
{
|
||||||
|
writeTabbed(file(), fieldSet_[fieldI]);
|
||||||
|
}
|
||||||
|
|
||||||
|
file() << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::residuals::execute()
|
||||||
|
{
|
||||||
|
// Do nothing - only valid on write
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::residuals::end()
|
||||||
|
{
|
||||||
|
// Do nothing - only valid on write
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::residuals::timeSet()
|
||||||
|
{
|
||||||
|
// Do nothing - only valid on write
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::residuals::write()
|
||||||
|
{
|
||||||
|
if (active_)
|
||||||
|
{
|
||||||
|
functionObjectFile::write();
|
||||||
|
|
||||||
|
if (Pstream::master())
|
||||||
|
{
|
||||||
|
file()<< obr_.time().value();
|
||||||
|
|
||||||
|
forAll(fieldSet_, fieldI)
|
||||||
|
{
|
||||||
|
const word& fieldName = fieldSet_[fieldI];
|
||||||
|
|
||||||
|
writeResidual<scalar>(fieldName);
|
||||||
|
writeResidual<vector>(fieldName);
|
||||||
|
writeResidual<sphericalTensor>(fieldName);
|
||||||
|
writeResidual<symmTensor>(fieldName);
|
||||||
|
writeResidual<tensor>(fieldName);
|
||||||
|
}
|
||||||
|
|
||||||
|
file() << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,196 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Class
|
||||||
|
Foam::residuals
|
||||||
|
|
||||||
|
Group
|
||||||
|
grpUtilitiesFunctionObjects
|
||||||
|
|
||||||
|
Description
|
||||||
|
This function object writes out the initial residual for specified fields.
|
||||||
|
|
||||||
|
Example of function object specification:
|
||||||
|
\verbatim
|
||||||
|
residuals
|
||||||
|
{
|
||||||
|
type residuals;
|
||||||
|
outputControl timeStep;
|
||||||
|
outputInterval 1;
|
||||||
|
fields
|
||||||
|
(
|
||||||
|
U
|
||||||
|
p
|
||||||
|
);
|
||||||
|
}
|
||||||
|
\endverbatim
|
||||||
|
|
||||||
|
Output data is written to the dir postProcessing/residuals/\<timeDir\>/
|
||||||
|
For vector/tensor fields, e.g. U, where an equation is solved for each
|
||||||
|
component, the largest residual of each component is written out.
|
||||||
|
|
||||||
|
SeeAlso
|
||||||
|
Foam::functionObject
|
||||||
|
Foam::OutputFilterFunctionObject
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
residuals.C
|
||||||
|
IOresiduals.H
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef residuals_H
|
||||||
|
#define residuals_H
|
||||||
|
|
||||||
|
#include "functionObjectFile.H"
|
||||||
|
#include "primitiveFieldsFwd.H"
|
||||||
|
#include "volFieldsFwd.H"
|
||||||
|
#include "HashSet.H"
|
||||||
|
#include "OFstream.H"
|
||||||
|
#include "Switch.H"
|
||||||
|
#include "NamedEnum.H"
|
||||||
|
#include "solverPerformance.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
// Forward declaration of classes
|
||||||
|
class objectRegistry;
|
||||||
|
class dictionary;
|
||||||
|
class polyMesh;
|
||||||
|
class mapPolyMesh;
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
Class residuals Declaration
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
class residuals
|
||||||
|
:
|
||||||
|
public functionObjectFile
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
|
||||||
|
// Protected data
|
||||||
|
|
||||||
|
//- Name of this set of residuals
|
||||||
|
// Also used as the name of the output directory
|
||||||
|
word name_;
|
||||||
|
|
||||||
|
const objectRegistry& obr_;
|
||||||
|
|
||||||
|
//- on/off switch
|
||||||
|
bool active_;
|
||||||
|
|
||||||
|
//- Fields to write residuals
|
||||||
|
wordList fieldSet_;
|
||||||
|
|
||||||
|
|
||||||
|
// Private Member Functions
|
||||||
|
|
||||||
|
//- Disallow default bitwise copy construct
|
||||||
|
residuals(const residuals&);
|
||||||
|
|
||||||
|
//- Disallow default bitwise assignment
|
||||||
|
void operator=(const residuals&);
|
||||||
|
|
||||||
|
//- Output file header information
|
||||||
|
virtual void writeFileHeader(const label i);
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
//- Runtime type information
|
||||||
|
TypeName("residuals");
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct for given objectRegistry and dictionary.
|
||||||
|
// Allow the possibility to load fields from files
|
||||||
|
residuals
|
||||||
|
(
|
||||||
|
const word& name,
|
||||||
|
const objectRegistry&,
|
||||||
|
const dictionary&,
|
||||||
|
const bool loadFromFiles = false
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//- Destructor
|
||||||
|
virtual ~residuals();
|
||||||
|
|
||||||
|
|
||||||
|
// Member Functions
|
||||||
|
|
||||||
|
//- Return name of the set of field min/max
|
||||||
|
virtual const word& name() const
|
||||||
|
{
|
||||||
|
return name_;
|
||||||
|
}
|
||||||
|
|
||||||
|
//- Read the field min/max data
|
||||||
|
virtual void read(const dictionary&);
|
||||||
|
|
||||||
|
//- Execute, currently does nothing
|
||||||
|
virtual void execute();
|
||||||
|
|
||||||
|
//- Execute at the final time-loop, currently does nothing
|
||||||
|
virtual void end();
|
||||||
|
|
||||||
|
//- Called when time was set at the end of the Time::operator++
|
||||||
|
virtual void timeSet();
|
||||||
|
|
||||||
|
//- Calculate the field min/max
|
||||||
|
template<class Type>
|
||||||
|
void writeResidual(const word& fieldName);
|
||||||
|
|
||||||
|
//- Write the residuals
|
||||||
|
virtual void write();
|
||||||
|
|
||||||
|
//- Update for changes of mesh
|
||||||
|
virtual void updateMesh(const mapPolyMesh&)
|
||||||
|
{}
|
||||||
|
|
||||||
|
//- Update for changes of mesh
|
||||||
|
virtual void movePoints(const polyMesh&)
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#ifdef NoRepository
|
||||||
|
# include "residualsTemplates.C"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "residualsFunctionObject.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineNamedTemplateTypeNameAndDebug(residualsFunctionObject, 0);
|
||||||
|
|
||||||
|
addToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
functionObject,
|
||||||
|
residualsFunctionObject,
|
||||||
|
dictionary
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,54 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Typedef
|
||||||
|
Foam::residualsFunctionObject
|
||||||
|
|
||||||
|
Description
|
||||||
|
FunctionObject wrapper around residuals to allow them to be created via
|
||||||
|
the functions entry within controlDict.
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
residualsFunctionObject.C
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef residualsFunctionObject_H
|
||||||
|
#define residualsFunctionObject_H
|
||||||
|
|
||||||
|
#include "residuals.H"
|
||||||
|
#include "OutputFilterFunctionObject.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
typedef OutputFilterFunctionObject<residuals>
|
||||||
|
residualsFunctionObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,58 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "residuals.H"
|
||||||
|
#include "volFields.H"
|
||||||
|
#include "dictionary.H"
|
||||||
|
#include "Time.H"
|
||||||
|
#include "ListOps.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
void Foam::residuals::writeResidual
|
||||||
|
(
|
||||||
|
const word& fieldName
|
||||||
|
)
|
||||||
|
{
|
||||||
|
typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
|
||||||
|
|
||||||
|
if (obr_.foundObject<fieldType>(fieldName))
|
||||||
|
{
|
||||||
|
const fieldType& field = obr_.lookupObject<fieldType>(fieldName);
|
||||||
|
const fvMesh& mesh = field.mesh();
|
||||||
|
const Foam::dictionary& solverDict = mesh.solverPerformanceDict();
|
||||||
|
|
||||||
|
if (solverDict.found(fieldName))
|
||||||
|
{
|
||||||
|
const List<solverPerformance> sp(solverDict.lookup(fieldName));
|
||||||
|
const scalar residual = sp.first().initialResidual();
|
||||||
|
file() << token::TAB << residual;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user