STYLE: update tutorials

- use simpler decomposeParDict in tutorials, several had old
  'boilerplate' decomposeParDict

- use simpler libs () format

- update surface sampling to use dictionary format
This commit is contained in:
Mark Olesen
2020-06-17 10:11:33 +02:00
parent 5225697542
commit 5982a1aab4
29 changed files with 76 additions and 515 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -19,7 +19,7 @@ cuttingPlane
interpolationScheme cellPoint;
surfaces
(
{
zNormal
{
type cuttingPlane;
@ -31,7 +31,7 @@ cuttingPlane
}
interpolate true;
}
);
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -97,7 +97,7 @@ plane
fields ( cellZoneID );
surfaces
(
{
zNormal
{
type cuttingPlane;
@ -109,7 +109,7 @@ plane
}
interpolate false;
}
);
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -13,11 +13,11 @@ flux
libs (fieldFunctionObjects);
mode functionObjectSurface;
surfaces
(
{
sampled.plane-0.25
sampled.plane-0.45
sampled.plane-0.55
);
}
// Optional entries
phi rhoU;

View File

@ -51,7 +51,7 @@ debug
}
surfaces
(
{
angledPlane
{
type distanceSurface;
@ -120,7 +120,7 @@ debug
${_plane}
bounds (-1 -1 -1) (0 0 1);
}
);
}
}