mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: TJunctionFan: new createBaffles syntax
This commit is contained in:
10
tutorials/incompressible/pimpleFoam/TJunctionFan/Allclean
Executable file
10
tutorials/incompressible/pimpleFoam/TJunctionFan/Allclean
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
rm -rf 0
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
@ -11,6 +11,8 @@ runApplication blockMesh
|
|||||||
# Create faceZones for baffles and fan
|
# Create faceZones for baffles and fan
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
|
cp -r 0.org 0
|
||||||
|
|
||||||
# Create wall and cyclic baffles and the fields on them
|
# Create wall and cyclic baffles and the fields on them
|
||||||
runApplication createBaffles -overwrite
|
runApplication createBaffles -overwrite
|
||||||
|
|
||||||
|
|||||||
@ -29,16 +29,8 @@ baffles
|
|||||||
type faceZone;
|
type faceZone;
|
||||||
zoneName baffleFaces;
|
zoneName baffleFaces;
|
||||||
|
|
||||||
|
patchPairs
|
||||||
//- Optional flip
|
|
||||||
//flip false;
|
|
||||||
|
|
||||||
patches
|
|
||||||
{
|
{
|
||||||
master
|
|
||||||
{
|
|
||||||
//- Master side patch
|
|
||||||
name baffles;
|
|
||||||
type wall;
|
type wall;
|
||||||
|
|
||||||
patchFields
|
patchFields
|
||||||
@ -79,12 +71,6 @@ baffles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
slave
|
|
||||||
{
|
|
||||||
// Reuse master data
|
|
||||||
${..master}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -97,15 +83,9 @@ baffles
|
|||||||
origin (0.099 -0.006 0.004);
|
origin (0.099 -0.006 0.004);
|
||||||
span (0 0.012 0.012);
|
span (0 0.012 0.012);
|
||||||
|
|
||||||
patches
|
patchPairs
|
||||||
{
|
{
|
||||||
master
|
|
||||||
{
|
|
||||||
//- Master side patch
|
|
||||||
|
|
||||||
name fan_half0;
|
|
||||||
type cyclic;
|
type cyclic;
|
||||||
neighbourPatch fan_half1;
|
|
||||||
|
|
||||||
//- Optional override of added patchfields. If not specified
|
//- Optional override of added patchfields. If not specified
|
||||||
// any added patchfields are of type calculated.
|
// any added patchfields are of type calculated.
|
||||||
@ -121,25 +101,6 @@ baffles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
slave
|
|
||||||
{
|
|
||||||
//- Slave side patch
|
|
||||||
|
|
||||||
name fan_half1;
|
|
||||||
type cyclic;
|
|
||||||
neighbourPatch fan_half0;
|
|
||||||
|
|
||||||
patchFields
|
|
||||||
{
|
|
||||||
p
|
|
||||||
{
|
|
||||||
type fan;
|
|
||||||
patchType cyclic;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user