tutorials: Updated to use the new dictionary "slash" syntax
This commit is contained in:
@ -13,6 +13,7 @@ FoamFile
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
#inputSyntax slash
|
||||
|
||||
domain
|
||||
{
|
||||
@ -56,82 +57,82 @@ geometry
|
||||
cylinder
|
||||
{
|
||||
type searchableCylinder;
|
||||
point1 ($:aerofoil.xUpper -1e3 0);
|
||||
point2 ($:aerofoil.xUpper 1e3 0);
|
||||
radius $:domain.zMax;
|
||||
point1 ($!aerofoil/xUpper -1e3 0);
|
||||
point2 ($!aerofoil/xUpper 1e3 0);
|
||||
radius $!domain/zMax;
|
||||
}
|
||||
}
|
||||
|
||||
vertices
|
||||
(
|
||||
project ($aerofoil.xLower -0.1 $domain.zMin) (cylinder)
|
||||
($aerofoil.xTrail -0.1 $domain.zMin)
|
||||
($domain.xMax -0.1 $domain.zMin)
|
||||
project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)
|
||||
($aerofoil/xTrail -0.1 $domain/zMin)
|
||||
($domain/xMax -0.1 $domain/zMin)
|
||||
|
||||
project ($domain.xMin -0.1 $aerofoil.zLead) (cylinder)
|
||||
project ($aerofoil.xLead -0.1 $aerofoil.zLead) (aerofoil)
|
||||
project ($aerofoil.xTrail -0.1 $aerofoil.zTrail) (aerofoil)
|
||||
($domain.xMax -0.1 $aerofoil.zTrail)
|
||||
project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)
|
||||
project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)
|
||||
project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)
|
||||
($domain/xMax -0.1 $aerofoil/zTrail)
|
||||
|
||||
project ($aerofoil.xLower -0.1 $aerofoil.zLower) (aerofoil)
|
||||
project ($aerofoil.xUpper -0.1 $aerofoil.zUpper) (aerofoil)
|
||||
project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)
|
||||
project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)
|
||||
|
||||
project ($aerofoil.xUpper -0.1 $domain.zMax) (aerofoil)
|
||||
project ($aerofoil.xTrail -0.1 $domain.zMax) (aerofoil)
|
||||
($domain.xMax -0.1 $domain.zMax)
|
||||
project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)
|
||||
project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)
|
||||
($domain/xMax -0.1 $domain/zMax)
|
||||
|
||||
project ($aerofoil.xLower 0.1 $domain.zMin) (cylinder)
|
||||
($aerofoil.xTrail 0.1 $domain.zMin)
|
||||
($domain.xMax 0.1 $domain.zMin)
|
||||
project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)
|
||||
($aerofoil/xTrail 0.1 $domain/zMin)
|
||||
($domain/xMax 0.1 $domain/zMin)
|
||||
|
||||
project ($domain.xMin 0.1 $aerofoil.zLead) (cylinder)
|
||||
project ($aerofoil.xLead 0.1 $aerofoil.zLead) (aerofoil)
|
||||
project ($aerofoil.xTrail 0.1 $aerofoil.zTrail) (aerofoil)
|
||||
($domain.xMax 0.1 $aerofoil.zTrail)
|
||||
project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)
|
||||
project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)
|
||||
project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)
|
||||
($domain/xMax 0.1 $aerofoil/zTrail)
|
||||
|
||||
project ($aerofoil.xLower 0.1 $aerofoil.zLower) (aerofoil)
|
||||
project ($aerofoil.xUpper 0.1 $aerofoil.zUpper) (aerofoil)
|
||||
project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)
|
||||
project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)
|
||||
|
||||
project ($aerofoil.xUpper 0.1 $domain.zMax) (aerofoil)
|
||||
project ($aerofoil.xTrail 0.1 $domain.zMax) (aerofoil)
|
||||
($domain.xMax 0.1 $domain.zMax)
|
||||
project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)
|
||||
project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)
|
||||
($domain/xMax 0.1 $domain/zMax)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex ( 7 4 16 19 0 3 15 12)
|
||||
($:domain.xUCells 1 $:domain.zCells)
|
||||
($!domain/xUCells 1 $!domain/zCells)
|
||||
edgeGrading
|
||||
(
|
||||
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading
|
||||
$!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading
|
||||
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)
|
||||
($:domain.xMCells 1 $:domain.zCells)
|
||||
simpleGrading (1 1 $:domain.zGrading)
|
||||
($!domain/xMCells 1 $!domain/zCells)
|
||||
simpleGrading (1 1 $!domain/zGrading)
|
||||
|
||||
hex ( 17 18 6 5 13 14 2 1)
|
||||
($:domain.xDCells 1 $:domain.zCells)
|
||||
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading)
|
||||
($!domain/xDCells 1 $!domain/zCells)
|
||||
simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)
|
||||
|
||||
hex ( 20 16 4 8 21 15 3 9)
|
||||
($:domain.xUCells 1 $:domain.zCells)
|
||||
($!domain/xUCells 1 $!domain/zCells)
|
||||
edgeGrading
|
||||
(
|
||||
$:domain.leadGrading $:domain.leadGrading $:domain.xUGrading $:domain.xUGrading
|
||||
$!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading
|
||||
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)
|
||||
($:domain.xMCells 1 $:domain.zCells)
|
||||
simpleGrading (1 1 $:domain.zGrading)
|
||||
($!domain/xMCells 1 $!domain/zCells)
|
||||
simpleGrading (1 1 $!domain/zGrading)
|
||||
|
||||
hex ( 5 6 18 17 10 11 23 22)
|
||||
($:domain.xDCells 1 $:domain.zCells)
|
||||
simpleGrading ($:domain.xDGrading 1 $:domain.zGrading)
|
||||
($!domain/xDCells 1 $!domain/zCells)
|
||||
simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)
|
||||
);
|
||||
|
||||
edges
|
||||
|
||||
@ -18,25 +18,36 @@ FoamFile
|
||||
|
||||
dimensions [0 0 0 1 0 0 0];
|
||||
|
||||
internalField uniform $:outerInlet.T;
|
||||
internalField uniform $!outerInlet/T;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
innerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:innerInlet.T;
|
||||
value uniform $!innerInlet/T;
|
||||
}
|
||||
|
||||
outerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:outerInlet.T;
|
||||
value uniform $!outerInlet/T;
|
||||
}
|
||||
|
||||
outlet { $:outlet.T; }
|
||||
staticWalls { $:wall.T; }
|
||||
movingWalls { $staticWalls; }
|
||||
outlet
|
||||
{
|
||||
$!outlet/T;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$!wall/T;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$staticWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -26,18 +26,29 @@ boundaryField
|
||||
innerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:innerInlet.U;
|
||||
value uniform $!innerInlet/U;
|
||||
}
|
||||
|
||||
outerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:outerInlet.U;
|
||||
value uniform $!outerInlet/U;
|
||||
}
|
||||
|
||||
outlet { $:outlet.U; }
|
||||
staticWalls { $:wall.U; }
|
||||
movingWalls { $:movingWall.U; }
|
||||
outlet
|
||||
{
|
||||
$!outlet/U;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$!wall/U;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$!movingWall/U;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -23,10 +23,25 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet { $:calculated.alphat; }
|
||||
outlet { $:calculated.alphat; }
|
||||
movingWalls { $:wall.alphat; }
|
||||
staticWalls { $movingWalls; }
|
||||
inlet
|
||||
{
|
||||
$!calculated/alphat;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
$!calculated/alphat;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$!wall/alphat;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$movingWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -19,25 +19,36 @@ FoamFile
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
|
||||
internalField uniform $:innerInlet.epsilon;
|
||||
internalField uniform $!innerInlet/epsilon;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
innerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:innerInlet.epsilon;
|
||||
value uniform $!innerInlet/epsilon;
|
||||
}
|
||||
|
||||
outerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:outerInlet.epsilon;
|
||||
value uniform $!outerInlet/epsilon;
|
||||
}
|
||||
|
||||
outlet { $:outlet.epsilon; }
|
||||
staticWalls { $:wall.epsilon; }
|
||||
movingWalls { $staticWalls; }
|
||||
outlet
|
||||
{
|
||||
$!outlet/epsilon;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$!wall/epsilon;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$staticWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -19,25 +19,36 @@ FoamFile
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform $:innerInlet.k;
|
||||
internalField uniform $!innerInlet/k;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
innerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:innerInlet.k;
|
||||
value uniform $!innerInlet/k;
|
||||
}
|
||||
|
||||
outerInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform $:outerInlet.k;
|
||||
value uniform $!outerInlet/k;
|
||||
}
|
||||
|
||||
outlet { $:outlet.k; }
|
||||
staticWalls { $:wall.k; }
|
||||
movingWalls { $staticWalls; }
|
||||
outlet
|
||||
{
|
||||
$!outlet/k;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$!wall/k;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$staticWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -23,10 +23,25 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet { $:calculated.nut; }
|
||||
outlet { $:calculated.nut; }
|
||||
movingWalls { $:wall.nut; }
|
||||
staticWalls { $movingWalls; }
|
||||
inlet
|
||||
{
|
||||
$!calculated/nut;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
$!calculated/nut;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$!wall/nut;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$movingWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -23,10 +23,25 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet { $:inlet.p; }
|
||||
outlet { $:outlet.p; }
|
||||
staticWalls { $:wall.p; }
|
||||
movingWalls { $staticWalls; }
|
||||
inlet
|
||||
{
|
||||
$!inlet/p;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
$!outlet/p;
|
||||
}
|
||||
|
||||
staticWalls
|
||||
{
|
||||
$!wall/p;
|
||||
}
|
||||
|
||||
movingWalls
|
||||
{
|
||||
$staticWalls;
|
||||
}
|
||||
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
}
|
||||
|
||||
@ -14,6 +14,7 @@ FoamFile
|
||||
object caseProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
#inputSyntax slash;
|
||||
|
||||
calculated
|
||||
{
|
||||
@ -54,21 +55,21 @@ outlet
|
||||
T
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform $:outerInlet.T;
|
||||
inletValue uniform $!outerInlet/T;
|
||||
value $inletValue;
|
||||
}
|
||||
|
||||
k
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform $:innerInlet.k;
|
||||
inletValue uniform $!innerInlet/k;
|
||||
value $inletValue;
|
||||
}
|
||||
|
||||
epsilon
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform $:innerInlet.epsilon;
|
||||
inletValue uniform $!innerInlet/epsilon;
|
||||
value $inletValue;
|
||||
}
|
||||
}
|
||||
@ -94,13 +95,13 @@ wall
|
||||
k
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value uniform $:innerInlet.k;
|
||||
value uniform $!innerInlet/k;
|
||||
}
|
||||
|
||||
epsilon
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value uniform $:innerInlet.epsilon;
|
||||
value uniform $!innerInlet/epsilon;
|
||||
}
|
||||
|
||||
nut
|
||||
|
||||
@ -14,6 +14,7 @@ FoamFile
|
||||
object caseSummary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
#inputSyntax slash;
|
||||
|
||||
innerInlet
|
||||
{
|
||||
|
||||
@ -14,6 +14,7 @@ FoamFile
|
||||
object dynamicMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
#inputSyntax slash;
|
||||
|
||||
#include "${FOAM_CASE}/constant/caseSettings"
|
||||
|
||||
@ -27,6 +28,6 @@ solidBodyMotionFunction rotatingMotion;
|
||||
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega $:meshMotionProperties.omega;
|
||||
omega $!meshMotionProperties/omega;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user