mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -51,7 +51,7 @@ debug
|
||||
}
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
angledPlane
|
||||
{
|
||||
type distanceSurface;
|
||||
@ -120,7 +120,7 @@ debug
|
||||
${_plane}
|
||||
bounds (-1 -1 -1) (0 0 1);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -17,14 +17,12 @@ FoamFile
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
|
||||
method scotch;
|
||||
|
||||
hierarchicalCoeffs
|
||||
coeffs
|
||||
{
|
||||
n (2 1 1);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
n (2 2 1);
|
||||
// order xyz; //< default order = xyz
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -17,11 +17,11 @@ FoamFile
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method hierarchical;
|
||||
hierarchicalCoeffs
|
||||
|
||||
coeffs
|
||||
{
|
||||
n (4 1 1);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
n (4 1 1);
|
||||
// order xyz; //< default order = xyz
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -17,11 +17,11 @@ FoamFile
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method hierarchical;
|
||||
hierarchicalCoeffs
|
||||
|
||||
coeffs
|
||||
{
|
||||
n (4 1 1);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
n (4 1 1);
|
||||
// order xyz; //< default order = xyz
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -29,7 +29,7 @@ cuttingPlane
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
yNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
@ -41,7 +41,7 @@ cuttingPlane
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -99,7 +99,7 @@ functions
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
zNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
@ -111,7 +111,7 @@ functions
|
||||
}
|
||||
interpolate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
forces
|
||||
|
||||
@ -19,10 +19,9 @@ numberOfSubdomains 4;
|
||||
|
||||
method hierarchical;
|
||||
|
||||
hierarchicalCoeffs
|
||||
coeffs
|
||||
{
|
||||
n (2 2 1);
|
||||
delta 0.001;
|
||||
n (2 2 1);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -96,13 +96,10 @@ functions
|
||||
);
|
||||
}
|
||||
|
||||
// Sample near-wall velocity
|
||||
surfaceSampling
|
||||
{
|
||||
// Sample near-wall velocity
|
||||
|
||||
type surfaces;
|
||||
|
||||
// Where to load it from (if not already in solver)
|
||||
type surfaces;
|
||||
libs (sampling);
|
||||
writeControl writeTime;
|
||||
|
||||
@ -117,7 +114,7 @@ functions
|
||||
);
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
@ -126,7 +123,7 @@ functions
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#includeFunc scalarTransport
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -96,13 +96,10 @@ functions
|
||||
);
|
||||
}
|
||||
|
||||
// Sample near-wall velocity
|
||||
surfaceSampling
|
||||
{
|
||||
// Sample near-wall velocity
|
||||
|
||||
type surfaces;
|
||||
|
||||
// Where to load it from (if not already in solver)
|
||||
type surfaces;
|
||||
libs (sampling);
|
||||
writeControl writeTime;
|
||||
|
||||
@ -117,7 +114,7 @@ functions
|
||||
);
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
nearWall
|
||||
{
|
||||
type patchInternalField;
|
||||
@ -126,7 +123,7 @@ functions
|
||||
interpolate true;
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -50,15 +50,15 @@ functions
|
||||
momErr
|
||||
{
|
||||
type momentumError;
|
||||
libs (fieldFunctionObjects);
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
libs (libfieldFunctionObjects);
|
||||
}
|
||||
|
||||
contErr
|
||||
{
|
||||
libs (libfieldFunctionObjects);
|
||||
type div;
|
||||
libs (fieldFunctionObjects);
|
||||
field phi;
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
@ -19,10 +19,12 @@ numberOfSubdomains 8;
|
||||
|
||||
method hierarchical;
|
||||
|
||||
hierarchicalCoeffs
|
||||
coeffs
|
||||
{
|
||||
n (8 1 1);
|
||||
// delta 0.001; //< default value = 0.001
|
||||
// order xyz; //< default order = xyz
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -18,7 +18,7 @@ cuttingPlane
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
yNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
@ -30,7 +30,7 @@ cuttingPlane
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ sampled
|
||||
}
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
// Top channel
|
||||
plane1
|
||||
{
|
||||
@ -117,7 +117,7 @@ sampled
|
||||
surfaceType triSurfaceMesh;
|
||||
surfaceName angledPlane.obj;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ debug
|
||||
}
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
angledPlane
|
||||
{
|
||||
type distanceSurface;
|
||||
@ -46,7 +46,7 @@ debug
|
||||
regularise true;
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -18,7 +18,7 @@ cuttingPlane
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
yNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
@ -30,7 +30,7 @@ cuttingPlane
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -85,14 +85,14 @@ functions
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
walls
|
||||
{
|
||||
type patch;
|
||||
patches (walls);
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,27 +19,9 @@ numberOfSubdomains 4;
|
||||
|
||||
method simple;
|
||||
|
||||
simpleCoeffs
|
||||
coeffs
|
||||
{
|
||||
n (2 2 1);
|
||||
delta 0.001;
|
||||
n (2 2 1);
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n (1 1 1);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -85,14 +85,14 @@ functions
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
walls
|
||||
{
|
||||
type patch;
|
||||
patches (walls);
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -85,14 +85,14 @@ functions
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
walls
|
||||
{
|
||||
type patch;
|
||||
patches (walls);
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -86,14 +86,14 @@ functions
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
walls
|
||||
{
|
||||
type patch;
|
||||
patches (walls);
|
||||
triangulate false;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user