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:
@ -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
|
||||
|
||||
@ -10,7 +10,7 @@ writeControl writeTime;
|
||||
fields (U);
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
lineZ1
|
||||
{
|
||||
type midPoint;
|
||||
@ -19,7 +19,7 @@ sets
|
||||
end (0 0 6001);
|
||||
nPoints 200;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// *********************************************************************** //
|
||||
|
||||
@ -19,7 +19,7 @@ fields
|
||||
);
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
lineZ1
|
||||
{
|
||||
type midPoint;
|
||||
@ -28,7 +28,7 @@ sets
|
||||
end (0 0 6001);
|
||||
nPoints 200;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// *********************************************************************** //
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user