TUT: use '/' dictionary scoping for variables and foamDictionary (#1073)

- leave windAroundBuildings blockMeshDict with older '.' syntax
  (to test compatibility)
This commit is contained in:
Mark Olesen
2023-08-17 12:10:40 +02:00
parent 886ba89ddb
commit 36f8542e01
32 changed files with 297 additions and 264 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -25,27 +25,27 @@ boundaryField
inletSleeve inletSleeve
{ {
type fixedValue; type fixedValue;
value uniform $:sleeve.CH4; value uniform $/sleeve/CH4;
} }
inletPipe inletPipe
{ {
type fixedValue; type fixedValue;
value uniform $:pipe.CH4; value uniform $/pipe/CH4;
} }
outletSleeve outletSleeve
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:sleeve.CH4; inletValue uniform $/sleeve/CH4;
value uniform $:sleeve.CH4; value uniform $/sleeve/CH4;
} }
outletPipe outletPipe
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:pipe.CH4; inletValue uniform $/pipe/CH4;
value uniform $:pipe.CH4; value uniform $/pipe/CH4;
} }
wall wall
@ -58,7 +58,7 @@ boundaryField
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
samplePatch membranePipe; samplePatch membranePipe;
c 0.1; c 0.1;
value uniform $:sleeve.CH4; value uniform $/sleeve/CH4;
} }
membranePipe membranePipe
@ -66,9 +66,12 @@ boundaryField
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
samplePatch membraneSleeve; samplePatch membraneSleeve;
c 0.1; c 0.1;
value uniform $:pipe.CH4; value uniform $/pipe/CH4;
} }
} }
// Cleanup
#remove ( sleeve pipe )
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -25,27 +25,27 @@ boundaryField
inletSleeve inletSleeve
{ {
type fixedValue; type fixedValue;
value uniform $:sleeve.N2; value uniform $/sleeve/N2;
} }
inletPipe inletPipe
{ {
type fixedValue; type fixedValue;
value uniform $:pipe.N2; value uniform $/pipe/N2;
} }
outletSleeve outletSleeve
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:sleeve.N2; inletValue uniform $/sleeve/N2;
value uniform $:sleeve.N2; value uniform $/sleeve/N2;
} }
outletPipe outletPipe
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:pipe.N2; inletValue uniform $/pipe/N2;
value uniform $:pipe.N2; value uniform $/pipe/N2;
} }
wall wall
@ -56,15 +56,18 @@ boundaryField
membraneSleeve membraneSleeve
{ {
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
value uniform $:sleeve.N2; value uniform $/sleeve/N2;
} }
membranePipe membranePipe
{ {
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
value uniform $:pipe.N2; value uniform $/pipe/N2;
} }
} }
// Cleanup
#remove ( sleeve pipe )
// ************************************************************************* // // ************************************************************************* //

View File

@ -25,27 +25,27 @@ boundaryField
inletSleeve inletSleeve
{ {
type fixedValue; type fixedValue;
value uniform $:sleeve.O2; value uniform $/sleeve/O2;
} }
inletPipe inletPipe
{ {
type fixedValue; type fixedValue;
value uniform $:pipe.O2; value uniform $/pipe/O2;
} }
outletSleeve outletSleeve
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:sleeve.O2; inletValue uniform $/sleeve/O2;
value uniform $:sleeve.O2; value uniform $/sleeve/O2;
} }
outletPipe outletPipe
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:pipe.O2; inletValue uniform $/pipe/O2;
value uniform $:pipe.O2; value uniform $/pipe/O2;
} }
wall wall
@ -56,15 +56,17 @@ boundaryField
membraneSleeve membraneSleeve
{ {
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
value uniform $:sleeve.O2; value uniform $/sleeve/O2;
} }
membranePipe membranePipe
{ {
type semiPermeableBaffleMassFraction; type semiPermeableBaffleMassFraction;
value uniform $:pipe.O2; value uniform $/pipe/O2;
} }
} }
// Cleanup
#remove ( sleeve pipe )
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,9 +18,9 @@ FoamFile
defaultFieldValues defaultFieldValues
( (
volScalarFieldValue CH4 $:sleeve.CH4 volScalarFieldValue CH4 $/sleeve/CH4
volScalarFieldValue N2 $:sleeve.N2 volScalarFieldValue N2 $/sleeve/N2
volScalarFieldValue O2 $:sleeve.O2 volScalarFieldValue O2 $/sleeve/O2
); );
regions regions
@ -30,12 +30,15 @@ regions
zone pipe; zone pipe;
fieldValues fieldValues
( (
volScalarFieldValue CH4 $:pipe.CH4 volScalarFieldValue CH4 $/pipe/CH4
volScalarFieldValue N2 $:pipe.N2 volScalarFieldValue N2 $/pipe/N2
volScalarFieldValue O2 $:pipe.O2 volScalarFieldValue O2 $/pipe/O2
); );
} }
); );
// Cleanup
#remove ( sleeve pipe )
// ************************************************************************* // // ************************************************************************* //

View File

@ -56,82 +56,82 @@ geometry
cylinder cylinder
{ {
type cylinder; type cylinder;
point1 ($:aerofoil.xUpper -1e3 0); point1 ($/aerofoil/xUpper -1e3 0);
point2 ($:aerofoil.xUpper 1e3 0); point2 ($/aerofoil/xUpper 1e3 0);
radius $:domain.zMax; radius $/domain/zMax;
} }
} }
vertices vertices
( (
project ($aerofoil.xLower -0.1 $domain.zMin) (cylinder) project ($/aerofoil/xLower -0.1 $/domain/zMin) (cylinder)
($aerofoil.xTrail -0.1 $domain.zMin) ($/aerofoil/xTrail -0.1 $/domain/zMin)
($domain.xMax -0.1 $domain.zMin) ($/domain/xMax -0.1 $/domain/zMin)
project ($domain.xMin -0.1 $aerofoil.zLead) (cylinder) project ($/domain/xMin -0.1 $/aerofoil/zLead) (cylinder)
project ($aerofoil.xLead -0.1 $aerofoil.zLead) (aerofoil) project ($/aerofoil/xLead -0.1 $/aerofoil/zLead) (aerofoil)
project ($aerofoil.xTrail -0.1 $aerofoil.zTrail) (aerofoil) project ($/aerofoil/xTrail -0.1 $/aerofoil/zTrail) (aerofoil)
($domain.xMax -0.1 $aerofoil.zTrail) ($/domain/xMax -0.1 $/aerofoil/zTrail)
project ($aerofoil.xLower -0.1 $aerofoil.zLower) (aerofoil) project ($/aerofoil/xLower -0.1 $/aerofoil/zLower) (aerofoil)
project ($aerofoil.xUpper -0.1 $aerofoil.zUpper) (aerofoil) project ($/aerofoil/xUpper -0.1 $/aerofoil/zUpper) (aerofoil)
project ($aerofoil.xUpper -0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xUpper -0.1 $/domain/zMax) (aerofoil)
project ($aerofoil.xTrail -0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xTrail -0.1 $/domain/zMax) (aerofoil)
($domain.xMax -0.1 $domain.zMax) ($/domain/xMax -0.1 $/domain/zMax)
project ($aerofoil.xLower 0.1 $domain.zMin) (cylinder) project ($/aerofoil/xLower 0.1 $/domain/zMin) (cylinder)
($aerofoil.xTrail 0.1 $domain.zMin) ($/aerofoil/xTrail 0.1 $/domain/zMin)
($domain.xMax 0.1 $domain.zMin) ($/domain/xMax 0.1 $/domain/zMin)
project ($domain.xMin 0.1 $aerofoil.zLead) (cylinder) project ($/domain/xMin 0.1 $/aerofoil/zLead) (cylinder)
project ($aerofoil.xLead 0.1 $aerofoil.zLead) (aerofoil) project ($/aerofoil/xLead 0.1 $/aerofoil/zLead) (aerofoil)
project ($aerofoil.xTrail 0.1 $aerofoil.zTrail) (aerofoil) project ($/aerofoil/xTrail 0.1 $/aerofoil/zTrail) (aerofoil)
($domain.xMax 0.1 $aerofoil.zTrail) ($/domain/xMax 0.1 $/aerofoil/zTrail)
project ($aerofoil.xLower 0.1 $aerofoil.zLower) (aerofoil) project ($/aerofoil/xLower 0.1 $/aerofoil/zLower) (aerofoil)
project ($aerofoil.xUpper 0.1 $aerofoil.zUpper) (aerofoil) project ($/aerofoil/xUpper 0.1 $/aerofoil/zUpper) (aerofoil)
project ($aerofoil.xUpper 0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xUpper 0.1 $/domain/zMax) (aerofoil)
project ($aerofoil.xTrail 0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xTrail 0.1 $/domain/zMax) (aerofoil)
($domain.xMax 0.1 $domain.zMax) ($/domain/xMax 0.1 $/domain/zMax)
); );
blocks blocks
( (
hex ( 7 4 16 19 0 3 15 12) hex ( 7 4 16 19 0 3 15 12)
($:domain.xUCells 1 $:domain.zCells) ($/domain/xUCells 1 $/domain/zCells)
edgeGrading edgeGrading
( (
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading $/domain/leadGrading $/domain/leadGrading $/domain/xUGrading $/domain/xUGrading
1 1 1 1 1 1 1 1
$:domain.zGrading $:domain.zGrading $:domain.zGrading $:domain.zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading
) )
hex ( 5 7 19 17 1 0 12 13) hex ( 5 7 19 17 1 0 12 13)
($:domain.xMCells 1 $:domain.zCells) ($/domain/xMCells 1 $/domain/zCells)
simpleGrading (1 1 $:domain.zGrading) simpleGrading (1 1 $/domain/zGrading)
hex ( 17 18 6 5 13 14 2 1) hex ( 17 18 6 5 13 14 2 1)
($:domain.xDCells 1 $:domain.zCells) ($/domain/xDCells 1 $/domain/zCells)
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading) simpleGrading ($/domain/xDGrading 1 $/domain/zGrading)
hex ( 20 16 4 8 21 15 3 9) hex ( 20 16 4 8 21 15 3 9)
($:domain.xUCells 1 $:domain.zCells) ($/domain/xUCells 1 $/domain/zCells)
edgeGrading edgeGrading
( (
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading $/domain/leadGrading $/domain/leadGrading $/domain/xUGrading $/domain/xUGrading
1 1 1 1 1 1 1 1
$:domain.zGrading $:domain.zGrading $:domain.zGrading $:domain.zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading
) )
hex ( 17 20 8 5 22 21 9 10) hex ( 17 20 8 5 22 21 9 10)
($:domain.xMCells 1 $:domain.zCells) ($/domain/xMCells 1 $/domain/zCells)
simpleGrading (1 1 $:domain.zGrading) simpleGrading (1 1 $/domain/zGrading)
hex ( 5 6 18 17 10 11 23 22) hex ( 5 6 18 17 10 11 23 22)
($:domain.xDCells 1 $:domain.zCells) ($/domain/xDCells 1 $/domain/zCells)
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading) simpleGrading ($/domain/xDGrading 1 $/domain/zGrading)
); );
edges edges
@ -223,4 +223,7 @@ boundary
); );
// Cleanup
#remove ( domain aerofoil )
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,30 +18,30 @@ FoamFile
dimensions [0 0 0 1 0 0 0]; dimensions [0 0 0 1 0 0 0];
internalField uniform $:outerInlet.T; internalField uniform $/outerInlet/T;
boundaryField boundaryField
{ {
innerInlet innerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:innerInlet.T; value uniform $/innerInlet/T;
} }
outerInlet outerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:outerInlet.T; value uniform $/outerInlet/T;
} }
outlet outlet
{ {
$:outlet.T; $/outlet/T;
} }
staticWalls staticWalls
{ {
$:wall.T; $/wall/T;
} }
movingWalls movingWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -25,28 +25,28 @@ boundaryField
innerInlet innerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:innerInlet.U; value uniform $/innerInlet/U;
} }
outerInlet outerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:outerInlet.U; value uniform $/outerInlet/U;
} }
outlet outlet
{ {
$:outlet.U; $/outlet/U;
} }
staticWalls staticWalls
{ {
$:wall.U; $/wall/U;
} }
movingWalls movingWalls
{ {
$:movingWall.U; $/movingWall/U;
} }
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -24,17 +24,17 @@ boundaryField
{ {
inlet inlet
{ {
$:calculated.alphat; $/calculated/alphat;
} }
outlet outlet
{ {
$:calculated.alphat; $/calculated/alphat;
} }
movingWalls movingWalls
{ {
$:wall.alphat; $/wall/alphat;
} }
staticWalls staticWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -19,30 +19,30 @@ FoamFile
dimensions [0 2 -3 0 0 0 0]; dimensions [0 2 -3 0 0 0 0];
internalField uniform $:innerInlet.epsilon; internalField uniform $/innerInlet/epsilon;
boundaryField boundaryField
{ {
innerInlet innerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:innerInlet.epsilon; value uniform $/innerInlet/epsilon;
} }
outerInlet outerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:outerInlet.epsilon; value uniform $/outerInlet/epsilon;
} }
outlet outlet
{ {
$:outlet.epsilon; $/outlet/epsilon;
} }
staticWalls staticWalls
{ {
$:wall.epsilon; $/wall/epsilon;
} }
movingWalls movingWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -18,30 +18,30 @@ FoamFile
dimensions [0 2 -2 0 0 0 0]; dimensions [0 2 -2 0 0 0 0];
internalField uniform $:innerInlet.k; internalField uniform $/innerInlet/k;
boundaryField boundaryField
{ {
innerInlet innerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:innerInlet.k; value uniform $/innerInlet/k;
} }
outerInlet outerInlet
{ {
type fixedValue; type fixedValue;
value uniform $:outerInlet.k; value uniform $/outerInlet/k;
} }
outlet outlet
{ {
$:outlet.k; $/outlet/k;
} }
staticWalls staticWalls
{ {
$:wall.k; $/wall/k;
} }
movingWalls movingWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -24,17 +24,17 @@ boundaryField
{ {
inlet inlet
{ {
$:calculated.nut; $/calculated/nut;
} }
outlet outlet
{ {
$:calculated.nut; $/calculated/nut;
} }
movingWalls movingWalls
{ {
$:wall.nut; $/wall/nut;
} }
staticWalls staticWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -24,17 +24,17 @@ boundaryField
{ {
inlet inlet
{ {
$:inlet.p; $/inlet/p;
} }
outlet outlet
{ {
$:outlet.p; $/outlet/p;
} }
staticWalls staticWalls
{ {
$:wall.p; $/wall/p;
} }
movingWalls movingWalls

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -54,21 +54,21 @@ outlet
T T
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:outerInlet.T; inletValue uniform $/outerInlet/T;
value $inletValue; value $inletValue;
} }
k k
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:innerInlet.k; inletValue uniform $/innerInlet/k;
value $inletValue; value $inletValue;
} }
epsilon epsilon
{ {
type inletOutlet; type inletOutlet;
inletValue uniform $:innerInlet.epsilon; inletValue uniform $/innerInlet/epsilon;
value $inletValue; value $inletValue;
} }
} }
@ -94,13 +94,13 @@ wall
k k
{ {
type kqRWallFunction; type kqRWallFunction;
value uniform $:innerInlet.k; value uniform $/innerInlet/k;
} }
epsilon epsilon
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform $:innerInlet.epsilon; value uniform $/innerInlet/epsilon;
} }
nut nut

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -26,7 +26,10 @@ solidBodyMotionFunction rotatingMotion;
origin (0 0 0); origin (0 0 0);
axis (0 0 1); axis (0 0 1);
omega $:meshMotionProperties.omega; omega $/meshMotionProperties/omega;
// Cleanup
#remove ( meshMotionProperties )
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -56,82 +56,82 @@ geometry
cylinder cylinder
{ {
type cylinder; type cylinder;
point1 ($:aerofoil.xUpper -1e3 0); point1 ($/aerofoil/xUpper -1e3 0);
point2 ($:aerofoil.xUpper 1e3 0); point2 ($/aerofoil/xUpper 1e3 0);
radius $:domain.zMax; radius $/domain/zMax;
} }
} }
vertices vertices
( (
project ($aerofoil.xLower -0.1 $domain.zMin) (cylinder) project ($/aerofoil/xLower -0.1 $/domain/zMin) (cylinder)
($aerofoil.xTrail -0.1 $domain.zMin) ($/aerofoil/xTrail -0.1 $/domain/zMin)
($domain.xMax -0.1 $domain.zMin) ($/domain/xMax -0.1 $/domain/zMin)
project ($domain.xMin -0.1 $aerofoil.zLead) (cylinder) project ($/domain/xMin -0.1 $/aerofoil/zLead) (cylinder)
project ($aerofoil.xLead -0.1 $aerofoil.zLead) (aerofoil) project ($/aerofoil/xLead -0.1 $/aerofoil/zLead) (aerofoil)
project ($aerofoil.xTrail -0.1 $aerofoil.zTrail) (aerofoil) project ($/aerofoil/xTrail -0.1 $/aerofoil/zTrail) (aerofoil)
($domain.xMax -0.1 $aerofoil.zTrail) ($/domain/xMax -0.1 $/aerofoil/zTrail)
project ($aerofoil.xLower -0.1 $aerofoil.zLower) (aerofoil) project ($/aerofoil/xLower -0.1 $/aerofoil/zLower) (aerofoil)
project ($aerofoil.xUpper -0.1 $aerofoil.zUpper) (aerofoil) project ($/aerofoil/xUpper -0.1 $/aerofoil/zUpper) (aerofoil)
project ($aerofoil.xUpper -0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xUpper -0.1 $/domain/zMax) (aerofoil)
project ($aerofoil.xTrail -0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xTrail -0.1 $/domain/zMax) (aerofoil)
($domain.xMax -0.1 $domain.zMax) ($/domain/xMax -0.1 $/domain/zMax)
project ($aerofoil.xLower 0.1 $domain.zMin) (cylinder) project ($/aerofoil/xLower 0.1 $/domain/zMin) (cylinder)
($aerofoil.xTrail 0.1 $domain.zMin) ($/aerofoil/xTrail 0.1 $/domain/zMin)
($domain.xMax 0.1 $domain.zMin) ($/domain/xMax 0.1 $/domain/zMin)
project ($domain.xMin 0.1 $aerofoil.zLead) (cylinder) project ($/domain/xMin 0.1 $/aerofoil/zLead) (cylinder)
project ($aerofoil.xLead 0.1 $aerofoil.zLead) (aerofoil) project ($/aerofoil/xLead 0.1 $/aerofoil/zLead) (aerofoil)
project ($aerofoil.xTrail 0.1 $aerofoil.zTrail) (aerofoil) project ($/aerofoil/xTrail 0.1 $/aerofoil/zTrail) (aerofoil)
($domain.xMax 0.1 $aerofoil.zTrail) ($/domain/xMax 0.1 $/aerofoil/zTrail)
project ($aerofoil.xLower 0.1 $aerofoil.zLower) (aerofoil) project ($/aerofoil/xLower 0.1 $/aerofoil/zLower) (aerofoil)
project ($aerofoil.xUpper 0.1 $aerofoil.zUpper) (aerofoil) project ($/aerofoil/xUpper 0.1 $/aerofoil/zUpper) (aerofoil)
project ($aerofoil.xUpper 0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xUpper 0.1 $/domain/zMax) (aerofoil)
project ($aerofoil.xTrail 0.1 $domain.zMax) (aerofoil) project ($/aerofoil/xTrail 0.1 $/domain/zMax) (aerofoil)
($domain.xMax 0.1 $domain.zMax) ($/domain/xMax 0.1 $/domain/zMax)
); );
blocks blocks
( (
hex ( 7 4 16 19 0 3 15 12) hex ( 7 4 16 19 0 3 15 12)
($:domain.xUCells 1 $:domain.zCells) ($/domain/xUCells 1 $/domain/zCells)
edgeGrading edgeGrading
( (
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading $/domain/leadGrading $/domain/leadGrading $/domain/xUGrading $/domain/xUGrading
1 1 1 1 1 1 1 1
$:domain.zGrading $:domain.zGrading $:domain.zGrading $:domain.zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading
) )
hex ( 5 7 19 17 1 0 12 13) hex ( 5 7 19 17 1 0 12 13)
($:domain.xMCells 1 $:domain.zCells) ($/domain/xMCells 1 $/domain/zCells)
simpleGrading (1 1 $:domain.zGrading) simpleGrading (1 1 $/domain/zGrading)
hex ( 17 18 6 5 13 14 2 1) hex ( 17 18 6 5 13 14 2 1)
($:domain.xDCells 1 $:domain.zCells) ($/domain/xDCells 1 $/domain/zCells)
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading) simpleGrading ($/domain/xDGrading 1 $/domain/zGrading)
hex ( 20 16 4 8 21 15 3 9) hex ( 20 16 4 8 21 15 3 9)
($:domain.xUCells 1 $:domain.zCells) ($/domain/xUCells 1 $/domain/zCells)
edgeGrading edgeGrading
( (
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading $/domain/leadGrading $/domain/leadGrading $/domain/xUGrading $/domain/xUGrading
1 1 1 1 1 1 1 1
$:domain.zGrading $:domain.zGrading $:domain.zGrading $:domain.zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading $/domain/zGrading
) )
hex ( 17 20 8 5 22 21 9 10) hex ( 17 20 8 5 22 21 9 10)
($:domain.xMCells 1 $:domain.zCells) ($/domain/xMCells 1 $/domain/zCells)
simpleGrading (1 1 $:domain.zGrading) simpleGrading (1 1 $/domain/zGrading)
hex ( 5 6 18 17 10 11 23 22) hex ( 5 6 18 17 10 11 23 22)
($:domain.xDCells 1 $:domain.zCells) ($/domain/xDCells 1 $/domain/zCells)
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading) simpleGrading ($/domain/xDGrading 1 $/domain/zGrading)
); );
edges edges
@ -222,5 +222,7 @@ boundary
} }
); );
// Cleanup
#remove ( domain aerofoil )
// ************************************************************************* // // ************************************************************************* //

View File

@ -17,30 +17,30 @@ runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#- Run with processorAgglomerator #- Run with processorAgglomerator
foamDictionary -entry solvers.p.processorAgglomerator -set 'masterCoarsest' system/fvSolution foamDictionary -entry solvers/p/processorAgglomerator -set masterCoarsest system/fvSolution
runParallel -s masterCoarsest $(getApplication) runParallel -s masterCoarsest $(getApplication)
#- Run with processorAgglomerator+nCellsInMasterLevel #- Run with processorAgglomerator+nCellsInMasterLevel
foamDictionary -entry solvers.p.nCellsInMasterLevel -set '1' system/fvSolution foamDictionary -entry solvers/p/nCellsInMasterLevel -set 1 system/fvSolution
runParallel -s nCellsInMasterLevel $(getApplication) runParallel -s nCellsInMasterLevel $(getApplication)
#- Run with processorAgglomerator - multiple masters #- Run with processorAgglomerator - multiple masters
foamDictionary -entry solvers.p.nMasters -set '2' system/fvSolution foamDictionary -entry solvers/p/nMasters -set 2 system/fvSolution
runParallel -s masterCoarsest2 $(getApplication) runParallel -s masterCoarsest2 $(getApplication)
#- Run with processorAgglomerator #- Run with processorAgglomerator
foamDictionary -entry solvers.p.processorAgglomerator -set 'procFaces' system/fvSolution foamDictionary -entry solvers/p/processorAgglomerator -set procFaces system/fvSolution
foamDictionary -entry solvers.p.nAgglomeratingCells -set 100 system/fvSolution foamDictionary -entry solvers/p/nAgglomeratingCells -set 100 system/fvSolution
runParallel -s procFaces $(getApplication) runParallel -s procFaces $(getApplication)
foamDictionary -entry solvers.p.nAgglomeratingCells -remove system/fvSolution foamDictionary -entry solvers/p/nAgglomeratingCells -remove system/fvSolution
#- Run with processorAgglomerator #- Run with processorAgglomerator
foamDictionary -entry solvers.p.processorAgglomerator -set 'eager' system/fvSolution foamDictionary -entry solvers/p/processorAgglomerator -set eager system/fvSolution
runParallel -s eager $(getApplication) runParallel -s eager $(getApplication)
#- Run with processorAgglomerator #- Run with processorAgglomerator
foamDictionary -entry solvers.p.processorAgglomerator -set 'manual' system/fvSolution foamDictionary -entry solvers/p/processorAgglomerator -set manual system/fvSolution
foamDictionary -entry solvers.p.processorAgglomeration -set '((9 ((0 1 2 3)(4 5 6 7))))' system/fvSolution foamDictionary -entry solvers/p/processorAgglomeration -set '((9 ((0 1 2 3)(4 5 6 7))))' system/fvSolution
runParallel -s manual $(getApplication) runParallel -s manual $(getApplication)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -48,9 +48,9 @@ plot_tau() {
href="0.0127" href="0.0127"
echo " # ccx tau_xx tau_yy tau_zz" > tauw.dat echo " # ccx tau_xx tau_yy tau_zz" > tauw.dat
foamDictionary -entry boundaryField.lowerWall.value -value "$timeDir"/Cx | \ foamDictionary -entry boundaryField/lowerWall/value -value "$timeDir"/Cx | \
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$ sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$
foamDictionary -entry boundaryField.lowerWall.value -value "$timeDir"/wallShearStress | \ foamDictionary -entry boundaryField/lowerWall/value -value "$timeDir"/wallShearStress | \
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > tau.$$ sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > tau.$$
paste -d ' ' Cx.$$ tau.$$ >> tauw.dat paste -d ' ' Cx.$$ tau.$$ >> tauw.dat
rm -f Cx.$$ tau.$$ rm -f Cx.$$ tau.$$

View File

@ -50,9 +50,9 @@ runApplication $(getApplication)
endTime=$(foamListTimes -latestTime) endTime=$(foamListTimes -latestTime)
# Create datasets for benchmark comparisons # Create datasets for benchmark comparisons
extractVal boundaryField.bump.value "$endTime/Cx" Cx.$$ extractVal boundaryField/bump/value "$endTime/Cx" Cx.$$
extractVal boundaryField.bump.value "$endTime/wallShearStress" tau.$$ extractVal boundaryField/bump/value "$endTime/wallShearStress" tau.$$
extractVal boundaryField.bump.value "$endTime/Cp" cp.$$ extractVal boundaryField/bump/value "$endTime/Cp" cp.$$
echo "# ccx tau_xx tau_yy tau_zz cp" > profiles.dat echo "# ccx tau_xx tau_yy tau_zz cp" > profiles.dat
paste -d ' ' Cx.$$ tau.$$ cp.$$ >> profiles.dat paste -d ' ' Cx.$$ tau.$$ cp.$$ >> profiles.dat

View File

@ -54,9 +54,9 @@ runApplication reconstructPar
endTime=$(foamListTimes -latestTime) endTime=$(foamListTimes -latestTime)
# Create datasets for benchmark comparisons # Create datasets for benchmark comparisons
extractVal boundaryField.bump.value "$endTime/Cx" Cx.$$ extractVal boundaryField/bump/value "$endTime/Cx" Cx.$$
extractVal boundaryField.bump.value "$endTime/wallShearStress" tau.$$ extractVal boundaryField/bump/value "$endTime/wallShearStress" tau.$$
extractVal boundaryField.bump.value "$endTime/Cp" cp.$$ extractVal boundaryField/bump/value "$endTime/Cp" cp.$$
echo "# ccx tau_xx tau_yy tau_zz cp" > profiles.dat echo "# ccx tau_xx tau_yy tau_zz cp" > profiles.dat
paste -d ' ' Cx.$$ tau.$$ cp.$$ >> profiles.dat paste -d ' ' Cx.$$ tau.$$ cp.$$ >> profiles.dat

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -33,29 +33,29 @@ geom
vertices vertices
( (
( $:geom.r0 0 0) ( $/geom/r0 0 0)
( 0 $geom.r0 0) ( 0 $/geom/r0 0)
($:geom.mr0 0 0) ($/geom/mr0 0 0)
( 0 $geom.mr0 0) ( 0 $/geom/mr0 0)
( $:geom.r1 0 0) ( $/geom/r1 0 0)
( 0 $geom.r1 0) ( 0 $/geom/r1 0)
($:geom.mr1 0 0) ($/geom/mr1 0 0)
( 0 $geom.mr1 0) ( 0 $/geom/mr1 0)
( $:geom.r0 0 1) ( $/geom/r0 0 1)
( 0 $geom.r0 1) ( 0 $/geom/r0 1)
($:geom.mr0 0 1) ($/geom/mr0 0 1)
( 0 $geom.mr0 1) ( 0 $/geom/mr0 1)
( $:geom.r1 0 1) ( $/geom/r1 0 1)
( 0 $geom.r1 1) ( 0 $/geom/r1 1)
($:geom.mr1 0 1) ($/geom/mr1 0 1)
( 0 $geom.mr1 1) ( 0 $/geom/mr1 1)
); );
blockInfo blockInfo
all all
($:geom.ntheta $:geom.nr 1) ($/geom/ntheta $/geom/nr 1)
simpleGrading (1 ((0.5 0.5 $:geom.g)(0.5 0.5 $:geom.invG)) 1); simpleGrading (1 ((0.5 0.5 $/geom/g)(0.5 0.5 $/geom/invG)) 1);
blocks blocks
( (
@ -123,4 +123,8 @@ mergePatchPairs
( (
); );
// Cleanup
#remove ( geom blockInfo )
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
backgroundMesh domain
{ {
xMin -1.26; xMin -1.26;
xMax 1.26; xMax 1.26;
@ -31,24 +31,24 @@ scale 1;
vertices vertices
( (
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin) ($/domain/xMin $/domain/yMin $/domain/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin) ($/domain/xMax $/domain/yMin $/domain/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin) ($/domain/xMax $/domain/yMax $/domain/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin) ($/domain/xMin $/domain/yMax $/domain/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax) ($/domain/xMin $/domain/yMin $/domain/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax) ($/domain/xMax $/domain/yMin $/domain/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax) ($/domain/xMax $/domain/yMax $/domain/zMax)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax) ($/domain/xMin $/domain/yMax $/domain/zMax)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) hex (0 1 2 3 4 5 6 7)
( (
$:backgroundMesh.xCells $/domain/xCells
$:backgroundMesh.yCells $/domain/yCells
$:backgroundMesh.zCells $/domain/zCells
) )
simpleGrading (1 1 1) simpleGrading (1 1 1)
); );
@ -66,4 +66,7 @@ mergePatchPairs
); );
// Cleanup
#remove ( domain )
// ************************************************************************* // // ************************************************************************* //

View File

@ -50,9 +50,9 @@ runApplication $(getApplication)
endTime=$(foamListTimes -latestTime) endTime=$(foamListTimes -latestTime)
# Create datasets for benchmark comparisons # Create datasets for benchmark comparisons
extractVal boundaryField.bottomWall.value "$endTime/Cx" Cx.$$ extractVal boundaryField/bottomWall/value "$endTime/Cx" Cx.$$
extractVal boundaryField.bottomWall.value "$endTime/wallShearStress" tau.$$ extractVal boundaryField/bottomWall/value "$endTime/wallShearStress" tau.$$
extractVal boundaryField.bottomWall.value "$endTime/yPlus" yPlus.$$ extractVal boundaryField/bottomWall/value "$endTime/yPlus" yPlus.$$
echo "# ccx tau_xx tau_yy tau_zz y+" > profiles.dat echo "# ccx tau_xx tau_yy tau_zz y+" > profiles.dat
paste -d ' ' Cx.$$ tau.$$ yPlus.$$ >> profiles.dat paste -d ' ' Cx.$$ tau.$$ yPlus.$$ >> profiles.dat

View File

@ -54,9 +54,9 @@ runApplication reconstructPar
endTime=$(foamListTimes -latestTime) endTime=$(foamListTimes -latestTime)
# Create datasets for benchmark comparisons # Create datasets for benchmark comparisons
extractVal boundaryField.bottomWall.value "$endTime/Cx" Cx.$$ extractVal boundaryField/bottomWall/value "$endTime/Cx" Cx.$$
extractVal boundaryField.bottomWall.value "$endTime/wallShearStress" tau.$$ extractVal boundaryField/bottomWall/value "$endTime/wallShearStress" tau.$$
extractVal boundaryField.bottomWall.value "$endTime/yPlus" yPlus.$$ extractVal boundaryField/bottomWall/value "$endTime/yPlus" yPlus.$$
echo "# ccx tau_xx tau_yy tau_zz y+" > profiles.dat echo "# ccx tau_xx tau_yy tau_zz y+" > profiles.dat
paste -d ' ' Cx.$$ tau.$$ yPlus.$$ >> profiles.dat paste -d ' ' Cx.$$ tau.$$ yPlus.$$ >> profiles.dat

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
backgroundMesh domain
{ {
xMin -20; // L = 350 xMin -20; // L = 350
xMax 330; xMax 330;
@ -29,26 +29,27 @@ backgroundMesh
scale 1; scale 1;
// Note: uses older '.' syntax (to test compatibility)
vertices vertices
( (
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin) ($:domain.xMin $:domain.yMin $:domain.zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin) ($:domain.xMax $:domain.yMin $:domain.zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin) ($:domain.xMax $:domain.yMax $:domain.zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin) ($:domain.xMin $:domain.yMax $:domain.zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax) ($:domain.xMin $:domain.yMin $:domain.zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax) ($:domain.xMax $:domain.yMin $:domain.zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax) ($:domain.xMax $:domain.yMax $:domain.zMax)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax) ($:domain.xMin $:domain.yMax $:domain.zMax)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) hex (0 1 2 3 4 5 6 7)
( (
$:backgroundMesh.xCells $:domain.xCells
$:backgroundMesh.yCells $:domain.yCells
$:backgroundMesh.zCells $:domain.zCells
) )
simpleGrading (1 1 1) simpleGrading (1 1 1)
); );
@ -104,4 +105,7 @@ mergePatchPairs
); );
// Cleanup
#remove ( domain )
// ************************************************************************* // // ************************************************************************* //

View File

@ -18,13 +18,13 @@ mkdir -p 0
cp -f system/fvSchemes system/fvSchemes.bck cp -f system/fvSchemes system/fvSchemes.bck
# Run with basic # Run with basic
foamDictionary system/fvSchemes -entry geometry.type -set basic foamDictionary system/fvSchemes -entry geometry/type -set basic
runApplication -s basic snappyHexMesh runApplication -s basic snappyHexMesh
runApplication -s basic checkMesh -writeAllFields runApplication -s basic checkMesh -writeAllFields
foamListTimes -rm foamListTimes -rm
# Run with highAspectRatio # Run with highAspectRatio
foamDictionary system/fvSchemes -entry geometry.type -set highAspectRatio foamDictionary system/fvSchemes -entry geometry/type -set highAspectRatio
runApplication -s highAspectRatio snappyHexMesh runApplication -s highAspectRatio snappyHexMesh
runApplication -s highAspectRatio checkMesh -writeAllFields runApplication -s highAspectRatio checkMesh -writeAllFields

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2306 | | \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com | | \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
backgroundMesh domain
{ {
xMin -1.26; xMin -1.26;
xMax 1.26; xMax 1.26;
@ -31,24 +31,24 @@ scale 1;
vertices vertices
( (
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin) ($/domain/xMin $/domain/yMin $/domain/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin) ($/domain/xMax $/domain/yMin $/domain/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin) ($/domain/xMax $/domain/yMax $/domain/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin) ($/domain/xMin $/domain/yMax $/domain/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax) ($/domain/xMin $/domain/yMin $/domain/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax) ($/domain/xMax $/domain/yMin $/domain/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax) ($/domain/xMax $/domain/yMax $/domain/zMax)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax) ($/domain/xMin $/domain/yMax $/domain/zMax)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) hex (0 1 2 3 4 5 6 7)
( (
$:backgroundMesh.xCells $/domain/xCells
$:backgroundMesh.yCells $/domain/yCells
$:backgroundMesh.zCells $/domain/zCells
) )
simpleGrading (1 1 1) simpleGrading (1 1 1)
); );
@ -66,4 +66,7 @@ mergePatchPairs
); );
// Cleanup
#remove ( domain )
// ************************************************************************* // // ************************************************************************* //

View File

@ -18,14 +18,14 @@ runApplication decomposePar
#- Run with leak-detection (writes postProcessing/leakPath) but no closure #- Run with leak-detection (writes postProcessing/leakPath) but no closure
foamDictionary system/snappyHexMeshDict \ foamDictionary system/snappyHexMeshDict \
-entry castellatedMeshControls.useLeakClosure -set false -entry castellatedMeshControls/useLeakClosure -set false
runParallel -s leak snappyHexMesh runParallel -s leak snappyHexMesh
runParallel -s leak checkMesh runParallel -s leak checkMesh
cleanTimeDirectories cleanTimeDirectories
#- Run with leak-detection (writes postProcessing/leakPath) and closure #- Run with leak-detection (writes postProcessing/leakPath) and closure
foamDictionary system/snappyHexMeshDict \ foamDictionary system/snappyHexMeshDict \
-entry castellatedMeshControls.useLeakClosure -set true -entry castellatedMeshControls/useLeakClosure -set true
runParallel -s leak_and_closure snappyHexMesh runParallel -s leak_and_closure snappyHexMesh
runParallel -s leak_and_closure checkMesh runParallel -s leak_and_closure checkMesh

View File

@ -14,9 +14,9 @@ then
cp -f system/controlDict system/controlDict.orig cp -f system/controlDict system/controlDict.orig
foamDictionary system/controlDict -entry endTime -set 4 foamDictionary system/controlDict -entry endTime -set 4
foamDictionary system/controlDict -entry startTime -set 0.5 foamDictionary system/controlDict -entry startTime -set 0.5
foamDictionary 0.5/T.liquid -entry boundaryField.wall2.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 300000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 300000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set fixedValue
runApplication -a $(getApplication) runApplication -a $(getApplication)
fi fi

View File

@ -14,9 +14,9 @@ then
cp -f system/controlDict system/controlDict.orig cp -f system/controlDict system/controlDict.orig
foamDictionary system/controlDict -entry endTime -set 4 foamDictionary system/controlDict -entry endTime -set 4
foamDictionary system/controlDict -entry startTime -set 0.5 foamDictionary system/controlDict -entry startTime -set 0.5
foamDictionary 0.5/T.liquid -entry boundaryField.wall2.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 300000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 300000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set fixedValue
runApplication -a $(getApplication) runApplication -a $(getApplication)
fi fi

View File

@ -14,9 +14,9 @@ then
cp -f system/controlDict system/controlDict.orig cp -f system/controlDict system/controlDict.orig
foamDictionary system/controlDict -entry endTime -set 4 foamDictionary system/controlDict -entry endTime -set 4
foamDictionary system/controlDict -entry startTime -set 0.5 foamDictionary system/controlDict -entry startTime -set 0.5
foamDictionary 0.5/T.liquid -entry boundaryField.wall2.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 300000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 300000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 300000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set fixedValue
runApplication -a $(getApplication) runApplication -a $(getApplication)
fi fi

View File

@ -343,7 +343,7 @@ plot_yPlus_vs_uPlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleU/$endTime/y_U.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleU/$endTime/y_U.xy"
@ -398,7 +398,7 @@ plot_yPlus_vs_R_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleR/$endTime/y_turbulenceProperties:R.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleR/$endTime/y_turbulenceProperties:R.xy"
@ -500,7 +500,7 @@ plot_yPlus_vs_epsilonPlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleEpsilon/$endTime/y_turbulenceProperties:epsilon.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleEpsilon/$endTime/y_turbulenceProperties:epsilon.xy"
@ -555,7 +555,7 @@ plot_yPlus_vs_productionRatePlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleG/$endTime/y_productionRate.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleG/$endTime/y_productionRate.xy"
@ -638,7 +638,7 @@ do
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
plot_yPlus_vs_uPlus "$setup" "$endTime" "$nu" "$uTau" plot_yPlus_vs_uPlus "$setup" "$endTime" "$nu" "$uTau"

View File

@ -378,7 +378,7 @@ plot_yPlus_vs_uPlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleU/$endTime/y_U.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleU/$endTime/y_U.xy"
@ -434,7 +434,7 @@ plot_yPlus_vs_R_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleR/$endTime/y_turbulenceProperties:R.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleR/$endTime/y_turbulenceProperties:R.xy"
@ -537,7 +537,7 @@ plot_yPlus_vs_epsilonPlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleEpsilon/$endTime/y_turbulenceProperties:epsilon.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleEpsilon/$endTime/y_turbulenceProperties:epsilon.xy"
@ -593,7 +593,7 @@ plot_yPlus_vs_productionRatePlus_all_setups() {
# few manipulations # few manipulations
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
sampleFiles[$n]="results/$setup/postProcessing/sampleG/$endTime/y_productionRate.xy" sampleFiles[$n]="results/$setup/postProcessing/sampleG/$endTime/y_productionRate.xy"
@ -678,7 +678,7 @@ do
RASModel=$(foamDictionary results/$setup/constant/turbulenceProperties -entry RAS.RASModel -value) RASModel=$(foamDictionary results/$setup/constant/turbulenceProperties -entry RAS.RASModel -value)
endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value) endTime=$(foamDictionary results/$setup/system/controlDict -entry endTime -value)
nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g') nu=$(foamDictionary results/$setup/constant/transportProperties -entry nu | sed 's|^.*\s\(.*\);|\1|g')
tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField.bottom.value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6) tau=$(foamDictionary results/$setup/$endTime/wallShearStress -entry boundaryField/bottom/value -value | sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' | cut -d' ' -f6)
uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }') uTau=$(awk -v tau="$tau" 'BEGIN { printf "%.16f", sqrt(-1*tau) }')
plot_initial_iteration_residuals "$setup" plot_initial_iteration_residuals "$setup"