mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -44,10 +44,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -46,10 +46,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,10 +45,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -44,10 +44,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -44,10 +44,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,10 +45,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,10 +45,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,10 +45,6 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
"baffle1Wall.*"
|
||||
{
|
||||
type calculated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -13,15 +13,11 @@ unset FOAM_SETNAN
|
||||
unset FOAM_SIGFPE
|
||||
|
||||
# Create first baffle
|
||||
runApplication createBaffles baffleFaces '(baffle1Wall_0 baffle1Wall_1)' -overwrite
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
# Create region
|
||||
runApplication extrudeToRegionMesh -overwrite
|
||||
|
||||
# Set the BC's for the baffle
|
||||
runApplication changeDictionary -dict system/changeDictionaryDict.baffle
|
||||
rm log.changeDictionary
|
||||
|
||||
# Set Bc's for the region baffle
|
||||
runApplication changeDictionary -dict system/changeDictionaryDict.baffleRegion -literalRE
|
||||
rm log.changeDictionary
|
||||
|
||||
@ -84,28 +84,6 @@ boundary
|
||||
(4 5 6 7)
|
||||
);
|
||||
}
|
||||
|
||||
baffle1Wall_0
|
||||
{
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
sampleRegion region0;
|
||||
samplePatch baffle1Wall_1;
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
faces ();
|
||||
}
|
||||
|
||||
baffle1Wall_1
|
||||
{
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
sampleRegion region0;
|
||||
samplePatch baffle1Wall_0;
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
faces ();
|
||||
}
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
|
||||
@ -44,6 +44,6 @@ timePrecision 6;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
libs ("libthermoBaffleModels.so");
|
||||
libs ("libthermoBaffleModels.so" "libcompressibleRASModels.so");
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -15,6 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
libs
|
||||
(
|
||||
"libcompressibleTurbulenceModel.so"
|
||||
"libcompressibleRASModels.so"
|
||||
);
|
||||
|
||||
application chtMultiRegionFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
|
||||
@ -45,18 +45,6 @@ boundaryField
|
||||
type movingWallVelocity;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,18 +45,6 @@ boundaryField
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,18 +45,6 @@ boundaryField
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -44,18 +44,6 @@ boundaryField
|
||||
type nutkWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -41,18 +41,6 @@ boundaryField
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@ runApplication surfaceFeatureExtract
|
||||
runApplication snappyHexMesh -overwrite
|
||||
# force removal of fields generated by snappy
|
||||
\rm -rf 0
|
||||
cp -rf 0.org 0
|
||||
|
||||
|
||||
# - generate face/cell sets and zones
|
||||
@ -37,19 +38,18 @@ runApplication topoSet -dict system/createAMIFaces.topoSetDict
|
||||
mv log.topoSet log.createAMIFaces.topoSet
|
||||
|
||||
|
||||
# - create the inlet/outlet patches and AMI patches
|
||||
# - create the inlet/outlet patches
|
||||
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
|
||||
# - create the AMI faces by creating baffles, and then splitting the mesh
|
||||
|
||||
createBaffles -internalFacesOnly -overwrite innerCylinderSmall '(AMI1 AMI2)' \
|
||||
> log.createBaffles 2>&1
|
||||
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
|
||||
# - apply the initial fields
|
||||
|
||||
cp -rf 0.org 0
|
||||
|
||||
|
||||
# - create the AMI faces by creating baffles, and then splitting the mesh
|
||||
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
@ -15,6 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
libs
|
||||
(
|
||||
"libincompressibleTurbulenceModel.so"
|
||||
"libincompressibleRASModels.so"
|
||||
);
|
||||
|
||||
application pimpleDyMFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
baffleFaces
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName innerCylinderSmall;
|
||||
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name AMI1;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI2;
|
||||
transform noOrdering;
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
name AMI2;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI1;
|
||||
transform noOrdering;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -46,37 +46,6 @@ patches
|
||||
|
||||
set outletFaces;
|
||||
}
|
||||
|
||||
|
||||
// Construct empty patches
|
||||
{
|
||||
name AMI1;
|
||||
patchInfo
|
||||
{
|
||||
type cyclicAMI;
|
||||
neighbourPatch AMI2;
|
||||
transform noOrdering;
|
||||
surface
|
||||
{}
|
||||
}
|
||||
constructFrom set;
|
||||
set dummyFaces;
|
||||
}
|
||||
{
|
||||
name AMI2;
|
||||
|
||||
patchInfo
|
||||
{
|
||||
type cyclicAMI;
|
||||
neighbourPatch AMI1;
|
||||
transform noOrdering;
|
||||
surface
|
||||
{}
|
||||
}
|
||||
constructFrom set;
|
||||
set dummyFaces;
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
dimensions [m s^-1];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
@ -38,19 +38,6 @@ boundaryField
|
||||
inletValue uniform (0 0 0);
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type fixedValue;
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
dimensions [m^2 s^-3];
|
||||
|
||||
internalField uniform 200;
|
||||
|
||||
@ -41,22 +41,6 @@ boundaryField
|
||||
inletValue uniform 200;
|
||||
value uniform 200;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
dimensions [m^2 s^-2];
|
||||
|
||||
internalField uniform 0.375;
|
||||
|
||||
@ -25,8 +25,6 @@ boundaryField
|
||||
{
|
||||
type turbulentIntensityKineticEnergyInlet;
|
||||
intensity 0.05;
|
||||
U U;
|
||||
phi phi;
|
||||
value uniform 0.375;
|
||||
}
|
||||
outlet1
|
||||
@ -41,19 +39,6 @@ boundaryField
|
||||
inletValue uniform 0.375;
|
||||
value uniform 0.375;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type kqRWallFunction;
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
dimensions [m^2 s^-1];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
@ -33,18 +33,6 @@ boundaryField
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
dimensions [m^2 s^-1];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
@ -36,22 +36,6 @@ boundaryField
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type nutkWallFunction;
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
dimensions [m^2 s^-2];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
@ -27,15 +27,13 @@ boundaryField
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
p0 40;
|
||||
pressure table
|
||||
|
||||
2
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
)
|
||||
;
|
||||
2
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
)
|
||||
;
|
||||
value uniform 40;
|
||||
}
|
||||
outlet1
|
||||
@ -48,30 +46,6 @@ boundaryField
|
||||
type fixedValue;
|
||||
value uniform 0;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
fan_half0
|
||||
{
|
||||
type fan;
|
||||
patchType cyclic;
|
||||
jumpTable polynomial
|
||||
|
||||
2
|
||||
(
|
||||
(100 0)
|
||||
(-0.1 1)
|
||||
)
|
||||
;
|
||||
value uniform 0;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type fan;
|
||||
patchType cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -8,21 +8,10 @@ application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
|
||||
# Creating patches 'out of nothing' so will get undefined value which
|
||||
# might cause floating point error
|
||||
unset FOAM_SIGFPE
|
||||
unset FOAM_SETNAN
|
||||
|
||||
# Create faceZones for fan and baffles
|
||||
# Create faceZones for baffles and fan
|
||||
runApplication topoSet
|
||||
|
||||
# Create fan cyclics
|
||||
runApplication createBaffles cyclicFaces '(fan_half0 fan_half1)' -overwrite
|
||||
mv log.createBaffles log.createBaffles.1
|
||||
|
||||
# Create wall baffles
|
||||
runApplication createBaffles baffleFaces '(baffles baffles)' -overwrite
|
||||
mv log.createBaffles log.createBaffles.2
|
||||
# Create wall and cyclic baffles and the fields on them
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
runApplication $application
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
2010-04-16 T-junction with baffles and fan.
|
||||
Inlet on left, one outlet at bottom, one at top.
|
||||
To test multiple outlets.
|
||||
To test multiple outlets and fan cyclics
|
||||
|
||||
@ -104,25 +104,6 @@ boundary
|
||||
faces ((8 18 19 9));
|
||||
}
|
||||
|
||||
baffles
|
||||
{
|
||||
type wall;
|
||||
faces ();
|
||||
}
|
||||
|
||||
fan_half0
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch fan_half1;
|
||||
}
|
||||
fan_half1
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch fan_half0;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type wall;
|
||||
|
||||
@ -0,0 +1,186 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
baffleFaces
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName baffleFaces;
|
||||
|
||||
|
||||
//- Optional flip
|
||||
//flip false;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name baffles;
|
||||
type wall;
|
||||
|
||||
patchFields
|
||||
{
|
||||
epsilon
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
k
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
nut
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
nuTilda
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
p
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
U
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
name baffles;
|
||||
type wall;
|
||||
|
||||
patchFields
|
||||
{
|
||||
epsilon
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
k
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
nut
|
||||
{
|
||||
type nutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
nuTilda
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
p
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
U
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
cyclicFaces
|
||||
{
|
||||
//- Select faces and orientation through a searchableSurface
|
||||
type searchableSurface;
|
||||
surface searchablePlate;
|
||||
origin (0.099 -0.006 0.004);
|
||||
span (0 0.012 0.012);
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
|
||||
name fan_half0;
|
||||
type cyclic;
|
||||
neighbourPatch fan_half1;
|
||||
|
||||
//- Optional override of added patchfields. If not specified
|
||||
// any added patchfields are of type calculated.
|
||||
patchFields
|
||||
{
|
||||
p
|
||||
{
|
||||
type fan;
|
||||
patchType cyclic;
|
||||
jump uniform 0;
|
||||
value uniform 0;
|
||||
jumpTable polynomial 1((100 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
|
||||
name fan_half1;
|
||||
type cyclic;
|
||||
neighbourPatch fan_half0;
|
||||
|
||||
patchFields
|
||||
{
|
||||
p
|
||||
{
|
||||
type fan;
|
||||
patchType cyclic;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -193,17 +193,17 @@ snapControls
|
||||
|
||||
//- Number of feature edge snapping iterations.
|
||||
// Leave out altogether to disable.
|
||||
nFeatureSnapIter 10;
|
||||
nFeatureSnapIter 0;
|
||||
|
||||
//- Detect (geometric only) features by sampling the surface
|
||||
// (default=false).
|
||||
implicitFeatureSnap false;
|
||||
|
||||
//- Use castellatedMeshControls::features (default = true)
|
||||
explicitFeatureSnap true;
|
||||
explicitFeatureSnap false;
|
||||
|
||||
//- Detect points on multiple surfaces (only for explicitFeatureSnap)
|
||||
multiRegionFeatureSnap true;
|
||||
multiRegionFeatureSnap false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -10,23 +10,10 @@ application=`getApplication`
|
||||
runApplication blockMesh
|
||||
|
||||
# create sets
|
||||
#setSet -batch system/sets.setSet > log.setSet1 2>&1
|
||||
runApplication topoSet
|
||||
|
||||
# create the first cyclic - lhs of porous zone
|
||||
# Note that we don't know what value to give these patches-out-of-nothing so
|
||||
# - use binary writing to avoid 'nan'
|
||||
# - use setFields to set values
|
||||
unset FOAM_SIGFPE
|
||||
runApplication createBaffles cycLeft '(cycLeft_half0 cycLeft_half1)' -overwrite
|
||||
mv log.createBaffles log.createBaffles1
|
||||
|
||||
# create the second cyclic - rhs of porous zone
|
||||
runApplication createBaffles cycRight '(cycRight_half0 cycRight_half1)' -overwrite
|
||||
mv log.createBaffles log.createBaffles2
|
||||
|
||||
# Initialise newly created patchFields to 0
|
||||
runApplication changeDictionary
|
||||
# create baffles and fields
|
||||
createBaffles -overwrite
|
||||
|
||||
runApplication $application
|
||||
|
||||
|
||||
@ -100,32 +100,6 @@ boundary
|
||||
);
|
||||
}
|
||||
|
||||
cycLeft_half0
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch cycLeft_half1;
|
||||
}
|
||||
cycLeft_half1
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch cycLeft_half0;
|
||||
}
|
||||
|
||||
cycRight_half0
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch cycRight_half1;
|
||||
}
|
||||
cycRight_half1
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch cycRight_half0;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
|
||||
@ -1,83 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format binary;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
8
|
||||
(
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
nFaces 172;
|
||||
startFace 3294;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 20;
|
||||
startFace 3466;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 20;
|
||||
startFace 3486;
|
||||
}
|
||||
cycLeft_half0
|
||||
{
|
||||
type cyclic;
|
||||
inGroups 1(cyclic);
|
||||
nFaces 20;
|
||||
startFace 3506;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch cycLeft_half1;
|
||||
}
|
||||
cycLeft_half1
|
||||
{
|
||||
type cyclic;
|
||||
inGroups 1(cyclic);
|
||||
nFaces 20;
|
||||
startFace 3526;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch cycLeft_half0;
|
||||
}
|
||||
cycRight_half0
|
||||
{
|
||||
type cyclic;
|
||||
inGroups 1(cyclic);
|
||||
nFaces 20;
|
||||
startFace 3546;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch cycRight_half1;
|
||||
}
|
||||
cycRight_half1
|
||||
{
|
||||
type cyclic;
|
||||
inGroups 1(cyclic);
|
||||
nFaces 20;
|
||||
startFace 3566;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch cycRight_half0;
|
||||
}
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
inGroups 1(empty);
|
||||
nFaces 3440;
|
||||
startFace 3586;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,81 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
cycLeft
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName cycLeft;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
|
||||
name cycLeft_half0;
|
||||
type cyclic;
|
||||
neighbourPatch cycLeft_half1;
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
|
||||
name cycLeft_half1;
|
||||
type cyclic;
|
||||
neighbourPatch cycLeft_half0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cycRight
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName cycRight;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
|
||||
name cycRight_half0;
|
||||
type cyclic;
|
||||
neighbourPatch cycRight_half1;
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
|
||||
name cycRight_half1;
|
||||
type cyclic;
|
||||
neighbourPatch cycRight_half0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -39,14 +39,6 @@ boundaryField
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
porous_half0
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
porous_half1
|
||||
{
|
||||
type cyclic;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
|
||||
@ -10,15 +10,7 @@ application=`getApplication`
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
|
||||
unset FOAM_SIGFPE
|
||||
unset FOAM_SETNAN
|
||||
|
||||
# Create faceZones for porous baffles
|
||||
runApplication topoSet
|
||||
|
||||
runApplication createBaffles cyclicZoneFaces '(porous_half0 porous_half1)' -overwrite
|
||||
|
||||
runApplication changeDictionary
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
runApplication $application
|
||||
|
||||
|
||||
@ -99,20 +99,6 @@ boundary
|
||||
(10 22 23 11)
|
||||
);
|
||||
}
|
||||
|
||||
porous_half0
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch porous_half1;
|
||||
}
|
||||
|
||||
porous_half1
|
||||
{
|
||||
type cyclic;
|
||||
faces ();
|
||||
neighbourPatch porous_half0;
|
||||
}
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
|
||||
@ -1,68 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
7
|
||||
(
|
||||
leftWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 50;
|
||||
startFace 4419;
|
||||
}
|
||||
rightWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 50;
|
||||
startFace 4469;
|
||||
}
|
||||
lowerWall
|
||||
{
|
||||
type wall;
|
||||
nFaces 62;
|
||||
startFace 4519;
|
||||
}
|
||||
atmosphere
|
||||
{
|
||||
type patch;
|
||||
nFaces 46;
|
||||
startFace 4581;
|
||||
}
|
||||
porous_half0
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 13;
|
||||
startFace 4627;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch porous_half1;
|
||||
}
|
||||
porous_half1
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 13;
|
||||
startFace 4640;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch porous_half0;
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
nFaces 4536;
|
||||
startFace 4653;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -55,6 +55,8 @@ maxDeltaT 1;
|
||||
libs
|
||||
(
|
||||
"libturbulenceDerivedFvPatchFields.so"
|
||||
"libincompressibleTurbulenceModel.so"
|
||||
"libincompressibleRASModels.so"
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,78 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
cyclicFaces
|
||||
{
|
||||
//- Select faces and orientation through a searchableSurface
|
||||
type searchableSurface;
|
||||
surface searchablePlate;
|
||||
origin (0.3042 0.0493 -100);
|
||||
span (0 0.1584 200);
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
|
||||
name porous_half0;
|
||||
type cyclic;
|
||||
neighbourPatch porous_half1;
|
||||
|
||||
//- Optional override of added patchfields. If not specified
|
||||
// any added patchfields are of type calculated.
|
||||
patchFields
|
||||
{
|
||||
p_rgh
|
||||
{
|
||||
type porousBafflePressure;
|
||||
patchType cyclic;
|
||||
D 700;
|
||||
I 500;
|
||||
length 1.05;
|
||||
jump uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
|
||||
name porous_half1;
|
||||
type cyclic;
|
||||
neighbourPatch porous_half0;
|
||||
|
||||
patchFields
|
||||
{
|
||||
${...master.patchFields}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user