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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,53 +1,37 @@
/*--------------------------------*- 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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// -*- C++ -*-
functions
sampleSets
{
sampleSets
type sets;
libs (sampling);
writeControl timeStep;
writeInterval 1;
setFormat vtk;
interpolationScheme cellPointFace;
fields ( alpha.water );
sets
{
type sets;
libs (sampling);
gauge_1
{
type face;
axis y;
start (0.02 0.20 0.005);
end (0.02 0.25 0.005);
nPoints 100;
}
writeControl timeStep;
writeInterval 1;
setFormat vtk;
interpolationScheme cellPointFace;
fields ( alpha.water );
sets
(
gauge_1
{
type face;
axis y;
start (0.02 0.20 0.005);
end (0.02 0.25 0.005);
nPoints 100;
}
gauge_2
{
type face;
axis y;
start (0.2 0.03 0.005);
end (0.2 0.55 0.005);
nPoints 100;
}
);
gauge_2
{
type face;
axis y;
start (0.2 0.03 0.005);
end (0.2 0.55 0.005);
nPoints 100;
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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