Skip to content
Snippets Groups Projects
Commit 2567ac7c authored by mattijs's avatar mattijs
Browse files

ENH: adapted t-junction-with-fan for new createBaffles.

parent b903ed35
Branches
Tags
No related merge requests found
Showing with 118 additions and 81 deletions
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
......@@ -10,50 +10,53 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform (0 0 0);
internalField uniform ( 0 0 0 );
boundaryField
{
inlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
value uniform ( 0 0 0 );
}
outlet1
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
inletValue uniform ( 0 0 0 );
value uniform ( 0 0 0 );
}
outlet2
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
inletValue uniform ( 0 0 0 );
value uniform ( 0 0 0 );
}
baffles
{
type fixedValue;
value uniform ( 0 0 0 );
}
fan
fan_half0
{
type cyclic;
value uniform ( 0 0 0 );
}
defaultFaces
{
type fixedValue;
value uniform (0 0 0);
value uniform ( 0 0 0 );
}
fan_half1
{
type cyclic;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -24,7 +24,7 @@ boundaryField
inlet
{
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.01; // 1cm - half channel height
mixingLength 0.01;
value uniform 1;
}
outlet1
......@@ -33,7 +33,6 @@ boundaryField
inletValue uniform 1;
value uniform 1;
}
outlet2
{
type inletOutlet;
......@@ -45,16 +44,19 @@ boundaryField
type epsilonWallFunction;
value uniform 1;
}
fan
fan_half0
{
type cyclic;
value uniform 1;
}
defaultFaces
{
type epsilonWallFunction;
value uniform 1;
}
fan_half1
{
type cyclic;
}
}
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -24,7 +24,7 @@ boundaryField
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05; // 5% turbulent intensity
intensity 0.05;
value uniform 1;
}
outlet1
......@@ -33,7 +33,6 @@ boundaryField
inletValue uniform 1;
value uniform 1;
}
outlet2
{
type inletOutlet;
......@@ -45,17 +44,19 @@ boundaryField
type kqRWallFunction;
value uniform 1;
}
fan
fan_half0
{
type cyclic;
value uniform 1;
}
defaultFaces
{
type kqRWallFunction;
value uniform 1;
}
fan_half1
{
type cyclic;
}
}
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
......@@ -10,11 +10,12 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
dimensions [ 0 2 -1 0 0 0 0 ];
internalField uniform 0;
......@@ -24,12 +25,10 @@ boundaryField
{
type zeroGradient;
}
outlet1
{
type zeroGradient;
}
outlet2
{
type zeroGradient;
......@@ -38,15 +37,19 @@ boundaryField
{
type zeroGradient;
}
fan
fan_half0
{
type cyclic;
value uniform 0;
}
defaultFaces
{
type zeroGradient;
}
fan_half1
{
type cyclic;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -26,13 +26,11 @@ boundaryField
type calculated;
value uniform 0;
}
outlet1
{
type calculated;
value uniform 0;
}
outlet2
{
type calculated;
......@@ -43,16 +41,19 @@ boundaryField
type nutkWallFunction;
value uniform 0;
}
fan
fan_half0
{
type cyclic;
value uniform 0;
}
defaultFaces
{
type nutkWallFunction;
value uniform 0;
}
fan_half1
{
type cyclic;
}
}
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
......@@ -10,11 +10,12 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 100000;
......@@ -22,14 +23,10 @@ boundaryField
{
inlet
{
//type totalPressure;
//p0 uniform 100040;
type timeVaryingTotalPressure;
p0 100040; // only used for restarts
p0 100040;
outOfBounds clamp;
fileName "$FOAM_CASE/constant/p0vsTime";
U U;
phi phi;
rho none;
......@@ -37,13 +34,11 @@ boundaryField
gamma 1;
value uniform 100040;
}
outlet1
{
type fixedValue;
value uniform 100010;
}
outlet2
{
type fixedValue;
......@@ -53,17 +48,25 @@ boundaryField
{
type zeroGradient;
}
fan
fan_half0
{
type fan;
patchType cyclic;
f 2 ( 50 -0.1 );
value uniform 100000;
value $internalField;
}
defaultFaces
{
type zeroGradient;
}
fan_half1
{
type fan;
patchType cyclic;
f 2 ( 50 -0.1 );
value $internalField;
}
}
// ************************************************************************* //
......@@ -16,12 +16,12 @@ unset FOAM_SETNAN
# Add cyclic baffles for fan
runApplication setSet -batch selectCyclics.setSet
runApplication createBaffles cyclicFaces fan -overwrite
runApplication createBaffles cyclicFaces '(fan_half0 fan_half1)' -overwrite
# Add wall baffles
rm log.setSet
runApplication setSet -batch selectBaffles.setSet
rm log.createBaffles
runApplication createBaffles baffleFaces baffles -overwrite
runApplication createBaffles baffleFaces '(baffles baffles)' -overwrite
runApplication $application
......@@ -84,32 +84,49 @@ edges
(
);
patches
(
patch inlet
(
(0 10 13 3)
)
patch outlet1
(
(6 7 17 16)
)
patch outlet2
(
(8 18 19 9)
)
wall baffles
()
cyclic fan
()
wall defaultFaces
()
boundary
(
inlet
{
type patch;
faces ((0 10 13 3));
}
outlet1
{
type patch;
faces ((6 7 17 16));
}
outlet2
{
type patch;
faces ((8 18 19 9));
}
baffles
{
type wall;
faces ();
}
fan_half0
{
type cyclic;
faces ();
neighbourPatch fan_half1;
}
fan_half1
{
type cyclic;
faces ();
}
defaultFaces
{
type wall;
faces ();
}
);
mergePatchPairs
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
6
7
(
inlet
{
......@@ -41,12 +41,19 @@ FoamFile
nFaces 0;
startFace 10125;
}
fan
fan_half0
{
type cyclic;
nFaces 0;
startFace 10125;
featureCos 0.9;
neighbourPatch fan_half1;
}
fan_half1
{
type cyclic;
nFaces 0;
startFace 10125;
neighbourPatch fan_half0;
}
defaultFaces
{
......
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