mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -60,7 +60,7 @@ functions
|
||||
libs (solverFunctionObjects);
|
||||
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
field s;
|
||||
|
||||
@ -44,7 +44,7 @@ electricPotential
|
||||
timeEnd 100;
|
||||
executeControl timeStep;
|
||||
executeInterval 1;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval -1;
|
||||
}
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ functions
|
||||
libs (solverFunctionObjects);
|
||||
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
field s;
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ functions
|
||||
type energyTransport;
|
||||
libs (solverFunctionObjects);
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
write true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user