mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use defaultPatch for naming instead of explicit Default_Boundary_Region
- tutorials based on squareBend used Default_Boundary_Region explicitly defined since they predated the defaultPatch renaming (2008). The name 'Default_Boundary_Region' was for convenience as the default name when converting to PROSTAR or CCM formation, but can now be changed to something more generic. - define wall boundary conditions for squareBend using a general regex to allow future splitting of wall types by name.
This commit is contained in:
@ -20,12 +20,6 @@ internalField uniform 300;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform 350;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
@ -37,6 +31,12 @@ boundaryField
|
|||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 350;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,11 +20,6 @@ internalField uniform (0 0 0);
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type noSlip;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
@ -37,6 +32,11 @@ boundaryField
|
|||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type noSlip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,23 +20,23 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type compressible::alphatWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type compressible::alphatWallFunction;
|
||||||
|
Prt 0.85;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,27 +20,27 @@ internalField uniform 200;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type epsilonWallFunction;
|
|
||||||
Cmu 0.09;
|
|
||||||
kappa 0.41;
|
|
||||||
E 9.8;
|
|
||||||
value uniform 200;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
mixingLength 0.005;
|
mixingLength 0.005;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 200;
|
inletValue $internalField;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,24 +20,24 @@ internalField uniform 1;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value uniform 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 1;
|
inletValue $internalField;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type kqRWallFunction;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,25 +20,25 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type nutkWallFunction;
|
|
||||||
Cmu 0.09;
|
|
||||||
kappa 0.41;
|
|
||||||
E 9.8;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type nutkWallFunction;
|
||||||
|
Cmu 0.09;
|
||||||
|
kappa 0.41;
|
||||||
|
E 9.8;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,11 +20,6 @@ internalField uniform 1e5;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type zeroGradient;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
@ -35,6 +30,11 @@ boundaryField
|
|||||||
type fixedValue;
|
type fixedValue;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -73,34 +73,6 @@ edges
|
|||||||
|
|
||||||
boundary
|
boundary
|
||||||
(
|
(
|
||||||
// is there no way of defining all my 'defaultFaces' to be 'wall'?
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type wall;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
// block0
|
|
||||||
( 0 1 3 2 )
|
|
||||||
( 11 10 12 13 )
|
|
||||||
( 0 10 11 1 )
|
|
||||||
( 2 3 13 12 )
|
|
||||||
// block1
|
|
||||||
( 4 5 7 6 )
|
|
||||||
( 15 14 16 17 )
|
|
||||||
( 4 14 15 5 )
|
|
||||||
( 6 7 17 16 )
|
|
||||||
// block2
|
|
||||||
( 1 8 9 3 )
|
|
||||||
( 18 11 13 19 )
|
|
||||||
( 3 9 19 13 )
|
|
||||||
( 1 11 18 8 )
|
|
||||||
// block3
|
|
||||||
( 5 9 8 7 )
|
|
||||||
( 19 15 17 18 )
|
|
||||||
( 5 15 19 9 )
|
|
||||||
( 7 8 18 17 )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -124,4 +96,13 @@ mergePatchPairs
|
|||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// The defaultFaces == outside "walls"
|
||||||
|
defaultPatch
|
||||||
|
{
|
||||||
|
name walls;
|
||||||
|
type wall;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -33,7 +33,7 @@ boundaryField
|
|||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
".*"
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,22 +20,24 @@ internalField uniform (0 0 0);
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type noSlip;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
massFlowRate constant 0.5;
|
massFlowRate constant 0.5;
|
||||||
rhoInlet 0.5; // Guess for rho
|
rhoInlet 0.5; // Guess for rho
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type noSlip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,22 +20,24 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type compressible::alphatWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type compressible::alphatWallFunction;
|
||||||
|
Prt 0.85;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,21 @@ internalField uniform 200;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
|
mixingLength 0.005;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type inletOutlet;
|
||||||
|
value $internalField;
|
||||||
|
inletValue $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
@ -28,18 +42,6 @@ boundaryField
|
|||||||
E 9.8;
|
E 9.8;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
|
||||||
mixingLength 0.005;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type inletOutlet;
|
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,23 +20,25 @@ internalField uniform 1;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type kqRWallFunction;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,19 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
@ -28,16 +40,6 @@ boundaryField
|
|||||||
E 9.8;
|
E 9.8;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,18 +20,16 @@ internalField uniform 110000;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type zeroGradient;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
|
|
||||||
//type mixed;
|
//type mixed;
|
||||||
refValue $internalField;
|
//refValue $internalField;
|
||||||
refGradient uniform 0;
|
//refGradient uniform 0;
|
||||||
valueFraction uniform 0.3;
|
//valueFraction uniform 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
@ -49,7 +47,7 @@ boundaryField
|
|||||||
//pInf $internalField;
|
//pInf $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
".*"
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,34 +73,6 @@ edges
|
|||||||
|
|
||||||
boundary
|
boundary
|
||||||
(
|
(
|
||||||
// is there no way of defining all my 'defaultFaces' to be 'wall'?
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type wall;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
// block0
|
|
||||||
( 0 1 3 2 )
|
|
||||||
( 11 10 12 13 )
|
|
||||||
( 0 10 11 1 )
|
|
||||||
( 2 3 13 12 )
|
|
||||||
// block1
|
|
||||||
( 4 5 7 6 )
|
|
||||||
( 15 14 16 17 )
|
|
||||||
( 4 14 15 5 )
|
|
||||||
( 6 7 17 16 )
|
|
||||||
// block2
|
|
||||||
( 1 8 9 3 )
|
|
||||||
( 18 11 13 19 )
|
|
||||||
( 3 9 19 13 )
|
|
||||||
( 1 11 18 8 )
|
|
||||||
// block3
|
|
||||||
( 5 9 8 7 )
|
|
||||||
( 19 15 17 18 )
|
|
||||||
( 5 15 19 9 )
|
|
||||||
( 7 8 18 17 )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -124,4 +96,13 @@ mergePatchPairs
|
|||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// The defaultFaces == outside "walls"
|
||||||
|
defaultPatch
|
||||||
|
{
|
||||||
|
name walls;
|
||||||
|
type wall;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,12 +20,6 @@ internalField uniform 300;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type fixedValue;
|
|
||||||
value uniform 350;
|
|
||||||
}
|
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
@ -37,6 +31,12 @@ boundaryField
|
|||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 350;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -20,21 +20,23 @@ internalField uniform (0 0 0);
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type noSlip;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
massFlowRate constant 5;
|
massFlowRate constant 5;
|
||||||
rhoInlet 1000; // Guess for rho
|
rhoInlet 1000; // Guess for rho
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value uniform (0 0 0);
|
inletValue $internalField;
|
||||||
inletValue uniform (0 0 0);
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type noSlip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,21 +21,23 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type compressible::alphatWallFunction;
|
|
||||||
Prt 0.85;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type compressible::alphatWallFunction;
|
||||||
|
Prt 0.85;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,25 +21,27 @@ internalField uniform 200;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
|
mixingLength 0.005;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type inletOutlet;
|
||||||
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
kappa 0.41;
|
kappa 0.41;
|
||||||
E 9.8;
|
E 9.8;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
|
||||||
mixingLength 0.005;
|
|
||||||
value uniform 200;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type inletOutlet;
|
|
||||||
inletValue uniform 200;
|
|
||||||
value uniform 200;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,22 +21,24 @@ internalField uniform 1;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value uniform 1;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 1;
|
inletValue $internalField;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type kqRWallFunction;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,23 +21,25 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
kappa 0.41;
|
kappa 0.41;
|
||||||
E 9.8;
|
E 9.8;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,19 +20,21 @@ internalField uniform 1e5;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type zeroGradient;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -73,34 +73,6 @@ edges
|
|||||||
|
|
||||||
boundary
|
boundary
|
||||||
(
|
(
|
||||||
// is there no way of defining all my 'defaultFaces' to be 'wall'?
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type wall;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
// block0
|
|
||||||
( 0 1 3 2 )
|
|
||||||
( 11 10 12 13 )
|
|
||||||
( 0 10 11 1 )
|
|
||||||
( 2 3 13 12 )
|
|
||||||
// block1
|
|
||||||
( 4 5 7 6 )
|
|
||||||
( 15 14 16 17 )
|
|
||||||
( 4 14 15 5 )
|
|
||||||
( 6 7 17 16 )
|
|
||||||
// block2
|
|
||||||
( 1 8 9 3 )
|
|
||||||
( 18 11 13 19 )
|
|
||||||
( 3 9 19 13 )
|
|
||||||
( 1 11 18 8 )
|
|
||||||
// block3
|
|
||||||
( 5 9 8 7 )
|
|
||||||
( 19 15 17 18 )
|
|
||||||
( 5 15 19 9 )
|
|
||||||
( 7 8 18 17 )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -124,4 +96,13 @@ mergePatchPairs
|
|||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// The defaultFaces == outside "walls"
|
||||||
|
defaultPatch
|
||||||
|
{
|
||||||
|
name walls;
|
||||||
|
type wall;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -22,20 +22,22 @@ boundaryField
|
|||||||
{
|
{
|
||||||
#includeEtc "caseDicts/setConstraintTypes"
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type noSlip;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform (10 0 0);
|
value uniform (10 0 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type noSlip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,21 @@ internalField uniform 200;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
|
mixingLength 0.005;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type inletOutlet;
|
||||||
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
@ -28,18 +42,6 @@ boundaryField
|
|||||||
E 9.8;
|
E 9.8;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
|
||||||
mixingLength 0.005;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type inletOutlet;
|
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,22 +20,24 @@ internalField uniform 1;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type kqRWallFunction;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
|
{
|
||||||
|
type kqRWallFunction;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,19 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
Default_Boundary_Region
|
inlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type calculated;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
Cmu 0.09;
|
Cmu 0.09;
|
||||||
@ -28,16 +40,6 @@ boundaryField
|
|||||||
E 9.8;
|
E 9.8;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
outlet
|
|
||||||
{
|
|
||||||
type calculated;
|
|
||||||
value $internalField;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,10 +22,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
#includeEtc "caseDicts/setConstraintTypes"
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type zeroGradient;
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
@ -39,7 +35,7 @@ boundaryField
|
|||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
".*"
|
"(?i).*walls"
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,34 +73,6 @@ edges
|
|||||||
|
|
||||||
boundary
|
boundary
|
||||||
(
|
(
|
||||||
// is there no way of defining all my 'defaultFaces' to be 'wall'?
|
|
||||||
Default_Boundary_Region
|
|
||||||
{
|
|
||||||
type wall;
|
|
||||||
faces
|
|
||||||
(
|
|
||||||
// block0
|
|
||||||
( 0 1 3 2 )
|
|
||||||
( 11 10 12 13 )
|
|
||||||
( 0 10 11 1 )
|
|
||||||
( 2 3 13 12 )
|
|
||||||
// block1
|
|
||||||
( 4 5 7 6 )
|
|
||||||
( 15 14 16 17 )
|
|
||||||
( 4 14 15 5 )
|
|
||||||
( 6 7 17 16 )
|
|
||||||
// block2
|
|
||||||
( 1 8 9 3 )
|
|
||||||
( 18 11 13 19 )
|
|
||||||
( 3 9 19 13 )
|
|
||||||
( 1 11 18 8 )
|
|
||||||
// block3
|
|
||||||
( 5 9 8 7 )
|
|
||||||
( 19 15 17 18 )
|
|
||||||
( 5 15 19 9 )
|
|
||||||
( 7 8 18 17 )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -124,4 +96,13 @@ mergePatchPairs
|
|||||||
(
|
(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// The defaultFaces == outside "walls"
|
||||||
|
defaultPatch
|
||||||
|
{
|
||||||
|
name walls;
|
||||||
|
type wall;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user