Skip to content
Snippets Groups Projects
Commit 1d679022 authored by mattijs's avatar mattijs
Browse files

ENH: TJunctionFan: new createBaffles syntax

parent 3a242425
No related merge requests found
#!/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 ...@@ -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,60 +29,46 @@ baffles ...@@ -29,60 +29,46 @@ baffles
type faceZone; type faceZone;
zoneName baffleFaces; zoneName baffleFaces;
patchPairs
//- Optional flip
//flip false;
patches
{ {
master type wall;
{
//- Master side patch
name baffles;
type wall;
patchFields patchFields
{
epsilon
{ {
epsilon type epsilonWallFunction;
{ Cmu 0.09;
type epsilonWallFunction; kappa 0.41;
Cmu 0.09; E 9.8;
kappa 0.41; value uniform 0;
E 9.8; }
value uniform 0; k
} {
k type kqRWallFunction;
{ value uniform 0;
type kqRWallFunction; }
value uniform 0; nut
} {
nut type nutkWallFunction;
{ Cmu 0.09;
type nutkWallFunction; kappa 0.41;
Cmu 0.09; E 9.8;
kappa 0.41; value uniform 0;
E 9.8; }
value uniform 0; nuTilda
} {
nuTilda type zeroGradient;
{ }
type zeroGradient; p
} {
p type zeroGradient;
{ }
type zeroGradient; U
} {
U type fixedValue;
{ value uniform (0 0 0);
type fixedValue;
value uniform (0 0 0);
}
} }
}
slave
{
// Reuse master data
${..master}
} }
} }
} }
...@@ -97,46 +83,21 @@ baffles ...@@ -97,46 +83,21 @@ 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 type cyclic;
{
//- Master side patch
name fan_half0;
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.
patchFields patchFields
{
p
{
type fan;
patchType cyclic;
jump uniform 0;
value uniform 0;
jumpTable polynomial 1((100 0));
}
}
}
slave
{ {
//- Slave side patch p
name fan_half1;
type cyclic;
neighbourPatch fan_half0;
patchFields
{ {
p type fan;
{ patchType cyclic;
type fan; jump uniform 0;
patchType cyclic; value uniform 0;
value uniform 0; jumpTable polynomial 1((100 0));
}
} }
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment