Add mixingPlane tutorials

This commit is contained in:
Martin Beaudoin 2012-04-15 13:43:52 -04:00
parent 8b621679f4
commit a5bb457f39
376 changed files with 22293 additions and 0 deletions

View file

@ -0,0 +1,66 @@
// -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
dimensions [0 0 0 1 0 0 0];
internalField uniform 100;
boundaryField
{
inlet
{
type fixedValue;
value uniform 500;
}
outlet
{
type fixedValue;
value uniform 100;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWallB_C
{
type zeroGradient;
}
rotSwirlWallA_BB
{
type zeroGradient;
}
B_UPSTREAM
{
type mixingPlane;
}
B_DOWNSTREAM
{
type mixingPlane;
}
sideWallA_BB_cyclic1
{
type cyclicGgi;
}
sideWallA_BB_cyclic2
{
type cyclicGgi;
}
defaultFaces
{
type empty;
}
} // ************************************************************************* //

View file

@ -0,0 +1,50 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanSampling ()
{
rm -rf sets > /dev/null 2>&1
}
cleanPostProcessing ()
{
rm -rf postProcessing/*.png > /dev/null 2>&1
rm -rf postProcessing/log.sample > /dev/null 2>&1
rm -rf postProcessing/log.foamLog > /dev/null 2>&1
rm -rf postProcessing/log.gnuplotPlotResiduals > /dev/null 2>&1
rm -rf postProcessing/log.gnuplotCompareAll > /dev/null 2>&1
rm -rf postProcessing/logs > /dev/null 2>&1
}
cleanFilesFromM4 ()
{
rm {constant/polyMesh/boundary,constant/polyMesh/blockMeshDict} > /dev/null 2>&1
}
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanSampling
cleanPostProcessing
cleanCase
cleanFilesFromM4
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,62 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Creating the file blockMeshDict using m4"
(cd constant/polyMesh; m4 -P blockMeshDict.m4 > blockMeshDict)
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
#if not using PyFOAM, use this pre-configured boundary file
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
# if using PyFOAM, use these commands instead
# pyFoamModifyMixingPlaneBoundary.py . B_UPSTREAM \
# --shadowName B_DOWNSTREAM \
# --profileType radial \
# --coordinateSystemType cylindrical \
# --coordinateSystemOrigin "(0 0 0)" \
# --coordinateSystemAxis "(0 0 1)" \
# --coordinateSystemDirection "(1 0 0)"
# pyFoamModifyMixingPlaneBoundary.py . B_DOWNSTREAM \
# --shadowName B_UPSTREAM \
# --profileType radial \
# --coordinateSystemType cylindrical \
# --coordinateSystemOrigin "(0 0 0)" \
# --coordinateSystemAxis "(0 0 1)" \
# --coordinateSystemDirection "(1 0 0)"
# pyFoamModifyGGIBoundary.py . sideWallA_BB_cyclic1 \
# --shadowName sideWallA_BB_cyclic2 \
# --rotationAxis "(0 0 1)" \
# --patchZoneName sideWallA_BB_cyclic1Zone \
# --rotationAngle 60
# pyFoamModifyGGIBoundary.py . sideWallA_BB_cyclic2 \
# --shadowName sideWallA_BB_cyclic1 \
# --rotationAxis "(0 0 1)" \
# --patchZoneName sideWallA_BB_cyclic2Zone \
# --rotationAngle -60
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
runApplication setSet -batch setBatchGgi
runApplication setsToZones -noFlipMap
echo "$caseName: Running laplacianFoam"
runApplicationAndReportOnError laplacianFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,200 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
laminarCoeffs
{
}
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
RNGkEpsilonCoeffs
{
Cmu 0.0845;
C1 1.42;
C2 1.68;
alphak 1.39;
alphaEps 1.39;
eta0 4.38;
beta 0.012;
}
realizableKECoeffs
{
Cmu 0.09;
A0 4.0;
C2 1.9;
alphak 1;
alphaEps 0.833333;
}
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.0750;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
c1 10;
Cmu 0.09;
}
NonlinearKEShihCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76932;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
LienCubicKECoeffs
{
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
QZetaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaZeta 0.76923;
anisotropic no;
}
LaunderSharmaKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LamBremhorstKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LienCubicKELowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LienLeschzinerLowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LRRCoeffs
{
Cmu 0.09;
Clrr1 1.8;
Clrr2 0.6;
C1 1.44;
C2 1.92;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
}
LaunderGibsonRSTMCoeffs
{
Cmu 0.09;
Clg1 1.8;
Clg2 0.6;
C1 1.44;
C2 1.92;
C1Ref 0.5;
C2Ref 0.3;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
alphaR 1.22;
}
SpalartAllmarasCoeffs
{
alphaNut 1.5;
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2;
Cv1 7.1;
Cv2 5.0;
}
wallFunctionCoeffs
{
kappa 0.4187;
E 9;
}
// ************************************************************************* //

View file

@ -0,0 +1,2 @@
Run using:
m4 -P blockMeshDict.m4 > blockMeshDict

View file

@ -0,0 +1,353 @@
// Parametrized test case for the ERCOFTAC diffuser.
// Created by Omar Bounous
// Modified by Martin Beaudoin (11/2009)
//Run using:
//m4 -P blockMeshDict.m4 > blockMeshDict
//m4 definitions:
m4_changecom(//)m4_changequote([,])
m4_define(calc, [m4_esyscmd(perl -e 'use Math::Trig; printf ($1)')])
m4_define(pi, 3.14159265358979323844)
m4_define(rad, [calc($1*pi/180.0)])
m4_define(VCOUNT, 0)
m4_define(vlabel, [[// ]Vertex $1 = VCOUNT m4_define($1, VCOUNT)m4_define([VCOUNT], m4_incr(VCOUNT))])
//Mathematical constants:
m4_define(sqr,0.707106781186548)
// Make sure we are properly aligned for sampling inside the mesh volume
m4_define(startAngleOffset, rad(60.0))
// Angle span for section A_BB
m4_define(startAngleSectionA_BB, rad(startAngleOffset + 0.0))
m4_define(stopAngleSectionA_BB, rad(startAngleOffset + 60.0))
m4_define(angleSpanSectionA_BB, calc(stopAngleSectionA_BB - startAngleSectionA_BB))
//Geometry
m4_define(openingAngle, 10.0)
m4_define(diffuserLength, 0.51)
m4_define(extensionLength, 0.59)
m4_define(rIn,0.13)
m4_define(rOut, calc(rIn+diffuserLength*tan(openingAngle*pi/180.0)))
//Grid points (integers!):
// For a better mesh resolution in the radial and tangential direction,
// play with rNumberOfCells and tNumberOfCells
m4_define(rNumberOfCells, 25)
m4_define(tNumberOfCells, 20)
//m4_define(rNumberOfCells, 3)
//m4_define(tNumberOfCells, 4)
//
m4_define(zABnumberOfCells, 10)
m4_define(zBCnumberOfCells, 4)
m4_define(zCDnumberOfCells, 6)
m4_define(zDEnumberOfCells, 30)
m4_define(zEFnumberOfCells, 10)
m4_define(rGrading, 0.2)
//Plane A:
m4_define(zA, -0.50)
m4_define(rA, rIn)
//Plane B:
m4_define(zB, -0.10)
m4_define(rB, rIn)
//Plane BB: // This is where we put the mixingPlane interface
m4_define(zBB, -0.10)
m4_define(rBB, rIn)
//Plane C:
m4_define(zC, -0.025)
m4_define(rC, rIn)
//Plane D:
m4_define(zD, 0)
m4_define(rD, rIn)
//Plane E:
m4_define(zE, diffuserLength)
m4_define(rE, rOut)
//Plane F:
m4_define(zF, calc(diffuserLength+extensionLength))
m4_define(rF, rOut)
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
//Plane A: Only a sector
( 0 0 zA) vlabel(A0)
(calc(rA*cos(startAngleSectionA_BB)) calc(rA*sin(startAngleSectionA_BB)) zA) vlabel(A1)
(calc(rA*cos( stopAngleSectionA_BB)) calc(rA*sin( stopAngleSectionA_BB)) zA) vlabel(A2)
//Plane BB: Only a sector
( 0 0 zBB) vlabel(BB0)
(calc(rBB*cos(startAngleSectionA_BB)) calc(rBB*sin(startAngleSectionA_BB)) zBB) vlabel(BB1)
(calc(rBB*cos( stopAngleSectionA_BB)) calc(rBB*sin( stopAngleSectionA_BB)) zBB) vlabel(BB2)
//Plane B:
( 0 0 zB) vlabel(B0)
( rB 0 zB) vlabel(B1)
( 0 rB zB) vlabel(B2)
(-rB 0 zB) vlabel(B3)
( 0 -rB zB) vlabel(B4)
//Plane C:
(0 0 zC) vlabel(C0)
(rC 0 zC) vlabel(C1)
(0 rC zC) vlabel(C2)
(-rC 0 zC) vlabel(C3)
(0 -rC zC) vlabel(C4)
//Plane D:
(0 0 zD) vlabel(D0)
(rD 0 zD) vlabel(D1)
(0 rD zD) vlabel(D2)
(-rD 0 zD) vlabel(D3)
(0 -rD zD) vlabel(D4)
//Plane E:
(0 0 zE) vlabel(E0)
(rE 0 zE) vlabel(E1)
(0 rE zE) vlabel(E2)
(-rE 0 zE) vlabel(E3)
(0 -rE zE) vlabel(E4)
//Plane F:
(0 0 zF) vlabel(F0)
(rF 0 zF) vlabel(F1)
(0 rF zF) vlabel(F2)
(-rF 0 zF) vlabel(F3)
(0 -rF zF) vlabel(F4)
);
// Defining blocks:
blocks
(
//Blocks between plane A and plane BB:
// block0 - positive x and y
hex (A0 A1 A2 A0 BB0 BB1 BB2 BB0) ABB
(rNumberOfCells tNumberOfCells zABnumberOfCells)
simpleGrading (rGrading 1 1)
//Blocks between plane B and plane C:
// block0 - positive x and y
hex (B0 B1 B2 B0 C0 C1 C2 C0) BC
(rNumberOfCells tNumberOfCells zBCnumberOfCells)
simpleGrading (rGrading 1 1)
// block1 - negative x positive y
hex (B0 B2 B3 B0 C0 C2 C3 C0) BC
(rNumberOfCells tNumberOfCells zBCnumberOfCells)
simpleGrading (rGrading 1 1)
// block2 - negative x and y
hex (B0 B3 B4 B0 C0 C3 C4 C0) BC
(rNumberOfCells tNumberOfCells zBCnumberOfCells)
simpleGrading (rGrading 1 1)
// block3 - positive x negative y
hex (B0 B4 B1 B0 C0 C4 C1 C0) BC
(rNumberOfCells tNumberOfCells zBCnumberOfCells)
simpleGrading (rGrading 1 1)
//Blocks between plane C and plane D:
// block0 - positive x and y
hex (C0 C1 C2 C0 D0 D1 D2 D0) CD
(rNumberOfCells tNumberOfCells zCDnumberOfCells)
simpleGrading (rGrading 1 1)
// block1 - negative x positive y
hex (C0 C2 C3 C0 D0 D2 D3 D0) CD
(rNumberOfCells tNumberOfCells zCDnumberOfCells)
simpleGrading (rGrading 1 1)
// block2 - negative x and y
hex (C0 C3 C4 C0 D0 D3 D4 D0) CD
(rNumberOfCells tNumberOfCells zCDnumberOfCells)
simpleGrading (rGrading 1 1)
// block3 - positive x negative y
hex (C0 C4 C1 C0 D0 D4 D1 D0) CD
(rNumberOfCells tNumberOfCells zCDnumberOfCells)
simpleGrading (rGrading 1 1)
//Blocks between plane D and plane E:
// block0 - positive x and y
hex (D0 D1 D2 D0 E0 E1 E2 E0) DE
(rNumberOfCells tNumberOfCells zDEnumberOfCells)
simpleGrading (rGrading 1 1)
// block1 - negative x positive y
hex (D0 D2 D3 D0 E0 E2 E3 E0) DE
(rNumberOfCells tNumberOfCells zDEnumberOfCells)
simpleGrading (rGrading 1 1)
// block2 - negative x and y
hex (D0 D3 D4 D0 E0 E3 E4 E0) DE
(rNumberOfCells tNumberOfCells zDEnumberOfCells)
simpleGrading (rGrading 1 1)
// block3 - positive x negative y
hex (D0 D4 D1 D0 E0 E4 E1 E0) DE
(rNumberOfCells tNumberOfCells zDEnumberOfCells)
simpleGrading (rGrading 1 1)
//Blocks between plane E and plane F:
// block0 - positive x and y
hex (E0 E1 E2 E0 F0 F1 F2 F0) EF
(rNumberOfCells tNumberOfCells zEFnumberOfCells)
simpleGrading (rGrading 1 1)
// block1 - negative x positive y
hex (E0 E2 E3 E0 F0 F2 F3 F0) EF
(rNumberOfCells tNumberOfCells zEFnumberOfCells)
simpleGrading (rGrading 1 1)
// block2 - negative x and y
hex (E0 E3 E4 E0 F0 F3 F4 F0) EF
(rNumberOfCells tNumberOfCells zEFnumberOfCells)
simpleGrading (rGrading 1 1)
// block3 - positive x negative y
hex (E0 E4 E1 E0 F0 F4 F1 F0) EF
(rNumberOfCells tNumberOfCells zEFnumberOfCells)
simpleGrading (rGrading 1 1)
);
edges
(
//Plane A:
arc A1 A2 (calc(rA*cos(startAngleOffset + (angleSpanSectionA_BB)/2)) calc(rA*sin(startAngleOffset + (angleSpanSectionA_BB)/2)) zA)
//Plane BB:
arc BB1 BB2 (calc(rBB*cos(startAngleOffset + (angleSpanSectionA_BB)/2)) calc(rBB*sin(startAngleOffset + (angleSpanSectionA_BB)/2)) zBB)
//Plane B:
arc B1 B2 (calc(rB*sqr) calc(rB*sqr) zB)
arc B2 B3 (-calc(rB*sqr) calc(rB*sqr) zB)
arc B3 B4 (-calc(rB*sqr) -calc(rB*sqr) zB)
arc B4 B1 (calc(rB*sqr) -calc(rB*sqr) zB)
//Plane C:
arc C1 C2 (calc(rC*sqr) calc(rC*sqr) zC)
arc C2 C3 (-calc(rC*sqr) calc(rC*sqr) zC)
arc C3 C4 (-calc(rC*sqr) -calc(rC*sqr) zC)
arc C4 C1 (calc(rC*sqr) -calc(rC*sqr) zC)
//Plane D:
arc D1 D2 (calc(rD*sqr) calc(rD*sqr) zD)
arc D2 D3 (-calc(rD*sqr) calc(rD*sqr) zD)
arc D3 D4 (-calc(rD*sqr) -calc(rD*sqr) zD)
arc D4 D1 (calc(rD*sqr) -calc(rD*sqr) zD)
//Plane E:
arc E1 E2 (calc(rE*sqr) calc(rE*sqr) zE)
arc E2 E3 (-calc(rE*sqr) calc(rE*sqr) zE)
arc E3 E4 (-calc(rE*sqr) -calc(rE*sqr) zE)
arc E4 E1 (calc(rE*sqr) -calc(rE*sqr) zE)
//Plane F:
arc F1 F2 (calc(rF*sqr) calc(rF*sqr) zF)
arc F2 F3 (-calc(rF*sqr) calc(rF*sqr) zF)
arc F3 F4 (-calc(rF*sqr) -calc(rF*sqr) zF)
arc F4 F1 (calc(rF*sqr) -calc(rF*sqr) zF)
);
// Defining patches:
patches
(
patch inlet
(
(A0 A2 A1 A0)
)
patch outlet
(
(F0 F1 F2 F0)
(F0 F2 F3 F0)
(F0 F3 F4 F0)
(F0 F4 F1 F0)
)
wall wallProlongation
(
(E1 E2 F2 F1)
(E2 E3 F3 F2)
(E3 E4 F4 F3)
(E4 E1 F1 F4)
)
wall wallDiffuser
(
(D1 D2 E2 E1)
(D2 D3 E3 E2)
(D3 D4 E4 E3)
(D4 D1 E1 E4)
)
wall statSwirlWallB_C
(
(B1 B2 C2 C1)
(B2 B3 C3 C2)
(B3 B4 C4 C3)
(B4 B1 C1 C4)
(C1 C2 D2 D1)
(C2 C3 D3 D2)
(C3 C4 D4 D3)
(C4 C1 D1 D4)
)
wall rotSwirlWallA_BB
(
(A1 A2 BB2 BB1)
)
cyclicGgi sideWallA_BB_cyclic1
(
(A0 BB0 BB1 A1)
)
cyclicGgi sideWallA_BB_cyclic2
(
(BB0 A0 A2 BB2)
)
mixingPlane B_UPSTREAM // BB : master
(
(BB0 BB2 BB1 BB0)
)
mixingPlane B_DOWNSTREAM // B : master
(
(B0 B2 B1 B0)
(B0 B1 B4 B0)
(B0 B4 B3 B0)
(B0 B3 B2 B0)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,125 @@
// -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
(
inlet
{
type patch;
nFaces 500;
startFace 308050;
}
outlet
{
type patch;
nFaces 2000;
startFace 308550;
}
wallProlongation
{
type wall;
nFaces 800;
startFace 310550;
}
wallDiffuser
{
type wall;
nFaces 2400;
startFace 311350;
}
statSwirlWallB_C
{
type wall;
nFaces 800;
startFace 313750;
}
rotSwirlWallA_BB
{
type wall;
nFaces 200;
startFace 314550;
}
sideWallA_BB_cyclic1
{
type cyclicGgi;
nFaces 250;
startFace 314750;
shadowPatch sideWallA_BB_cyclic2;
zone sideWallA_BB_cyclic1Zone;
bridgeOverlap off;
rotationAxis (0 0 1);
rotationAngle 60;
separationOffset (0 0 0);
}
sideWallA_BB_cyclic2
{
type cyclicGgi;
nFaces 250;
startFace 315000;
shadowPatch sideWallA_BB_cyclic1;
zone sideWallA_BB_cyclic2Zone;
bridgeOverlap off;
rotationAxis (0 0 1);
rotationAngle -60;
separationOffset (0 0 0);
}
B_UPSTREAM
{
type mixingPlane;
nFaces 500;
startFace 315250;
shadowPatch B_DOWNSTREAM;
coordinateSystem
{
type cylindrical;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
}
orientation dirR_spanTheta;
assembly both;
}
B_DOWNSTREAM
{
type mixingPlane;
nFaces 2000;
startFace 315750;
shadowPatch B_UPSTREAM;
coordinateSystem
{
type cylindrical;
origin (0 0 0);
axis (0 0 1);
direction (1 0 0);
}
orientation dirR_spanTheta;
assembly both;
}
)

View file

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object swirlAndRotationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
modifyBoundaries yes;
modifyInterior yes;
omega omega [0 2 -1 0 0 0 0] (0.0 0.0 52.646);
center center [0 0 0 0 0 0 0] (0.0 0.0 0.0);
rotatingPatches (
inlet
rotSwirlWallA_BB
);
// ************************************************************************* //

View file

@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [0 2 -1 0 0 0 0] 4e-01;
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1.5e-05;
CrossPowerLawCoeffs
{
nu0 nu0 [0 2 -1 0 0 0 0] 1e-06;
nuInf nuInf [0 2 -1 0 0 0 0] 1e-06;
m m [0 0 1 0 0 0 0] 1;
n n [0 0 0 0 0 0 0] 1;
}
BirdCarreauCoeffs
{
nu0 nu0 [0 2 -1 0 0 0 0] 1e-06;
nuInf nuInf [0 2 -1 0 0 0 0] 1e-06;
k k [0 0 1 0 0 0 0] 0;
n n [0 0 0 0 0 0 0] 1;
}
// ************************************************************************* //

View file

@ -0,0 +1,20 @@
Do automatic post-processing by doing the following:
(this example uses time step 1200. To use another time step
modify the -time for sample, and modify in compareAll.gplt)
sample -case .. -time 1200
gnuplot compareAll.gplt
mozilla file://$PWD/compareAll.html
To plot the residuals do the following:
(This example assumes that you have a log file in your case directory)
foamLog ../log
gnuplot plotResiduals.gplt
mozilla file://$PWD/residuals.png
The development of these files was done by:
Håkan Nilsson, Chalmers University of Technology, Sweden
Maryse Page, IREQ, Hydro Quebec, Canada
Martin Beaudoin, IREQ, Hydro Quebec, Canada
Omar Bounous, Chalmers University of Technology, Sweden

View file

@ -0,0 +1,21 @@
#
# Automatic post processing by H<>an Nilsson, Maryse Page and Martin Beaudoin
#
call "compareU.gplt" "-25" "0" "1.3e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "025" "10" "1.34341204e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "060" "10" "1.40418891e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "100" "10" "1.47364818e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "175" "10" "1.60388431e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "250" "10" "1.73412044e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "330" "10" "1.87303899e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareU.gplt" "405" "10" "2.00327512e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "-25" "0" "1.3e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "025" "10" "1.34341204e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "060" "10" "1.40418891e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "100" "10" "1.47364818e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "175" "10" "1.60388431e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "250" "10" "1.73412044e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "330" "10" "1.87303899e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"
call "compareK.gplt" "405" "10" "2.00327512e-01" "Case1.1_mixingPlane_sector_AB_60deg" "1200"

View file

@ -0,0 +1,25 @@
<HTML>
<HEAD>
<TITLE>ERCOFTAC Conical Diffuser Validation</TITLE>
</HEAD>
<IMG SRC="U-25.png">
<IMG SRC="U025.png">
<IMG SRC="U060.png">
<IMG SRC="U100.png">
<IMG SRC="U175.png">
<IMG SRC="U250.png">
<IMG SRC="U330.png">
<IMG SRC="U405.png">
<IMG SRC="k-25.png">
<IMG SRC="k025.png">
<IMG SRC="k060.png">
<IMG SRC="k100.png">
<IMG SRC="k175.png">
<IMG SRC="k250.png">
<IMG SRC="k330.png">
<IMG SRC="k405.png">
</HTML>

View file

@ -0,0 +1,64 @@
#
# Automatic post processing by H<>an Nilsson, Maryse Page and Martin Beaudoin
#
# 1.0.1 2008-03-14 Maryse Page, Hydro-Quebec
# Correction for the k experimental values: ($$2/100) instead of ($$2/U0/U0)
#
# $0: 1st argument, position
# $1: 2st argument, angle of diffuser in degrees
# $2: 3st argument, radius at cross-section
# $3: 4rd argument, case name of solution 1
# $4: 5th argument, time of sample for solution 1
#
pause 0 "arg0 : $0"
pause 0 "arg1 : $1"
pause 0 "arg2 : $2"
pause 0 "arg3 : $3"
pause 0 "arg4 : $4"
pause 0 "arg5 : $5"
angle = $1*3.141592654/180. # angle of diffuser in radians
U0 = 11.6 # axial mean velocity [m/s]
set output 'k$0.png'
set terminal png medium
#set output 'k$0.eps'
#set term postscript color # color
#set term postscript # black and white
#Enhanced Metafile Format, for vectorized MS Win32 plots:
#set terminal emf monochrome dashed 'Times' 20
#set output 'k$0.emf'
#
# ERCOFTAC TESTCASE 3: Swirling boundary layer in conical diffuser
#
# k/(U0^2) as a function of y (m), at corresponding sections
#
set autoscale
set noarrow
set nolabel
set nogrid
set grid
set xlabel 'y (mm)'
set ylabel 'k/(U_0^2)'
set title 'Section z = $0mm'
set xrange [0:220]
set xtics 0,20,220
set yrange [0:0.020]
set ytics 0,0.0025,0.020
#
plot \
"../../measurements/test60/k$0.dat" \
using ($$1):($$2/100) title "Measured k" \
,\
"../../Case1.1/sets/$4/Comp$0_Y_p_k_epsilon.xy" \
using (($2-$$1)*1000/cos(angle)):($$3/U0/U0) \
title "Case1.1, k" with lines linewidth 2 \
,\
"../sets/$4/Comp$0_Y_p_k_epsilon.xy" \
using (($2-$$1)*1000/cos(angle)):($$3/U0/U0) \
title "$3, k" with lines linewidth 2 \

View file

@ -0,0 +1,72 @@
#
# Automatic post processing by Hkan Nilsson, Maryse Page and Martin Beaudoin
#
# $0: 1st argument, position
# $1: 2st argument, angle of diffuser in degrees
# $2: 3st argument, radius at cross-section
# $3: 4rd argument, case name of solution 1
# $4: 5th argument, time of sample for solution 1
#
pause 0 "arg0 : $0"
pause 0 "arg1 : $1"
pause 0 "arg2 : $2"
pause 0 "arg3 : $3"
pause 0 "arg4 : $4"
pause 0 "arg5 : $5"
angle = $1*3.141592654/180. # angle of diffuser in radians
U0 = 11.6 # axial mean velocity [m/s]
set output 'U$0.png'
set terminal png medium
#set output 'U$0.eps'
#set term postscript color # color
#set term postscript # black and white
#Enhanced Metafile Format, for vectorized MS Win32 plots:
#set terminal emf monochrome dashed 'Times' 20
#set output 'U$0.emf'
#
# ERCOFTAC TESTCASE 3: Swirling boundary layer in conical diffuser
#
# U/(U0) as a function of y (m), at corresponding sections
#
set autoscale
set noarrow
set nolabel
set nogrid
set grid
set xlabel 'y (mm)'
set ylabel 'U/(U_0)'
set title 'Section z = $0mm'
set xrange [0:220]
set xtics 0,20,220
set yrange [-0.2:1.3]
set ytics -0.2,0.1,1.3
#
plot \
"../../measurements/test60/Mm$0.dat" \
using ($$1):($$2/U0) title "Measured U" with points linewidth 2 \
, \
"../../measurements/test60/Mm$0.dat" \
using ($$1):($$3/U0) title "Measured W" with points linewidth 2 \
, \
"../../Case1.1/sets/$4/Comp$0_Y_U.xy" \
using (($2-$$1)*1000/cos(angle)):(($$4*cos(angle)+$$3*sin(angle))/U0)\
title "Case1.1, U" with lines linewidth 2 \
, \
"../../Case1.1/sets/$4/Comp$0_Y_U.xy" \
using (($2-$$1)*1000/cos(angle)):(-$$2/U0) \
title "Case1.1, W" with lines linewidth 2 \
, \
"../sets/$4/Comp$0_Y_U.xy" \
using (($2-$$1)*1000/cos(angle)):(($$4*cos(angle)+$$3*sin(angle))/U0)\
title "$3, U" with lines linewidth 2 \
, \
"../sets/$4/Comp$0_Y_U.xy" \
using (($2-$$1)*1000/cos(angle)):(-$$2/U0) \
title "$3, W" with lines linewidth 2 \

View file

@ -0,0 +1,41 @@
#
# Automatic residual plot by
# Håkan Nilsson, Omar Bounous, Maryse Page and Martin Beaudoin
#
set output 'residuals.png'
set terminal png medium
#set output 'residuals.eps'
#set term postscript color # color
#set term postscript # black and white
set autoscale
set noarrow
set nolabel
set nogrid
set grid
set logscale y
set xlabel 'Iteration'
set ylabel 'Residual'
set title 'Case1.1'
#
plot \
"logs/Ux_0" \
title "Ux_0" with lines linewidth 2 \
, \
"logs/Uy_0" \
title "Uy_0" with lines linewidth 2 \
, \
"logs/Uz_0" \
title "Uz_0" with lines linewidth 2 \
, \
"logs/p_0" \
title "p_0" with lines linewidth 2 \
, \
"logs/k_0" \
title "k_0" with lines linewidth 2 \
, \
"logs/epsilon_0" \
title "epsilon_0" with lines linewidth 2 \

View file

@ -0,0 +1,3 @@
faceSet sideWallA_BB_cyclic1Zone new patchToFace sideWallA_BB_cyclic1
faceSet sideWallA_BB_cyclic2Zone new patchToFace sideWallA_BB_cyclic2
quit

View file

@ -0,0 +1,101 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application laplacianFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 20;
deltaT 1;
writeControl timeStep;
writeInterval 10;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression compressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
functions
(
// trackDictionaryContent
// {
// type trackDictionary;
// // Where to load it from (if not already in solver)
// functionObjectLibs ("libsimpleFunctionObjects.so");
// // Names of dictionaries to track.
// dictionaryNameList
// (
// "system/controlDict"
// "system/fvSchemes"
// "system/fvSolution"
// "constant/transportProperties"
// "constant/RASProperties"
// );
// // Section separators (optional)
// // If the string "_sectionIdToken_" explicitely appears in the
// // specification of the following section separators, this token
// // string will be replaced by the name of the dictionary beeing
// // dumped to the console, plus the file modification date and time.
// sectionStartSeparator "############ Start of: _sectionIdToken_ ############";
// sectionEndSeparator "############ End of: _sectionIdToken_ ############";
//
// echoControlDictDebugSwitches off;
// echoControlDictInfoSwitches off;
// echoControlDictTolerances off;
// echoControlDictOptimisationSwitches off;
// echoControlDictDimensionedConstants off;
// }
// Compute the flux value on each side of a mixingPlane interface
mixPCheck_phi
{
// Type of functionObject
type mixingPlaneCheck;
masterPatchName B_UPSTREAM;
masterPatchScaleFactor 1;
shadowPatchScaleFactor 1;
phi phi;
// Where to load it from (if not already in solver)
functionObjectLibs ("libcheckFunctionObjects.so");
}
);
//libs ( "libOpenFOAM.so" "libmixingPlane.so" );
// ************************************************************************* //

View file

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 12;
method metis;
simpleCoeffs
{
n (2 2 1);
delta 0.001;
}
hierarchicalCoeffs
{
n (1 1 1);
delta 0.001;
order xyz;
}
metisCoeffs
{
processorWeights
(
1
1
1
1
1
1
1
1
1
1
1
1
);
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots
(
);
// ************************************************************************* //

View file

@ -0,0 +1,71 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwind Gauss;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(nuEff,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(DREff,R) Gauss linear corrected;
laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
laplacian(1,p) Gauss linear corrected;
laplacian(DT,T) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
interpolate(U) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************************************* //

View file

@ -0,0 +1,75 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
T
{
solver BiCGStab;
preconditioner diagonal;
tolerance 1e-06;
relTol 0;
};
p
{
solver BiCGStab;
preconditioner diagonal;
tolerance 1e-06;
relTol 0.01;
}
U
{
solver BiCGStab;
preconditioner diagonal;
tolerance 1e-05;
relTol 0.1;
}
k
{
solver BiCGStab;
preconditioner diagonal;
tolerance 1e-05;
relTol 0.1;
}
epsilon
{
solver BiCGStab;
preconditioner diagonal;
tolerance 1e-05;
relTol 0.1;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
p 0.3;
U 0.7;
k 0.7;
epsilon 0.7;
R 0.7;
nuTilda 0.7;
}
// ************************************************************************* //

View file

@ -0,0 +1,105 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
//interpolationScheme cellPointFace;
//interpolationScheme cell;
//setFormat xmgr;
//setFormat gnuplot;
setFormat raw;
//setFormat jplot;
sets
(
Comp-25_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0 0.13 -0.025);
end (0 0 -0.025);
nPoints 100;
}
Comp025_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.34341204e-01 2.4620194e-02);
end (0.00000000e+00 0.00000000e+00 4.8308173e-02);
nPoints 100;
}
Comp060_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.40418891e-01 5.9088465e-02);
end (0.00000000e+00 0.00000000e+00 8.3848104e-02);
nPoints 100;
}
Comp100_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.47364818e-01 9.8480775e-02);
end (0.00000000e+00 0.00000000e+00 1.24465168e-01);
nPoints 100;
}
Comp175_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.60388431e-01 1.723413577e-01);
end (0.00000000e+00 0.00000000e+00 2.00622165e-01);
nPoints 100;
}
Comp250_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.73412044e-01 2.46201938e-01);
end (0.00000000e+00 0.00000000e-00 2.767791604e-01);
nPoints 100;
}
Comp330_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 1.87303899e-01 3.24986558e-01);
end (0.00000000e+00 0.00000000e+00 3.58013289e-01);
nPoints 100;
}
Comp405_Y //Resulting file name
{
type uniform;
axis y; //x-axis in plot
start (0.00000000e+00 2.00327512e-01 3.98847140e-01);
end (0.00000000e+00 0.00000000e+00 4.34170285e-01);
nPoints 100;
}
);
surfaces
();
fields
(
U
p
k
epsilon
);
// ************************************************************************* //

View file

@ -0,0 +1,53 @@
#FIG 3.2 Produced by xfig version 3.2.5
Landscape
Center
Inches
Letter
100.00
Single
-2
1200 2
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
1100 -340 1100 340
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 1 2
0 0 1.00 60.00 120.00
0 0 1.00 60.00 120.00
1200 -340 1200 340
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 1 2
0 0 1.00 60.00 120.00
0 0 1.00 60.00 120.00
510 -425 0 -425
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 1 2
0 0 1.00 60.00 120.00
0 0 1.00 60.00 120.00
1100 -425 510 -425
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
0 -260 510 -260
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
0 0 300 0
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
0 75 0 -75
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 6
1100 -340 510 -340 0 -260 -25 -260 -100 -260 -500 -260
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 6
1100 340 510 340 0 260 -25 260 -100 260 -500 260
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
-500 -260 -500 260
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 1 2
0 0 1.00 60.00 120.00
0 0 1.00 60.00 120.00
-575 -260 -575 260
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 1 2
0 0 1.00 60.00 120.00
0 0 1.00 60.00 120.00
0 -425 -500 -425
4 0 0 50 0 0 5 0.0000 4 75 540 30 -490 diffuserLength\001
4 0 0 50 0 0 5 0.0000 4 75 630 575 -490 extensionLength\001
4 0 0 50 0 0 5 1.5708 4 90 750 1350 300 Outlet, D depends on\001
4 0 0 50 0 0 5 0.0000 4 90 510 475 -275 openingAngle\001
4 0 0 50 0 0 5 1.5708 4 75 675 1425 300 rIn, diffuserLength\001
4 0 0 50 0 0 5 1.5708 4 90 645 1500 300 and openingAngle\001
4 0 0 50 0 0 5 0.0000 4 45 45 225 -75 z\001
4 0 0 50 0 0 5 1.5708 4 75 555 -650 225 Inlet, D = 2*rIn\001
4 0 0 50 0 0 5 0.0000 4 60 165 -325 -490 0.5m\001

View file

@ -0,0 +1 @@
Use xfig to modify these files according to your geometry.

View file

@ -0,0 +1,54 @@
#FIG 3.2 Produced by xfig version 3.2.5
Landscape
Center
Inches
Letter
100.00
Single
-2
1200 2
1 3 0 1 0 7 50 0 -1 0.000 1 0.0000 0 0 2600 2600 0 0 2600 0
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
0 0 2600 0
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
0 0 0 -2600
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
0 0 0 2600
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2
0 0 -2600 0
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
0 0 1840 -1840
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1000 300 700 80
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1600 300 1700 70
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1300 300 1250 60
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
2000 300 2200 70
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1900 975 2400 700
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1900 1150 2200 1100
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1000 1400 1400 2000
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
600 1400 600 2300
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1400 1400 1750 1750
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
0 0 1.00 60.00 120.00
1800 1300 2000 1500
4 0 0 50 0 0 12 0.0000 4 150 1440 800 500 rNumberOfCells\001
4 0 0 50 0 0 12 0.0000 4 150 240 700 -1000 rA\001
4 0 0 50 0 0 12 0.0000 4 150 1425 500 1200 tNumberOfCells\001

View file

@ -0,0 +1,31 @@
#FIG 3.2 Produced by xfig version 3.2.5
Landscape
Center
Inches
Letter
100.00
Single
-2
1200 2
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
1100 -220 1100 220
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
0 -130 0 130
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
510 -220 510 220
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
-25 -130 -25 130
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
-100 -130 -100 130
2 1 1 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2
-500 -130 -500 130
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 6
1100 220 510 220 0 130 -25 130 -100 130 -500 130
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 6
1100 -220 510 -220 0 -130 -25 -130 -100 -130 -500 -130
4 0 0 50 0 0 4 0.0000 4 60 60 -475 20 A\001
4 0 0 50 0 0 4 0.0000 4 60 60 -150 20 B\001
4 0 0 50 0 0 4 0.0000 4 60 60 -75 20 C\001
4 0 0 50 0 0 4 0.0000 4 60 60 10 20 D\001
4 0 0 50 0 0 4 0.0000 4 60 60 525 20 E\001
4 0 0 50 0 0 4 0.0000 4 60 60 1125 20 F\001

View file

@ -0,0 +1,68 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.3 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Field Dictionary
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 1 0 0 0];
internalField uniform 100;
boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
leftIn
{
type fixedValue;
value uniform 10;
}
rightOut
{
type fixedValue;
value uniform 0;
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanCase
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,29 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
#if not using PyFOAM, use this pre-configured boundary file
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running laplacianFoam"
runApplicationAndReportOnError laplacianFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,91 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
(1 0 0)
(2 0 0)
(2 1 0)
(1 1 0)
(1 0 0.1)
(2 0 0.1)
(2 1 0.1)
(1 1 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 10 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
wall top
(
(3 7 6 2)
(11 15 14 10)
)
wall bottom
(
(1 5 4 0)
(9 13 12 8)
)
patch leftIn
(
(0 4 7 3)
)
mixingPlane mixpLeftOut
(
(2 6 5 1)
)
mixingPlane mixpRightIn
(
(8 12 15 11)
)
patch rightOut
(
(10 14 13 9)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
(8 11 10 9)
(12 13 14 15)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//DT DT [0 2 -1 0 0 0 0] 4e-05;
DT DT [0 2 -1 0 0 0 0] 4e-01;
// ************************************************************************* //

View file

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.3 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application laplacianFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 2;
deltaT 1;
writeControl runTime;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 8;
writeCompression uncompressed;
timeFormat general;
timePrecision 8;
graphFormat raw;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
grad(T) Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(DT,T) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
T;
}
// ************************************************************************* //

View file

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
T
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 10;
minIter 1;
maxiter 1000;
tolerance 1e-06;
relTol 0;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,68 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.3 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Field Dictionary
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 1 0 0 0];
internalField uniform 100;
boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
leftIn
{
type fixedValue;
value uniform 10;
}
rightOut
{
type fixedValue;
value uniform 0;
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanCase
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,29 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
#if not using PyFOAM, use this pre-configured boundary file
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running laplacianFoam"
runApplicationAndReportOnError laplacianFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,91 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
(1 0 0)
(2 0 0)
(2 1 0)
(1 1 0)
(1 0 0.1)
(2 0 0.1)
(2 1 0.1)
(1 1 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 3 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
wall top
(
(3 7 6 2)
(11 15 14 10)
)
wall bottom
(
(1 5 4 0)
(9 13 12 8)
)
patch leftIn
(
(0 4 7 3)
)
mixingPlane mixpLeftOut
(
(2 6 5 1)
)
mixingPlane mixpRightIn
(
(8 12 15 11)
)
patch rightOut
(
(10 14 13 9)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
(8 11 10 9)
(12 13 14 15)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 227;
}
bottom
{
type wall;
nFaces 20;
startFace 247;
}
leftIn
{
type patch;
nFaces 10;
startFace 267;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 277;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 3;
startFace 287;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 3;
startFace 290;
}
frontAndBack
{
type empty;
nFaces 260;
startFace 293;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 227;
}
bottom
{
type wall;
nFaces 20;
startFace 247;
}
leftIn
{
type patch;
nFaces 10;
startFace 267;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 277;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 3;
startFace 287;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 3;
startFace 290;
}
frontAndBack
{
type empty;
nFaces 260;
startFace 293;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//DT DT [0 2 -1 0 0 0 0] 4e-05;
DT DT [0 2 -1 0 0 0 0] 4e-01;
// ************************************************************************* //

View file

@ -0,0 +1,51 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.3 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application laplacianFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 2;
deltaT 1;
writeControl runTime;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 8;
writeCompression uncompressed;
timeFormat general;
timePrecision 8;
graphFormat raw;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
grad(T) Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(DT,T) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
T;
}
// ************************************************************************* //

View file

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
T
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 10;
minIter 1;
maxiter 1000;
tolerance 1e-06;
relTol 0;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
top
{
type fixedValue;
value uniform (0 0 0);
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
leftIn
{
type fixedValue;
value uniform (1 0 0);
}
rightOut
{
type zeroGradient;
value uniform (0 0 0);
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
top
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,60 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
leftIn
{
type zeroGradient;
}
rightOut
{
type fixedValue;
value uniform 0;
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanCase
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,28 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running icoFoam"
runApplicationAndReportOnError icoFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,200 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
laminarCoeffs
{
}
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
RNGkEpsilonCoeffs
{
Cmu 0.0845;
C1 1.42;
C2 1.68;
alphak 1.39;
alphaEps 1.39;
eta0 4.38;
beta 0.012;
}
realizableKECoeffs
{
Cmu 0.09;
A0 4.0;
C2 1.9;
alphak 1;
alphaEps 0.833333;
}
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.0750;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
c1 10;
Cmu 0.09;
}
NonlinearKEShihCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76932;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
LienCubicKECoeffs
{
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
QZetaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaZeta 0.76923;
anisotropic no;
}
LaunderSharmaKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LamBremhorstKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LienCubicKELowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LienLeschzinerLowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LRRCoeffs
{
Cmu 0.09;
Clrr1 1.8;
Clrr2 0.6;
C1 1.44;
C2 1.92;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
}
LaunderGibsonRSTMCoeffs
{
Cmu 0.09;
Clg1 1.8;
Clg2 0.6;
C1 1.44;
C2 1.92;
C1Ref 0.5;
C2Ref 0.3;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
alphaR 1.22;
}
SpalartAllmarasCoeffs
{
alphaNut 1.5;
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2;
Cv1 7.1;
Cv2 5.0;
}
wallFunctionCoeffs
{
kappa 0.4187;
E 9;
}
// ************************************************************************* //

View file

@ -0,0 +1,91 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
(1 0 0)
(2 0 0)
(2 1 0)
(1 1 0)
(1 0 0.1)
(2 0 0.1)
(2 1 0.1)
(1 1 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 3 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
wall top
(
(3 7 6 2)
(11 15 14 10)
)
wall bottom
(
(1 5 4 0)
(9 13 12 8)
)
patch leftIn
(
(0 4 7 3)
)
patch mixpLeftOut
(
(2 6 5 1)
)
patch mixpRightIn
(
(8 12 15 11)
)
patch rightOut
(
(10 14 13 9)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
(8 11 10 9)
(12 13 14 15)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 227;
}
bottom
{
type wall;
nFaces 20;
startFace 247;
}
leftIn
{
type patch;
nFaces 10;
startFace 267;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 277;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 3;
startFace 287;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 3;
startFace 290;
}
frontAndBack
{
type empty;
nFaces 260;
startFace 293;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 227;
}
bottom
{
type wall;
nFaces 20;
startFace 247;
}
leftIn
{
type patch;
nFaces 10;
startFace 267;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 277;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 3;
startFace 287;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 3;
startFace 290;
}
frontAndBack
{
type empty;
nFaces 260;
startFace 293;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
nu nu [0 2 -1 0 0 0 0] 0.01;
// ************************************************************************* //

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 5.5;
deltaT 0.005;
writeControl timeStep;
writeInterval 20;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************************************* //

View file

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
};
}
PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
top
{
type fixedValue;
value uniform (0 0 0);
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
leftIn
{
type fixedValue;
value uniform (1 0 0);
}
rightOut
{
type zeroGradient;
value uniform (0 0 0);
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
top
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,60 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
leftIn
{
type zeroGradient;
}
rightOut
{
type fixedValue;
value uniform 0;
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanCase
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,28 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running icoFoam"
runApplicationAndReportOnError icoFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,200 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
laminarCoeffs
{
}
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
RNGkEpsilonCoeffs
{
Cmu 0.0845;
C1 1.42;
C2 1.68;
alphak 1.39;
alphaEps 1.39;
eta0 4.38;
beta 0.012;
}
realizableKECoeffs
{
Cmu 0.09;
A0 4.0;
C2 1.9;
alphak 1;
alphaEps 0.833333;
}
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.0750;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
c1 10;
Cmu 0.09;
}
NonlinearKEShihCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76932;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
LienCubicKECoeffs
{
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
QZetaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaZeta 0.76923;
anisotropic no;
}
LaunderSharmaKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LamBremhorstKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LienCubicKELowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LienLeschzinerLowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LRRCoeffs
{
Cmu 0.09;
Clrr1 1.8;
Clrr2 0.6;
C1 1.44;
C2 1.92;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
}
LaunderGibsonRSTMCoeffs
{
Cmu 0.09;
Clg1 1.8;
Clg2 0.6;
C1 1.44;
C2 1.92;
C1Ref 0.5;
C2Ref 0.3;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
alphaR 1.22;
}
SpalartAllmarasCoeffs
{
alphaNut 1.5;
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2;
Cv1 7.1;
Cv2 5.0;
}
wallFunctionCoeffs
{
kappa 0.4187;
E 9;
}
// ************************************************************************* //

View file

@ -0,0 +1,91 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
(1 0 0)
(2 0 0)
(2 1 0)
(1 1 0)
(1 0 0.1)
(2 0 0.1)
(2 1 0.1)
(1 1 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 10 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
wall top
(
(3 7 6 2)
(11 15 14 10)
)
wall bottom
(
(1 5 4 0)
(9 13 12 8)
)
patch leftIn
(
(0 4 7 3)
)
patch mixpLeftOut
(
(2 6 5 1)
)
patch mixpRightIn
(
(8 12 15 11)
)
patch rightOut
(
(10 14 13 9)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
(8 11 10 9)
(12 13 14 15)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirY_spanZ;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
nu nu [0 2 -1 0 0 0 0] 0.01;
// ************************************************************************* //

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 5.5;
deltaT 0.005;
writeControl timeStep;
writeInterval 20;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************************************* //

View file

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
};
}
PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
top
{
type fixedValue;
value uniform (0 0 0);
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
leftIn
{
type fixedValue;
value uniform (1 0 0);
}
rightOut
{
type zeroGradient;
value uniform (0 0 0);
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
top
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,60 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
leftIn
{
type zeroGradient;
}
rightOut
{
type fixedValue;
value uniform 0;
}
mixpLeftOut
{
type mixingPlane;
}
mixpRightIn
{
type mixingPlane;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanCase
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,28 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
export caseName=`basename $PWD`
#We stop this script when we encounter a problem
trap "exit -1" ERR
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Updating the boundary file"
cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running icoFoam"
runApplicationAndReportOnError icoFoam

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run"
else
echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,200 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
laminarCoeffs
{
}
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
RNGkEpsilonCoeffs
{
Cmu 0.0845;
C1 1.42;
C2 1.68;
alphak 1.39;
alphaEps 1.39;
eta0 4.38;
beta 0.012;
}
realizableKECoeffs
{
Cmu 0.09;
A0 4.0;
C2 1.9;
alphak 1;
alphaEps 0.833333;
}
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.0750;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
c1 10;
Cmu 0.09;
}
NonlinearKEShihCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76932;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
LienCubicKECoeffs
{
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
QZetaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaZeta 0.76923;
anisotropic no;
}
LaunderSharmaKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LamBremhorstKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LienCubicKELowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LienLeschzinerLowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LRRCoeffs
{
Cmu 0.09;
Clrr1 1.8;
Clrr2 0.6;
C1 1.44;
C2 1.92;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
}
LaunderGibsonRSTMCoeffs
{
Cmu 0.09;
Clg1 1.8;
Clg2 0.6;
C1 1.44;
C2 1.92;
C1Ref 0.5;
C2Ref 0.3;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
alphaR 1.22;
}
SpalartAllmarasCoeffs
{
alphaNut 1.5;
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2;
Cv1 7.1;
Cv2 5.0;
}
wallFunctionCoeffs
{
kappa 0.4187;
E 9;
}
// ************************************************************************* //

View file

@ -0,0 +1,91 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
(1 0 0)
(2 0 0)
(2 1 0)
(1 1 0)
(1 0 0.1)
(2 0 0.1)
(2 1 0.1)
(1 1 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (10 10 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
wall top
(
(3 7 6 2)
(11 15 14 10)
)
wall bottom
(
(1 5 4 0)
(9 13 12 8)
)
patch leftIn
(
(0 4 7 3)
)
patch mixpLeftOut
(
(2 6 5 1)
)
patch mixpRightIn
(
(8 12 15 11)
)
patch rightOut
(
(10 14 13 9)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
(8 11 10 9)
(12 13 14 15)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirZ_spanY;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirZ_spanY;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7
(
top
{
type wall;
nFaces 20;
startFace 360;
}
bottom
{
type wall;
nFaces 20;
startFace 380;
}
leftIn
{
type patch;
nFaces 10;
startFace 400;
}
mixpLeftOut
{
type mixingPlane;
nFaces 10;
startFace 410;
shadowPatch mixpRightIn;
orientation dirZ_spanY;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
mixpRightIn
{
type mixingPlane;
nFaces 10;
startFace 420;
shadowPatch mixpLeftOut;
orientation dirZ_spanY;
assembly both;
coordinateSystem
{
type coordinateSystem;
origin (0 0 0.005);
axis (0 0 1);
direction (1 0 0);
}
}
rightOut
{
type patch;
nFaces 10;
startFace 430;
}
frontAndBack
{
type empty;
nFaces 400;
startFace 440;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
nu nu [0 2 -1 0 0 0 0] 0.01;
// ************************************************************************* //

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 5.5;
deltaT 0.005;
writeControl timeStep;
writeInterval 20;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p;
}
// ************************************************************************* //

View file

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
};
}
PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,18 @@
#!/bin/bash
# Clean addSwirlAndRotation
wclean addSwirlAndRotation
# Generate the reference test case
# The GGI and mixingPlane test cases postprocessing results
# will be compared with the results from this test case
(cd Case1.1; ./Allclean)
# Generate GGI test cases
(cd Case1.1_GGI; ./Allclean)
(cd Case1.1_GGI_sector_90deg; ./Allclean)
# Generate mixingPlane test cases
(cd Case1.1_mixingPlane; ./Allclean)
(cd Case1.1_mixingPlane_sector_AB_60deg; ./Allclean)
(cd Case1.1_mixingPlane_Upstream13_Downstream8; ./Allclean)

View file

@ -0,0 +1,18 @@
#!/bin/bash
# Compile addSwirlAndRotation
wmake addSwirlAndRotation
# Generate the reference test case
# The GGI and mixingPlane test cases postprocessing results
# will be compared with the results from this test case
(cd Case1.1; ./Allrun)
# Generate GGI test cases
(cd Case1.1_GGI; ./Allrun)
(cd Case1.1_GGI_sector_90deg; ./Allrun)
# Generate mixingPlane test cases
(cd Case1.1_mixingPlane; ./Allrun)
(cd Case1.1_mixingPlane_sector_AB_60deg; ./Allrun)
(cd Case1.1_mixingPlane_Upstream13_Downstream8; ./Allrun)

View file

@ -0,0 +1,56 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volTensorField;
object R;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform (0 0 0 0 0 0 0 0 0);
boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 0 0 0 0 0 0 0);
}
outlet
{
type zeroGradient;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWall
{
type zeroGradient;
}
rotSwirlWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,61 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 11.6);
boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 11.6);
}
outlet
{
type zeroGradient;
}
wallProlongation
{
type fixedValue;
value uniform (0 0 0);
}
wallDiffuser
{
type fixedValue;
value uniform (0 0 0);
}
statSwirlWall
{
type fixedValue;
value uniform (0 0 0);
}
rotSwirlWall
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,56 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 896.10908;
boundaryField
{
inlet
{
type fixedValue;
value uniform 896.10908;
}
outlet
{
type zeroGradient;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWall
{
type zeroGradient;
}
rotSwirlWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,56 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 2.0184;
boundaryField
{
inlet
{
type fixedValue;
value uniform 2.0184;
}
outlet
{
type zeroGradient;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWall
{
type zeroGradient;
}
rotSwirlWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,56 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0;
}
outlet
{
type zeroGradient;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWall
{
type zeroGradient;
}
rotSwirlWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,64 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
// outlet BC: zeroGradient
// type zeroGradient;
// outlet BC: fixedMeanValue, available in 1.4.1-dev
// type fixedMeanValue;
// meanValue 0;
// outlet BC: fixedValue
type fixedValue;
value uniform 0;
}
wallProlongation
{
type zeroGradient;
}
wallDiffuser
{
type zeroGradient;
}
statSwirlWall
{
type zeroGradient;
}
rotSwirlWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,50 @@
#!/bin/bash
#
# Source clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
#set -x
cleanSampling ()
{
rm -rf sets > /dev/null 2>&1
}
cleanPostProcessing ()
{
rm -rf postProcessing/*.png > /dev/null 2>&1
rm -rf postProcessing/log.sample > /dev/null 2>&1
rm -rf postProcessing/log.foamLog > /dev/null 2>&1
rm -rf postProcessing/log.gnuplotPlotResiduals > /dev/null 2>&1
rm -rf postProcessing/log.gnuplotCompareAll > /dev/null 2>&1
rm -rf postProcessing/logs > /dev/null 2>&1
}
cleanFilesFromM4 ()
{
rm {constant/polyMesh/boundary,constant/polyMesh/blockMeshDict} > /dev/null 2>&1
}
cleanTimeZero ()
{
rm -rf 0 > /dev/null 2>&1
}
cleanPyFoam ()
{
rm PlyParser_FoamFileParser_parsetab.* > /dev/null 2>&1
}
cleanVTK ()
{
rm -rf VTK > /dev/null 2>&1
}
# Cleaning up the case
cleanSampling
cleanPostProcessing
cleanCase
cleanFilesFromM4
cleanTimeZero
cleanPyFoam
cleanVTK

View file

@ -0,0 +1,53 @@
#!/bin/bash
#
#set -x
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Load additional RunFunctions
. ./RunFunctionsSupplemental
#We stop this script when we encounter a problem
trap "exit -1" ERR
export caseName=`basename $PWD`
echo "$caseName: Creating the file blockMeshDict using m4"
(cd constant/polyMesh; m4 -P blockMeshDict.m4 > blockMeshDict)
echo "$caseName: Running blockMesh"
runApplicationAndReportOnError blockMesh
echo "$caseName: Creating the starting time directory"
cp -r 0_orig 0
echo "$caseName: Running addSwirlAndRotation"
runApplicationAndReportOnError addSwirlAndRotation
echo "$caseName: Running simpleFoam"
runApplicationAndReportOnError simpleFoam
echo "$caseName: Postprocessing"
cd postProcessing
# Find latest time directory
latestAvailTimeDir=`foamInfoExec -case .. -times | tail -1`
echo "Analysing results for time: $latestAvailTimeDir"
# Run sample
runApplicationAndReportOnError sample -case .. -latestTime
# Adjust compareAll.gplt: replace "Case1.1" "??" by "Case1.1" "$latestAvailTimeDir"
sed -i.old "s/\"Case1.1\".*$/\"Case1.1\" \"$latestAvailTimeDir\"/g" compareAll.gplt
# Run gnuplot to generate the comparison charts
runApplicationAndReportOnError gnuplot compareAll.gplt ; mv log.gnuplot log.gnuplotCompareAll
# Run foamLog
runApplicationAndReportOnError foamLog ../log.simpleFoam
# Run gnuplot for the residuals
runApplicationAndReportOnError gnuplot plotResiduals.gplt; mv log.gnuplot log.gnuplotPlotResiduals

View file

@ -0,0 +1,66 @@
#---------------------------------*- sh -*-------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright held by original author
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# RunFunctionsSupplemental
#
# Description
# Additionnal run functions, based on the original RunFunctions
#
# Author:
# Martin Beaudoin, Hydro-Quebec. All rights reserved
#
#------------------------------------------------------------------------------
# Exception handler: dump the tail of the log file on error
verbose_report_on_runApplication_error()
{
if [ "$reportOnErrorOnlyOnce" ] ; then
echo "Error running $APP_RUN..."
if [ -f log.$APP_RUN ] ; then
tail log.$APP_RUN
fi
fi
# Do not report again when exiting
unset reportOnErrorOnlyOnce
}
# Variation of runApplication with exception handling
runApplicationAndReportOnError ()
{
trap 'verbose_report_on_runApplication_error' ERR
APP_RUN=$1; shift
reportOnErrorOnlyOnce=1
caseName=`basename $PWD`
if [ -f log.$APP_RUN ] ; then
echo "$APP_RUN already run on case $caseName: remove log file to run"
else
echo "Running $APP_RUN on case $caseName"
$APP_RUN $* > log.$APP_RUN 2>&1
fi
}

View file

@ -0,0 +1,200 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5.x |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
laminarCoeffs
{
}
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
RNGkEpsilonCoeffs
{
Cmu 0.0845;
C1 1.42;
C2 1.68;
alphak 1.39;
alphaEps 1.39;
eta0 4.38;
beta 0.012;
}
realizableKECoeffs
{
Cmu 0.09;
A0 4.0;
C2 1.9;
alphak 1;
alphaEps 0.833333;
}
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.0750;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
c1 10;
Cmu 0.09;
}
NonlinearKEShihCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76932;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
LienCubicKECoeffs
{
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
}
QZetaCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaZeta 0.76923;
anisotropic no;
}
LaunderSharmaKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LamBremhorstKECoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}
LienCubicKELowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
A1 1.25;
A2 1000;
Ctau1 -4;
Ctau2 13;
Ctau3 -2;
alphaKsi 0.9;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LienLeschzinerLowReCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphak 1;
alphaEps 0.76923;
Am 0.016;
Aepsilon 0.263;
Amu 0.00222;
}
LRRCoeffs
{
Cmu 0.09;
Clrr1 1.8;
Clrr2 0.6;
C1 1.44;
C2 1.92;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
}
LaunderGibsonRSTMCoeffs
{
Cmu 0.09;
Clg1 1.8;
Clg2 0.6;
C1 1.44;
C2 1.92;
C1Ref 0.5;
C2Ref 0.3;
Cs 0.25;
Ceps 0.15;
alphaEps 0.76923;
alphaR 1.22;
}
SpalartAllmarasCoeffs
{
alphaNut 1.5;
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2;
Cv1 7.1;
Cv2 5.0;
}
wallFunctionCoeffs
{
kappa 0.4187;
E 9;
}
// ************************************************************************* //

Some files were not shown because too many files have changed in this diff Show more