Fixing settings for mixingPlane and cyclic, and some clean-up and descriptions, for some tutorials: MRFSimpleFoam/axialTurbine_ggi MRFSimpleFoam/axialTurbine_mixingPlane simpleFoam/mixingPlaneDomADomB simpleSRFFoam/axialTurbine

Signed-off-by: Henrik Rusche <h.rusche@wikki-gmbh.de>
This commit is contained in:
Håkan Nilsson 2014-06-11 09:10:25 +02:00 committed by Henrik Rusche
parent d4688371e9
commit e3643e0048
22 changed files with 13067 additions and 8011 deletions

View file

@ -29,13 +29,9 @@ boundaryField
{
type ggi;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
}
GVBLADE
{

View file

@ -31,14 +31,9 @@ boundaryField
type ggi;
value uniform 14.855;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 14.855;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 14.855;
}
GVBLADE

View file

@ -31,14 +31,9 @@ boundaryField
type ggi;
value uniform 0.375;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 0.375;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 0.375;
}
GVBLADE

View file

@ -31,14 +31,9 @@ boundaryField
type ggi;
value uniform 0;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 0;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 0;
}
GVBLADE

View file

@ -28,13 +28,9 @@ boundaryField
{
type ggi;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
}
GVBLADE
{

View file

@ -290,50 +290,31 @@ boundary
);
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
shadowPatch GVCYCLIC2;
zone GVCYCLIC1Zone;
bridgeOverlap false;
type cyclic;
featureCos 0.9;
//MUST specify transformation since cyclic is not flat.
//Set global debugSwitch cyclic to 1 to check that it is correct!
transform rotational;
rotationAxis (0 0 1);
rotationAngle 72;
separationOffset (0 0 0);
rotationCentre (0 0 0);
rotationAngle -72; //Degrees from second half to first half
//Face numbering must be same on both halfs/sides. The numbering
//is determined by the block definition, not by the faces list
//below. Just make sure that each face definition is according
//to the rule "clockwise when looking from inside the block".
faces
(
//First half, left side:
quad2D(GV1l, GV0l)
quad2D(GV3l, GV2l)
);
}
GVCYCLIC2
{
type cyclicGgi;
shadowPatch GVCYCLIC1;
zone GVCYCLIC2Zone;
bridgeOverlap false;
rotationAxis (0 0 1);
rotationAngle -72;
separationOffset (0 0 0);
faces
(
//Second half, right side:
quad2D(GV0r, GV1r)
quad2D(GV2r, GV3r)
);
}
//GVCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(GV1l, GV0l)
// quad2D(GV3l, GV2l)
// quad2D(GV0r, GV1r)
// quad2D(GV2r, GV3r)
// );
//}
GVBLADE
{
type wall;
@ -422,18 +403,6 @@ boundary
);
}
//RUCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(RU1l, RU0l)
// quad2D(RU3l, RU2l)
// quad2D(RU0r, RU1r)
// quad2D(RU2r, RU3r)
// );
//}
RUBLADE
{
type wall;
@ -517,16 +486,6 @@ boundary
);
}
//DTCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(DT1l, DT0l)
// quad2D(DT0r, DT1r)
// );
//}
DTHUB
{
type wall;

View file

@ -1,5 +1,3 @@
faceSet GVCYCLIC1Zone new patchToFace GVCYCLIC1
faceSet GVCYCLIC2Zone new patchToFace GVCYCLIC2
faceSet RUCYCLIC1Zone new patchToFace RUCYCLIC1
faceSet RUCYCLIC2Zone new patchToFace RUCYCLIC2
faceSet DTCYCLIC1Zone new patchToFace DTCYCLIC1

View file

@ -21,14 +21,12 @@ method patchConstrained;
globalFaceZones
(
GVCYCLIC2Zone
RUCYCLIC1Zone
RUINLETZone
RUCYCLIC2Zone
RUOUTLETZone
GVOUTLETZone
DTINLETZone
GVCYCLIC1Zone
DTCYCLIC1Zone
DTCYCLIC2Zone
);

View file

@ -30,13 +30,9 @@ boundaryField
{
type mixingPlane;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
}
GVBLADE
{

View file

@ -31,14 +31,9 @@ boundaryField
type mixingPlane;
value uniform 14.855;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 14.855;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 14.855;
}
GVBLADE

View file

@ -31,14 +31,9 @@ boundaryField
type mixingPlane;
value uniform 0.375;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 0.375;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 0.375;
}
GVBLADE

View file

@ -31,14 +31,9 @@ boundaryField
type mixingPlane;
value uniform 0;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
value uniform 0;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
value uniform 0;
}
GVBLADE

View file

@ -29,13 +29,9 @@ boundaryField
{
type mixingPlane;
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
}
GVCYCLIC2
{
type cyclicGgi;
type cyclic;
}
GVBLADE
{

View file

@ -285,13 +285,15 @@ boundary
zone GVOUTLETZone;
coordinateSystem
{
//type cylindrical;
//name mixingCS;
type cylindrical;
name mixingCS;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
//e1 (1 0 0);
degrees false; //Use radians
//Equivalent axis/direction definition:
//e3 (0 0 1);
//e1 (1 0 0);
}
ribbonPatch
{
@ -305,50 +307,31 @@ boundary
);
}
GVCYCLIC1
GVCYCLIC
{
type cyclicGgi;
shadowPatch GVCYCLIC2;
zone GVCYCLIC1Zone;
bridgeOverlap false;
type cyclic;
featureCos 0.9;
//MUST specify transformation since cyclic is not flat.
//Set global debugSwitch cyclic to 1 to check that it is correct!
transform rotational;
rotationAxis (0 0 1);
rotationAngle 72;
separationOffset (0 0 0);
rotationCentre (0 0 0);
rotationAngle -72; //Degrees from second half to first half
//Face numbering must be same on both halfs/sides. The numbering
//is determined by the block definition, not by the faces list
//below. Just make sure that each face definition is according
//to the rule "clockwise when looking from inside the block".
faces
(
//First half, left side:
quad2D(GV1l, GV0l)
quad2D(GV3l, GV2l)
);
}
GVCYCLIC2
{
type cyclicGgi;
shadowPatch GVCYCLIC1;
zone GVCYCLIC2Zone;
bridgeOverlap false;
rotationAxis (0 0 1);
rotationAngle -72;
separationOffset (0 0 0);
faces
(
//Second half, right side:
quad2D(GV0r, GV1r)
quad2D(GV2r, GV3r)
);
}
//GVCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(GV1l, GV0l)
// quad2D(GV3l, GV2l)
// quad2D(GV0r, GV1r)
// quad2D(GV2r, GV3r)
// );
//}
GVBLADE
{
type wall;
@ -388,13 +371,15 @@ boundary
zone RUINLETZone;
coordinateSystem
{
//type cylindrical;
//name mixingCS;
type cylindrical;
name mixingCS;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
//e1 (1 0 0);
degrees false; //Use radians
//Equivalent axis/direction definition:
//e3 (0 0 1);
//e1 (1 0 0);
}
ribbonPatch
{
@ -415,13 +400,15 @@ boundary
zone RUOUTLETZone;
coordinateSystem
{
//type cylindrical;
//name mixingCS;
type cylindrical;
name mixingCS;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
//e1 (1 0 0);
degrees false; //Use radians
//Equivalent axis/direction definition:
//e3 (0 0 1);
//e1 (1 0 0);
}
ribbonPatch
{
@ -467,18 +454,6 @@ boundary
);
}
//RUCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(RU1l, RU0l)
// quad2D(RU3l, RU2l)
// quad2D(RU0r, RU1r)
// quad2D(RU2r, RU3r)
// );
//}
RUBLADE
{
type wall;
@ -518,13 +493,15 @@ boundary
zone DTINLETZone;
coordinateSystem
{
//type cylindrical;
//name mixingCS;
type cylindrical;
name mixingCS;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
//e1 (1 0 0);
degrees false; //Use radians
//Equivalent axis/direction definition:
//e3 (0 0 1);
//e1 (1 0 0);
}
ribbonPatch
{
@ -577,16 +554,6 @@ boundary
);
}
//DTCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(DT1l, DT0l)
// quad2D(DT0r, DT1r)
// );
//}
DTHUB
{
type wall;

View file

@ -1,5 +1,3 @@
faceSet GVCYCLIC1Zone new patchToFace GVCYCLIC1
faceSet GVCYCLIC2Zone new patchToFace GVCYCLIC2
faceSet RUCYCLIC1Zone new patchToFace RUCYCLIC1
faceSet RUCYCLIC2Zone new patchToFace RUCYCLIC2
faceSet DTCYCLIC1Zone new patchToFace DTCYCLIC1

View file

@ -21,14 +21,12 @@ method patchConstrained;
globalFaceZones
(
GVCYCLIC2Zone
RUCYCLIC1Zone
RUINLETZone
RUCYCLIC2Zone
RUOUTLETZone
GVOUTLETZone
DTINLETZone
GVCYCLIC1Zone
DTCYCLIC1Zone
DTCYCLIC2Zone
);

View file

@ -64,8 +64,13 @@ fluxRequired
mixingPlane
{
default areaAveraging;
//U fluxAveragingAdjustMassFlow;
//p zeroGradientAreaAveragingMix;
U areaAveraging;
p areaAveraging;
k fluxAveraging; //Transported variable
epsilon fluxAveraging; //Transported variable
//NOTE: Ideally, tangential velocity components should also be
//fluxAveraged, while keeping areaAveraging for normal velocity
//component (to preserve perfect mass conservation)
}
// ************************************************************************* //

View file

@ -55,6 +55,7 @@ FoamFile
origin (0 0 0);
e1 (1 0 0);
e3 (0 0 1);
degrees false; //Use radians
}
ribbonPatch
{

View file

@ -55,6 +55,7 @@ FoamFile
origin (0 0 0);
e1 (1 0 0);
e3 (0 0 1);
degrees false; //Use radians
}
ribbonPatch
{
@ -62,6 +63,7 @@ FoamFile
stackAxis Z;
discretisation bothPatches;
}
}
inletDomB
{

View file

@ -196,18 +196,6 @@ boundary
);
}
//RUCYCLIC
//{
// type cyclic;
// faces
// (
// quad2D(RU1l, RU0l)
// quad2D(RU3l, RU2l)
// quad2D(RU0r, RU1r)
// quad2D(RU2r, RU3r)
// );
//}
RUBLADE
{
type wall;