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 | |
\*---------------------------------------------------------------------------*/
@ -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);
}
);
}
// ************************************************************************* //