TUT: update tutorials to use dictionary-style sets

- can now specify sampled sets as dictionary entries instead of a list
  entry.
    can now use:  sets { ... }
    instead of:   sets ( ... );

  This is similar to sampled surfaces and makes it easier to
  manage with dictionary manipulation tools.

TUT: update to use writeTime instead of outputTime
This commit is contained in:
Mark Olesen
2022-03-04 11:22:08 +01:00
parent 87db3ce4d4
commit 8a7221cf50
56 changed files with 234 additions and 239 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -78,7 +78,7 @@ fields
// uniform: extra number of sampling points // uniform: extra number of sampling points
// curve, cloud: list of coordinates // curve, cloud: list of coordinates
sets sets
( {
Centerline Centerline
{ {
type uniform; type uniform;
@ -143,7 +143,7 @@ sets
end (0.080 0 0.54); end (0.080 0 0.54);
nPoints 100; nPoints 100;
} }
); }
// Surface sampling definition: choice of // Surface sampling definition: choice of
@ -153,7 +153,7 @@ sets
// 1] patches are not triangulated by default // 1] patches are not triangulated by default
// 2] planes are always triangulated // 2] planes are always triangulated
// 3] iso-surfaces are always triangulated // 3] iso-surfaces are always triangulated
surfaces (); surfaces {}
// *********************************************************************** // // *********************************************************************** //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,10 +18,11 @@ type sets;
libs (sampling); libs (sampling);
interpolationScheme cellPointFace; interpolationScheme cellPointFace;
setFormat raw; setFormat raw;
fields ( p wallHeatTransRate ); fields ( p wallHeatTransRate );
sets sets
( {
cone25 cone25
{ {
type face; type face;
@ -46,7 +47,7 @@ sets
end (0.193675 0.13092 0); end (0.193675 0.13092 0);
nPoints 40; nPoints 40;
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -7,7 +7,7 @@ tracer0
log off; log off;
resetOnStartUp false; resetOnStartUp false;
// writeControl outputTime; // writeControl writeTime;
// writeInterval 1; // writeInterval 1;
field tracer0; field tracer0;
D 0.001; D 0.001;

View File

@ -24,7 +24,7 @@ __settings_avg
enabled true; enabled true;
executeControl timeStep; executeControl timeStep;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
// restart behaviour // restart behaviour

View File

@ -19,7 +19,7 @@ sampleSets
fields ( U ); fields ( U );
sets sets
( {
centres centres
{ {
type cellCentre; type cellCentre;
@ -28,7 +28,7 @@ sampleSets
// bounds (-0.2 -1 -1) (-0.195 0 1); // bounds (-0.2 -1 -1) (-0.195 0 1);
bounds (-0.025 -1 -1) (-0.0225 0 1); // single cell layer bounds (-0.025 -1 -1) (-0.0225 0 1); // single cell layer
} }
); }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,10 +18,11 @@ type sets;
libs (sampling); libs (sampling);
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fields (T mag(U) p); fields (T mag(U) p);
sets sets
( {
data data
{ {
type uniform; type uniform;
@ -30,7 +31,7 @@ sets
end (4.995 0 0); end (4.995 0 0);
nPoints 1000; nPoints 1000;
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,8 +21,10 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fields ( Ux );
sets sets
( {
line_centreProfile line_centreProfile
{ {
type uniform; type uniform;
@ -31,9 +33,6 @@ sets
end (10.001 1 0.01); end (10.001 1 0.01);
nPoints 100; nPoints 100;
} }
); }
fields ( Ux );
// ************************************************************************* // // ************************************************************************* //

View File

@ -55,7 +55,7 @@ functions
type heatTransferCoeff; type heatTransferCoeff;
libs (fieldFunctionObjects); libs (fieldFunctionObjects);
field T; field T;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
htcModel fixedReferenceTemperature; htcModel fixedReferenceTemperature;
patches (ceiling); patches (ceiling);

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,10 +18,11 @@ type sets;
libs (sampling); libs (sampling);
interpolationScheme cellPointFace; interpolationScheme cellPointFace;
setFormat raw; setFormat raw;
fields ( T U ); fields ( T U );
sets sets
( {
y0.1 y0.1
{ {
type face; type face;
@ -85,7 +86,7 @@ sets
start (-1 1.962 0); start (-1 1.962 0);
end (1 1.962 0); end (1 1.962 0);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -50,14 +50,14 @@ functions
{ {
type sets; type sets;
libs (sampling); libs (sampling);
writeControl outputTime; writeControl writeTime;
region solid; region solid;
fields (T jouleHeatingSource:V jouleHeatingSource:sigma); fields (T jouleHeatingSource:V jouleHeatingSource:sigma);
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
sets sets
( {
centreLine centreLine
{ {
type uniform; type uniform;
@ -66,7 +66,7 @@ functions
end ( 2.5 0.05 0.05); end ( 2.5 0.05 0.05);
nPoints 20; nPoints 20;
} }
); }
} }
} }

View File

@ -66,7 +66,7 @@ functions
libs (reactingEulerFoamFunctionObjects); libs (reactingEulerFoamFunctionObjects);
region water; region water;
field T.liquid; field T.liquid;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
htcModel fixedReferenceTemperature; htcModel fixedReferenceTemperature;
patches (water_to_solid); patches (water_to_solid);
@ -80,7 +80,7 @@ functions
log on; log on;
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
writeFields false; writeFields false;

View File

@ -50,8 +50,8 @@ functions
{ {
type forces; type forces;
libs (forces); libs (forces);
outputControl timeStep; writeControl timeStep;
outputInterval 10; writeInterval 10;
patches (wing); patches (wing);
pName p; pName p;
UName U; UName U;

View File

@ -118,7 +118,7 @@ functions
); );
sets sets
( {
xbyh0.05 xbyh0.05
{ {
type face; type face;
@ -189,7 +189,7 @@ functions
start (0.224 0 0.063); start (0.224 0 0.063);
end (0.224 1 0.063); end (0.224 1 0.063);
} }
); }
} }
} }

View File

@ -12,7 +12,7 @@ fields
); );
sets sets
( {
inletPatch inletPatch
{ {
type face; type face;
@ -208,7 +208,7 @@ sets
end (37.7 2.0 1.57); end (37.7 2.0 1.57);
nPoints 200; nPoints 200;
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -4,6 +4,7 @@ type sets;
libs (sampling); libs (sampling);
interpolationScheme cellPatchConstrained; interpolationScheme cellPatchConstrained;
setFormat raw; setFormat raw;
fields ( CfMean ); fields ( CfMean );
_planes _planes
@ -17,7 +18,7 @@ _planes
} }
sets sets
( {
// Intersections of patches with plane // Intersections of patches with plane
planeAA planeAA
{ {
@ -28,7 +29,7 @@ sets
normal ( 0 0 1 ); normal ( 0 0 1 );
} }
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -23,7 +23,7 @@ setFormat raw;
fields ( U UMean ); fields ( U UMean );
sets sets
( {
xm10 xm10
{ {
type face; type face;
@ -115,7 +115,7 @@ sets
start (8.5 4.5 0); start (8.5 4.5 0);
end (8.5 4.5 2); end (8.5 4.5 2);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -85,7 +85,7 @@ functions
libs (solverFunctionObjects); libs (solverFunctionObjects);
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
field s; field s;

View File

@ -56,7 +56,7 @@ functions
libs (solverFunctionObjects); libs (solverFunctionObjects);
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
field T; field T;

View File

@ -15,6 +15,8 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fields (U);
setConfig setConfig
{ {
type midPoint; // midPoint type midPoint; // midPoint
@ -22,7 +24,7 @@ setConfig
} }
sets sets
( {
lineA lineA
{ {
$setConfig; $setConfig;
@ -43,8 +45,7 @@ sets
start (-0.032 0 0); start (-0.032 0 0);
end (-0.032 0.0128 0); end (-0.032 0.0128 0);
} }
); }
fields (U);
// ************************************************************************* // // ************************************************************************* //

View File

@ -17,14 +17,14 @@ setConfig
} }
sets sets
( {
line line
{ {
$setConfig; $setConfig;
start (0 0 0); start (0 0 0);
end (0 1 0); end (0 1 0);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,3 +1,5 @@
// -*- C++ -*-
type sets; type sets;
libs (sampling); libs (sampling);
@ -7,8 +9,10 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fields (p U turbulenceProperties:devReff);
sets sets
( {
Uref Uref
{ {
type cloud; type cloud;
@ -56,6 +60,7 @@ sets
end (0.127 0.1016 0); end (0.127 0.1016 0);
nPoints 100; nPoints 100;
} }
); }
fields (p U turbulenceProperties:devReff);
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -15,7 +15,7 @@ sample1
fields ( p ); fields ( p );
sets sets
( {
cloud cloud
{ {
type cloud; type cloud;
@ -29,7 +29,7 @@ sample1
(1 1.0 0.05) (1 1.0 0.05)
); );
} }
); }
} }
average1 average1

View File

@ -5,7 +5,7 @@ sample1
type sets; type sets;
libs (sampling); libs (sampling);
setFormat gltf; setFormat gltf;
writeControl writeTime;
interpolationScheme cellPointFace; interpolationScheme cellPointFace;
formatOptions formatOptions
@ -25,10 +25,9 @@ sample1
} }
fields ( p T k epsilon U ); fields ( p T k epsilon U );
writeControl writeTime;
sets sets
( {
line line
{ {
type face; type face;
@ -41,7 +40,7 @@ sample1
{ {
type cellCentre; type cellCentre;
} }
); }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -77,8 +77,11 @@ functions
interpolationScheme cell; interpolationScheme cell;
setFormat vtk; setFormat vtk;
// Needs at least one field
fields ( processorID );
sets sets
( {
leakFind leakFind
{ {
type shortestPath; type shortestPath;
@ -86,10 +89,7 @@ functions
outsidePoints ((1 0 1.3)); outsidePoints ((1 0 1.3));
axis xyz; axis xyz;
} }
); }
// Needs at least one field
fields ( processorID );
} }
} }

View File

@ -60,7 +60,7 @@ functions
libs (solverFunctionObjects); libs (solverFunctionObjects);
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
field s; field s;

View File

@ -44,7 +44,7 @@ electricPotential
timeEnd 100; timeEnd 100;
executeControl timeStep; executeControl timeStep;
executeInterval 1; executeInterval 1;
writeControl outputTime; writeControl writeTime;
writeInterval -1; writeInterval -1;
} }

View File

@ -90,7 +90,7 @@ functions
libs (solverFunctionObjects); libs (solverFunctionObjects);
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
field s; field s;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -52,7 +52,10 @@ maxAlphaCo 1;
maxDeltaT 1; maxDeltaT 1;
#sinclude "sampling" functions
{
#sinclude "sampling"
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,23 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ // -*- C++ -*-
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampling;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
functions sampleSets
{ {
sampleSets
{
type sets; type sets;
libs (sampling); libs (sampling);
@ -26,10 +10,11 @@ functions
setFormat vtk; setFormat vtk;
interpolationScheme cellPointFace; interpolationScheme cellPointFace;
fields ( alpha.water ); fields ( alpha.water );
sets sets
( {
gauge_1 gauge_1
{ {
type face; type face;
@ -47,7 +32,6 @@ functions
end (0.2 0.55 0.005); end (0.2 0.55 0.005);
nPoints 100; nPoints 100;
} }
);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -72,7 +72,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -137,7 +137,7 @@ functions
end ( 14.0 0.005 0.8 ); end ( 14.0 0.005 0.8 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -71,7 +71,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -80,7 +80,7 @@ functions
end ( 7.9253 19.8599 30.0 ); end ( 7.9253 19.8599 30.0 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -75,7 +75,7 @@ functions
); );
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -156,7 +156,7 @@ functions
end ( 4.77 0.275 0.5 ); end ( 4.77 0.275 0.5 );
nPoints 101; nPoints 101;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -71,7 +71,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -120,7 +120,7 @@ functions
end ( 9.0 0.01 1.5 ); end ( 9.0 0.01 1.5 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -63,9 +63,12 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fixedLocations false;
fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -128,10 +131,7 @@ functions
end ( 6.15 0.275 0.5 ); end ( 6.15 0.275 0.5 );
nPoints 101; nPoints 101;
} }
); }
fixedLocations false;
fields (alpha.water);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -63,9 +63,12 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fixedLocations false;
fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -128,11 +131,7 @@ functions
end ( 6.15 0.275 0.5 ); end ( 6.15 0.275 0.5 );
nPoints 101; nPoints 101;
} }
); }
fixedLocations false;
fields (alpha.water);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -72,7 +72,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -137,7 +137,7 @@ functions
end ( 14.0 0.005 0.75 ); end ( 14.0 0.005 0.75 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -72,7 +72,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -137,7 +137,7 @@ functions
end ( 14.0 0.005 0.55 ); end ( 14.0 0.005 0.55 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -72,7 +72,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -137,7 +137,7 @@ functions
end ( 9.0 0.005 0.8 ); end ( 9.0 0.005 0.8 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -72,7 +72,7 @@ functions
); );
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -153,7 +153,7 @@ functions
end ( 28.0 0.005 1.0 ); end ( 28.0 0.005 1.0 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -68,7 +68,7 @@ functions
fields (alpha.water); fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -131,7 +131,7 @@ functions
end ( 4.0 0.005 0.7 ); end ( 4.0 0.005 0.7 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -64,8 +64,12 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fixedLocations false;
fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -128,11 +132,7 @@ functions
end ( 4.0 0.005 0.7 ); end ( 4.0 0.005 0.7 );
nPoints 1001; nPoints 1001;
} }
); }
fixedLocations false;
fields (alpha.water);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -68,7 +68,7 @@ functions
fields (alpha.water); fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -131,7 +131,7 @@ functions
end ( 4.0 0.005 0.7 ); end ( 4.0 0.005 0.7 );
nPoints 1001; nPoints 1001;
} }
); }
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -63,9 +63,12 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
fixedLocations false;
fields (alpha.water);
sets sets
( {
s1 s1
{ {
type uniform; type uniform;
@ -128,11 +131,7 @@ functions
end ( 4.0 0.005 0.7 ); end ( 4.0 0.005 0.7 );
nPoints 1001; nPoints 1001;
} }
); }
fixedLocations false;
fields (alpha.water);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\\ /*--------------------------------*- C++ -*----------------------------------*\\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -63,8 +63,15 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
sets fixedLocations false;
fields
( (
p p_rgh U alpha.water
);
sets
{
line1 line1
{ {
type uniform; type uniform;
@ -81,13 +88,7 @@ functions
end ( 3.33 0.004 0.6 ); end ( 3.33 0.004 0.6 );
nPoints 101; nPoints 101;
} }
); }
fixedLocations false;
fields
(
p p_rgh U alpha.water
);
} }
lineFIXED lineFIXED
@ -96,11 +97,17 @@ functions
libs (sampling); libs (sampling);
enabled true; enabled true;
writeControl onEnd; writeControl onEnd;
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
sets fixedLocations true;
fields
( (
p p_rgh U alpha.water
);
sets
{
line3 line3
{ {
type uniform; type uniform;
@ -117,13 +124,7 @@ functions
end ( 5.66 0.004 0.6 ); end ( 5.66 0.004 0.6 );
nPoints 101; nPoints 101;
} }
); }
fixedLocations true;
fields
(
p p_rgh U alpha.water
);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -63,8 +63,15 @@ functions
interpolationScheme cellPoint; interpolationScheme cellPoint;
setFormat raw; setFormat raw;
sets fixedLocations false;
fields
( (
U alpha.water
);
sets
{
line1 line1
{ {
type uniform; type uniform;
@ -145,13 +152,7 @@ functions
end ( 28.0 0.005 1.0 ); end ( 28.0 0.005 1.0 );
nPoints 1001; nPoints 1001;
} }
); }
fixedLocations false;
fields
(
U alpha.water
);
} }
} }

View File

@ -59,7 +59,7 @@ functions
type energyTransport; type energyTransport;
libs (solverFunctionObjects); libs (solverFunctionObjects);
enabled true; enabled true;
writeControl outputTime; writeControl writeTime;
writeInterval 1; writeInterval 1;
write true; write true;

View File

@ -14,7 +14,7 @@ _sampler
enabled false; enabled false;
sets sets
( {
x_0mPatch // inlet patch face centres x_0mPatch // inlet patch face centres
{ {
type face; type face;
@ -57,7 +57,7 @@ _sampler
start (5000 50 0); start (5000 50 0);
end (5000 50 500); end (5000 50 500);
} }
); }
} }
samples_u samples_u

View File

@ -10,7 +10,7 @@ writeControl writeTime;
fields (U); fields (U);
sets sets
( {
lineZ1 lineZ1
{ {
type midPoint; type midPoint;
@ -19,7 +19,7 @@ sets
end (0 0 6001); end (0 0 6001);
nPoints 200; nPoints 200;
} }
); }
// *********************************************************************** // // *********************************************************************** //

View File

@ -19,7 +19,7 @@ fields
); );
sets sets
( {
lineZ1 lineZ1
{ {
type midPoint; type midPoint;
@ -28,7 +28,7 @@ sets
end (0 0 6001); end (0 0 6001);
nPoints 200; nPoints 200;
} }
); }
// *********************************************************************** // // *********************************************************************** //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -52,8 +52,12 @@ functions
libs (sampling); libs (sampling);
writeControl onEnd; writeControl onEnd;
setFormat raw; setFormat raw;
interpolationScheme cellPoint;
fields (T);
sets sets
( {
line1 line1
{ {
type uniform; type uniform;
@ -64,9 +68,7 @@ functions
end (1 0 0.00501); end (1 0 0.00501);
nPoints 200; nPoints 200;
} }
); }
interpolationScheme cellPoint;
fields (T);
} }
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -20,6 +20,7 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
fields fields
( (
U U
@ -28,7 +29,7 @@ fields
); );
sets sets
( {
ref_point ref_point
{ {
type cloud; type cloud;
@ -43,7 +44,7 @@ sets
start (0.5 0 0.5); start (0.5 0 0.5);
end (0.5 1 0.5); end (0.5 1 0.5);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -20,13 +20,14 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
fields fields
( (
turbulenceProperties:epsilon turbulenceProperties:epsilon
); );
sets sets
( {
y y
{ {
type midPoint; type midPoint;
@ -34,7 +35,7 @@ sets
start (0.5 0 0.5); start (0.5 0 0.5);
end (0.5 1 0.5); end (0.5 1 0.5);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 | | \\ / O peration | Version: v2206 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -20,13 +20,14 @@ interpolationScheme cellPoint;
setFormat raw; setFormat raw;
executeControl writeTime; executeControl writeTime;
writeControl writeTime; writeControl writeTime;
fields fields
( (
productionRate productionRate
); );
sets sets
( {
y y
{ {
type midPoint; type midPoint;
@ -34,7 +35,7 @@ sets
start (0.5 0 0.5); start (0.5 0 0.5);
end (0.5 1 0.5); end (0.5 1 0.5);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,15 +2,8 @@
postPro1 postPro1
{ {
type runTimePostProcessing; #includeEtc "caseDicts/postProcessing/visualization/runTimePostPro.cfg"
functionObjectLibs (runTimePostProcessing);
outputControl outputTime;
output
{
name image;
width 1000;
height 1000;
}
camera camera
{ {
// If camera is moving, optionally provide start and end times // If camera is moving, optionally provide start and end times
@ -47,9 +40,11 @@ postPro1
surface (0.5 0.5 0.5); surface (0.5 0.5 0.5);
line (1 0 0); line (1 0 0);
} }
// Line data // Line data
lines lines
{} {}
// Surface data // Surface data
surfaces surfaces
{ {

View File

@ -13,7 +13,7 @@ fields
); );
sets sets
( {
inletPatch inletPatch
{ {
type face; type face;
@ -29,7 +29,7 @@ sets
start (0.062832 0 1.57); start (0.062832 0 1.57);
end (0.062832 2 1.57); end (0.062832 2 1.57);
} }
); }
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,7 +13,7 @@ fields
); );
sets sets
( {
inletPatch inletPatch
{ {
type face; type face;
@ -29,7 +29,7 @@ sets
start (0.062832 0 1.57); start (0.062832 0 1.57);
end (0.062832 2 1.57); end (0.062832 2 1.57);
} }
); }
// ************************************************************************* // // ************************************************************************* //