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:
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -7,7 +7,7 @@ tracer0
|
||||
log off;
|
||||
|
||||
resetOnStartUp false;
|
||||
// writeControl outputTime;
|
||||
// writeControl writeTime;
|
||||
// writeInterval 1;
|
||||
field tracer0;
|
||||
D 0.001;
|
||||
|
||||
@ -24,7 +24,7 @@ __settings_avg
|
||||
enabled true;
|
||||
|
||||
executeControl timeStep;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
// restart behaviour
|
||||
|
||||
@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user