tutorials: Updated to use the new dictionary "slash" syntax

This commit is contained in:
Henry Weller
2019-07-11 19:44:29 +01:00
parent 163324d837
commit e947e4d301
28 changed files with 258 additions and 174 deletions

View File

@ -24,7 +24,7 @@ runApplication extrudeToRegionMesh -dict system/extrudeToRegionMeshDictPyr -over
# change samplePatch in the boundary to coupled patch betwee region0 and # change samplePatch in the boundary to coupled patch betwee region0 and
# pyrolysis # pyrolysis
foamDictionary constant/filmRegion/polyMesh/boundary \ foamDictionary constant/filmRegion/polyMesh/boundary \
-entry entry0.region0_to_filmRegion_coupledWall.samplePatch \ -entry entry0/region0_to_filmRegion_coupledWall/samplePatch \
-set region0_to_pyrolysisRegion_coupledWall -set region0_to_pyrolysisRegion_coupledWall
# create faceSets for inlet, outlet, sides for the Film # create faceSets for inlet, outlet, sides for the Film

View File

@ -7,7 +7,7 @@
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
version 2; version 10;
format ascii; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
@ -18,7 +18,7 @@ application reactingFoam;
startFrom startTime; startFrom startTime;
startTime 0; startTime 10;
stopAt endTime; stopAt endTime;
@ -44,5 +44,7 @@ timePrecision 6;
runTimeModifiable true; runTimeModifiable true;
FoamFile/version 0;
// ************************************************************************* // // ************************************************************************* //

View File

@ -26,24 +26,24 @@ 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
{ {
@ -55,7 +55,7 @@ boundaryField
samplePatch membranePipe; samplePatch membranePipe;
c 0.1; c 0.1;
input massFraction; input massFraction;
value uniform $:sleeve.CH4; value uniform $!sleeve/CH4;
} }
membranePipe membranePipe
{ {
@ -63,7 +63,7 @@ boundaryField
samplePatch membraneSleeve; samplePatch membraneSleeve;
c 0.1; c 0.1;
input massFraction; input massFraction;
value uniform $:pipe.CH4; value uniform $!pipe/CH4;
} }
} }

View File

@ -26,24 +26,24 @@ 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
{ {
@ -52,12 +52,12 @@ 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;
} }
} }

View File

@ -26,24 +26,24 @@ 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
{ {
@ -52,12 +52,12 @@ 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;
} }
} }

View File

@ -14,6 +14,7 @@ FoamFile
object include; object include;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
sleeve sleeve
{ {

View File

@ -19,9 +19,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
@ -31,9 +31,9 @@ regions
name pipe; name 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
); );
} }
); );

View File

@ -13,6 +13,7 @@ FoamFile
object blockMeshDict; object blockMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash
domain domain
{ {
@ -56,82 +57,82 @@ geometry
cylinder cylinder
{ {
type searchableCylinder; type searchableCylinder;
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

View File

@ -18,25 +18,36 @@ 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.T; } outlet
staticWalls { $:wall.T; } {
movingWalls { $staticWalls; } $!outlet/T;
}
staticWalls
{
$!wall/T;
}
movingWalls
{
$staticWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -26,18 +26,29 @@ 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.U; } outlet
staticWalls { $:wall.U; } {
movingWalls { $:movingWall.U; } $!outlet/U;
}
staticWalls
{
$!wall/U;
}
movingWalls
{
$!movingWall/U;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -23,10 +23,25 @@ internalField uniform 0;
boundaryField boundaryField
{ {
inlet { $:calculated.alphat; } inlet
outlet { $:calculated.alphat; } {
movingWalls { $:wall.alphat; } $!calculated/alphat;
staticWalls { $movingWalls; } }
outlet
{
$!calculated/alphat;
}
movingWalls
{
$!wall/alphat;
}
staticWalls
{
$movingWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -19,25 +19,36 @@ 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.epsilon; } outlet
staticWalls { $:wall.epsilon; } {
movingWalls { $staticWalls; } $!outlet/epsilon;
}
staticWalls
{
$!wall/epsilon;
}
movingWalls
{
$staticWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -19,25 +19,36 @@ 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.k; } outlet
staticWalls { $:wall.k; } {
movingWalls { $staticWalls; } $!outlet/k;
}
staticWalls
{
$!wall/k;
}
movingWalls
{
$staticWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -23,10 +23,25 @@ internalField uniform 0;
boundaryField boundaryField
{ {
inlet { $:calculated.nut; } inlet
outlet { $:calculated.nut; } {
movingWalls { $:wall.nut; } $!calculated/nut;
staticWalls { $movingWalls; } }
outlet
{
$!calculated/nut;
}
movingWalls
{
$!wall/nut;
}
staticWalls
{
$movingWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -23,10 +23,25 @@ internalField uniform 1e5;
boundaryField boundaryField
{ {
inlet { $:inlet.p; } inlet
outlet { $:outlet.p; } {
staticWalls { $:wall.p; } $!inlet/p;
movingWalls { $staticWalls; } }
outlet
{
$!outlet/p;
}
staticWalls
{
$!wall/p;
}
movingWalls
{
$staticWalls;
}
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"
} }

View File

@ -14,6 +14,7 @@ FoamFile
object caseProperties; object caseProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
calculated calculated
{ {
@ -54,21 +55,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 +95,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

@ -14,6 +14,7 @@ FoamFile
object caseSummary; object caseSummary;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
innerInlet innerInlet
{ {

View File

@ -14,6 +14,7 @@ FoamFile
object dynamicMeshDict; object dynamicMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
#include "${FOAM_CASE}/constant/caseSettings" #include "${FOAM_CASE}/constant/caseSettings"
@ -27,6 +28,6 @@ solidBodyMotionFunction rotatingMotion;
origin (0 0 0); origin (0 0 0);
axis (0 0 1); axis (0 0 1);
omega $:meshMotionProperties.omega; omega $!meshMotionProperties/omega;
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,6 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
#include "$FOAM_CASE/system/blockMeshDict" #include "$FOAM_CASE/system/blockMeshDict"
@ -27,7 +28,7 @@ actions
sourceInfo sourceInfo
{ {
centre (0 0 0); centre (0 0 0);
radius $:geometry.sphere.radius; radius $!geometry/sphere/radius;
} }
} }
{ {

View File

@ -13,6 +13,7 @@ FoamFile
object blockMeshDict; object blockMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
backgroundMesh backgroundMesh
{ {
@ -31,38 +32,30 @@ convertToMeters 1;
vertices vertices
( (
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin) ($!backgroundMesh/xMin $!backgroundMesh/yMin $!backgroundMesh/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin) ($!backgroundMesh/xMax $!backgroundMesh/yMin $!backgroundMesh/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin) ($!backgroundMesh/xMax $!backgroundMesh/yMax $!backgroundMesh/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin) ($!backgroundMesh/xMin $!backgroundMesh/yMax $!backgroundMesh/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax) ($!backgroundMesh/xMin $!backgroundMesh/yMin $!backgroundMesh/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax) ($!backgroundMesh/xMax $!backgroundMesh/yMin $!backgroundMesh/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax) ($!backgroundMesh/xMax $!backgroundMesh/yMax $!backgroundMesh/zMax)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax) ($!backgroundMesh/xMin $!backgroundMesh/yMax $!backgroundMesh/zMax)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) hex (0 1 2 3 4 5 6 7)
( (
$:backgroundMesh.xCells $!backgroundMesh/xCells
$:backgroundMesh.yCells $!backgroundMesh/yCells
$:backgroundMesh.zCells $!backgroundMesh/zCells
) )
simpleGrading (1 1 1) simpleGrading (1 1 1)
); );
edges
(
);
boundary boundary
( (
); );
mergePatchPairs
(
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,6 +13,7 @@ FoamFile
object blockMeshDict; object blockMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
backgroundMesh backgroundMesh
{ {
@ -31,32 +32,28 @@ convertToMeters 1;
vertices vertices
( (
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMin) ($!backgroundMesh/xMin $!backgroundMesh/yMin $!backgroundMesh/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMin) ($!backgroundMesh/xMax $!backgroundMesh/yMin $!backgroundMesh/zMin)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMin) ($!backgroundMesh/xMax $!backgroundMesh/yMax $!backgroundMesh/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMin) ($!backgroundMesh/xMin $!backgroundMesh/yMax $!backgroundMesh/zMin)
($:backgroundMesh.xMin $:backgroundMesh.yMin $:backgroundMesh.zMax) ($!backgroundMesh/xMin $!backgroundMesh/yMin $!backgroundMesh/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMin $:backgroundMesh.zMax) ($!backgroundMesh/xMax $!backgroundMesh/yMin $!backgroundMesh/zMax)
($:backgroundMesh.xMax $:backgroundMesh.yMax $:backgroundMesh.zMax) ($!backgroundMesh/xMax $!backgroundMesh/yMax $!backgroundMesh/zMax)
($:backgroundMesh.xMin $:backgroundMesh.yMax $:backgroundMesh.zMax) ($!backgroundMesh/xMin $!backgroundMesh/yMax $!backgroundMesh/zMax)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) hex (0 1 2 3 4 5 6 7)
( (
$:backgroundMesh.xCells $!backgroundMesh/xCells
$:backgroundMesh.yCells $!backgroundMesh/yCells
$:backgroundMesh.zCells $!backgroundMesh/zCells
) )
simpleGrading (1 1 1) simpleGrading (1 1 1)
); );
edges
(
);
boundary boundary
( (
inlet inlet
@ -99,8 +96,4 @@ boundary
); );
mergePatchPairs
(
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -13,6 +13,7 @@ FoamFile
object snappyHexMeshDict; object snappyHexMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#inputSyntax slash;
// Which of the steps to run // Which of the steps to run
castellatedMesh true; castellatedMesh true;
@ -274,7 +275,7 @@ castellatedMeshControls
level (1 1); level (1 1);
patchInfo patchInfo
{ {
${...vessel.patchInfo} $../../vessel/patchInfo
} }
} }
@ -283,7 +284,7 @@ castellatedMeshControls
level (1 1); level (1 1);
patchInfo patchInfo
{ {
${...vessel.patchInfo} $../../vessel/patchInfo
} }
} }
@ -292,7 +293,7 @@ castellatedMeshControls
level (1 1); level (1 1);
patchInfo patchInfo
{ {
${...vessel.patchInfo} $../../vessel/patchInfo
} }
} }
@ -301,7 +302,7 @@ castellatedMeshControls
level (1 1); level (1 1);
patchInfo patchInfo
{ {
${...vessel.patchInfo} $../../vessel/patchInfo
} }
} }
@ -310,7 +311,7 @@ castellatedMeshControls
level (1 1); level (1 1);
patchInfo patchInfo
{ {
${...vessel.patchInfo} $../../vessel/patchInfo
} }
} }

View File

@ -13,9 +13,9 @@ if ! isTest $@
then then
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 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 500000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 500000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi

View File

@ -13,9 +13,9 @@ if ! isTest $@
then then
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 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 500000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 500000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi

View File

@ -13,8 +13,8 @@ if ! isTest $@
then then
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 1e5' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 1e5'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi

View File

@ -13,9 +13,9 @@ if ! isTest $@
then then
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 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 500000'
foamDictionary 0.5/T.liquid -entry boundaryField.wall1.q -set 'uniform 500000' foamDictionary 0.5/T.liquid -entry boundaryField/wall1/q -set 'uniform 500000'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi

View File

@ -13,8 +13,8 @@ if ! isTest $@
then then
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 1e5' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 1e5'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi

View File

@ -13,8 +13,8 @@ if ! isTest $@
then then
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 1e5' foamDictionary 0.5/T.liquid -entry boundaryField/wall2/q -set 'uniform 1e5'
foamDictionary 0.5/U.liquid -entry boundaryField.inlet.type -set 'fixedValue' foamDictionary 0.5/U.liquid -entry boundaryField/inlet/type -set 'fixedValue'
runApplication -a $application runApplication -a $application
fi fi