Overset Mesh validation suite case: NACA 4412

This commit is contained in:
Vuko Vukcevic 2018-02-28 13:37:33 +01:00
parent 4c1b53f313
commit 47ae9593f9
133 changed files with 372297 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/bash
(cd explicitOverset ; ./Allclean)
(cd implicitConservativeOverset ; ./Allclean)
(cd implicitNonConservativeOverset ; ./Allclean)
(cd noOverset; ./Allclean)
\rm -rf validationResults

View file

@ -0,0 +1,32 @@
#!/bin/bash
# Run cases
(cd explicitOverset ; ./Allrun)
(cd implicitConservativeOverset ; ./Allrun)
(cd implicitNonConservativeOverset ; ./Allrun)
(cd noOverset; ./Allrun)
# Plot pressure distribution
gnuplot -persist << 'EOF'
set term pngcairo dashed size 1024,768 font "Arial,12"
set output "Cp.png"
set yrange [* : *] reverse;
plot \
'./validationData/cp.dat' \
using ($1/0.901):2 title 'Experimetal results', \
'./explicitOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Explicit overset', \
'./implicitNonConservativeOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Implicit non-conservative overset', \
'./implicitConservativeOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Implicit conservative overset', \
'./noOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Single mesh' ;
EOF
# Move the file
mkdir -v validationResults
mv -v *.png validationResults/
gnome-open validationResults/Cp.png

View file

@ -0,0 +1,10 @@
Reference experimental data:
https://turbmodels.larc.nasa.gov/naca4412sep_val.html
Overset:
- Low Reynolds mesh with y+ << 1
Single mesh:
- High Reynolds with y+ approximately 16
Work in progress: comparing velocity profiles at certain chord lengths.

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe no;
conservativeCorrection no;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,17 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -f .setSet
\rm -rf 0/cellDist 0/cellDist.gz constant/cellDecomposition
\rm -rf *.vtk VTK
\rm -rf constant/polyMesh/
\rm -rf 0 holeTri*
\rm -rf surfaces
\rm -f *raw
\rm -rf logs nohup.out
mkdir constant/polyMesh
cp -r save 0

View file

@ -0,0 +1,49 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application1="potentialOversetFoam"
application2="simpleOversetFoam"
# Copy background grid
\cp -r ../oversetMeshes/backgroundMesh/constant/polyMesh constant/.
# Merge meshes and clean up
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/middleMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddle
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/frontMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddleFront
# Make cell zones for all regions and clean up
runApplication regionCellSets
runApplication setSet -batch setBatch.batch
\rm -f log.setSet
\rm -f constant/polyMesh/sets/*_old constant/polyMesh/sets/*_old.gz
\rm -f constant/polyMesh/sets/cellRegion0 constant/polyMesh/sets/cellRegion0.gz constant/polyMesh/sets/cellRegion1 constant/polyMesh/sets/cellRegion1.gz
runApplication setsToZones
# Scale x and y directions to have the same setup as the case from
# foam-extend-4.0 validationSuite
transformPoints -scale "(0.901 1 0.905512)" > log.transformPoints
# Set up boundary patches
\cp -f boundary constant/polyMesh/boundary
# Run serial
runApplication $application1
runApplication $application2
# Perform sampling
runApplication sample -latestTime
timeStep=$(grep "^endTime" system/controlDict | awk '{ print $2 }' | sed 's/;//g')
cp -v surfaces/$timeStep/p_solidWall.raw .

View file

@ -0,0 +1,77 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "1/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9
(
OversetFaces
{
type overset;
nFaces 0;
startFace 51368;
}
Inflow
{
type patch;
nFaces 112;
startFace 51368;
}
Lower
{
type patch;
nFaces 48;
startFace 51480;
}
frontAndBack
{
type empty;
nFaces 51968;
startFace 51528;
}
Outflow
{
type patch;
nFaces 112;
startFace 103496;
}
Upper
{
type patch;
nFaces 48;
startFace 103608;
}
OversetMiddle
{
type patch;
nFaces 368;
startFace 103656;
}
OversetFront
{
type patch;
nFaces 336;
startFace 104024;
}
airfoil
{
type wall;
nFaces 176;
startFace 104360;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:27 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View file

@ -0,0 +1,123 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object oversetMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolation
{
interpolationSchemes (inverseDistance);
default inverseDistance;
}
// Names or patches that determine hole cells
holePatches ( airfoil );
regions
(
backgroundMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames ();
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
middleMesh
{
// Donor regions
donorRegions ( frontMesh backgroundMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetMiddle);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.9;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
frontMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetFront);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 40% of the larger cell
type cellVolumes;
threshold 0.4;
}
}
}
);
// ************************************************************************* //

View file

@ -0,0 +1,26 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:42 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.605e-05;
// ************************************************************************* //

View file

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
// ************************************************************************* //

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe no;
conservativeCorrection no;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,8 @@
cellSet backgroundMesh new cellToCell cellRegion0
cellSet middleMesh new cellToCell cellRegion1
cellSet frontMesh new cellToCell cellRegion2
cellSet cellRegion0 delete
cellSet cellRegion1 delete
cellSet cellRegion2 delete
quit

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleOversetFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl runTime;
writeInterval 1000;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 50;
method metis;
simpleCoeffs
{
n (1 3 1);
delta 0.001;
}
distributed no;
roots
(
);
// ************************************************************************* //

View file

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwindV default;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear limited 0.5;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default limited 0.5;
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver BiCGStab;
preconditioner Cholesky;
minIter 1;
maxIter 200;
tolerance 1e-7;
relTol 0.001;
}
U
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-08;
relTol 0.01;
minIter 1;
maxIter 10;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
omega
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
}
SIMPLE
{
// Non orthogonal corrector for explicit overset correction
nNonOrthogonalCorrectors 1;
}
relaxationFactors
{
equations
{
U 0.7;
k 0.5;
epsilon 0.5;
}
fields
{
p 0.3;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
surfaceFormat raw;
setFormat gnuplot;
sets ();
fields (p);
surfaces
(
solidWall
{
type patch;
patchName airfoil;
rhoName rhoInf;
rhoInf 1.0; //Reference density for fluid
outputInterval: 1.0
interpolate true;
triangulate false;
}
);
// *********************************************************************** //

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
conservativeCorrection yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,17 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -f .setSet
\rm -rf 0/cellDist 0/cellDist.gz constant/cellDecomposition
\rm -rf *.vtk VTK
\rm -rf constant/polyMesh/
\rm -rf 0 holeTri*
\rm -rf surfaces
\rm -f *raw
\rm -rf logs nohup.out
mkdir constant/polyMesh
cp -r save 0

View file

@ -0,0 +1,49 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application1="potentialOversetFoam"
application2="simpleOversetFoam"
# Copy background grid
\cp -r ../oversetMeshes/backgroundMesh/constant/polyMesh constant/.
# Merge meshes and clean up
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/middleMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddle
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/frontMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddleFront
# Make cell zones for all regions and clean up
runApplication regionCellSets
runApplication setSet -batch setBatch.batch
\rm -f log.setSet
\rm -f constant/polyMesh/sets/*_old constant/polyMesh/sets/*_old.gz
\rm -f constant/polyMesh/sets/cellRegion0 constant/polyMesh/sets/cellRegion0.gz constant/polyMesh/sets/cellRegion1 constant/polyMesh/sets/cellRegion1.gz
runApplication setsToZones
# Scale x and y directions to have the same setup as the case from
# foam-extend-4.0 validationSuite
transformPoints -scale "(0.901 1 0.905512)" > log.transformPoints
# Set up boundary patches
\cp -f boundary constant/polyMesh/boundary
# Run serial
runApplication $application1
runApplication $application2
# Perform sampling
runApplication sample -latestTime
timeStep=$(grep "^endTime" system/controlDict | awk '{ print $2 }' | sed 's/;//g')
cp -v surfaces/$timeStep/p_solidWall.raw .

View file

@ -0,0 +1,77 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "1/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9
(
OversetFaces
{
type overset;
nFaces 0;
startFace 51368;
}
Inflow
{
type patch;
nFaces 112;
startFace 51368;
}
Lower
{
type patch;
nFaces 48;
startFace 51480;
}
frontAndBack
{
type empty;
nFaces 51968;
startFace 51528;
}
Outflow
{
type patch;
nFaces 112;
startFace 103496;
}
Upper
{
type patch;
nFaces 48;
startFace 103608;
}
OversetMiddle
{
type patch;
nFaces 368;
startFace 103656;
}
OversetFront
{
type patch;
nFaces 336;
startFace 104024;
}
airfoil
{
type wall;
nFaces 176;
startFace 104360;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:27 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View file

@ -0,0 +1,123 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object oversetMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolation
{
interpolationSchemes (inverseDistance);
default inverseDistance;
}
// Names or patches that determine hole cells
holePatches ( airfoil );
regions
(
backgroundMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames ();
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
middleMesh
{
// Donor regions
donorRegions ( frontMesh backgroundMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetMiddle);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.9;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
frontMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetFront);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 40% of the larger cell
type cellVolumes;
threshold 0.4;
}
}
}
);
// ************************************************************************* //

View file

@ -0,0 +1,26 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:42 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.605e-05;
// ************************************************************************* //

View file

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
// ************************************************************************* //

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
conservativeCorrection yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,8 @@
cellSet backgroundMesh new cellToCell cellRegion0
cellSet middleMesh new cellToCell cellRegion1
cellSet frontMesh new cellToCell cellRegion2
cellSet cellRegion0 delete
cellSet cellRegion1 delete
cellSet cellRegion2 delete
quit

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleOversetFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl runTime;
writeInterval 1000;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 50;
method metis;
simpleCoeffs
{
n (1 3 1);
delta 0.001;
}
distributed no;
roots
(
);
// ************************************************************************* //

View file

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwindV default;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear limited 0.5;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default limited 0.5;
}
// ************************************************************************* //

View file

@ -0,0 +1,83 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver BiCGStab;
preconditioner Cholesky;
minIter 1;
maxIter 1000;
tolerance 1e-7;
relTol 0.0; // Tighter tolerance for conservative overset
}
U
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-08;
relTol 0.01;
minIter 1;
maxIter 10;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
omega
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
U 0.7;
k 0.5;
epsilon 0.5;
}
fields
{
p 0.3;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
surfaceFormat raw;
setFormat gnuplot;
sets ();
fields (p);
surfaces
(
solidWall
{
type patch;
patchName airfoil;
rhoName rhoInf;
rhoInf 1.0; //Reference density for fluid
outputInterval: 1.0
interpolate true;
triangulate false;
}
);
// *********************************************************************** //

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
conservativeCorrection no;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,17 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -f .setSet
\rm -rf 0/cellDist 0/cellDist.gz constant/cellDecomposition
\rm -rf *.vtk VTK
\rm -rf constant/polyMesh/
\rm -rf 0 holeTri*
\rm -rf surfaces
\rm -f *raw
\rm -rf logs nohup.out
mkdir constant/polyMesh
cp -r save 0

View file

@ -0,0 +1,49 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application1="potentialOversetFoam"
application2="simpleOversetFoam"
# Copy background grid
\cp -r ../oversetMeshes/backgroundMesh/constant/polyMesh constant/.
# Merge meshes and clean up
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/middleMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddle
runApplication mergeMeshes .. explicitOverset . ../oversetMeshes/frontMesh
\rm -rf constant/polyMesh
\mv 1/polyMesh constant
rm -rf 1
\rm -f constant/polyMesh/pointZones constant/polyMesh/pointZones.gz constant/polyMesh/faceZones constant/polyMesh/faceZones.gz constant/polyMesh/cellZones constant/polyMesh/cellZones.gz
\mv log.mergeMeshes log.mergeMeshes-backgroundMiddleFront
# Make cell zones for all regions and clean up
runApplication regionCellSets
runApplication setSet -batch setBatch.batch
\rm -f log.setSet
\rm -f constant/polyMesh/sets/*_old constant/polyMesh/sets/*_old.gz
\rm -f constant/polyMesh/sets/cellRegion0 constant/polyMesh/sets/cellRegion0.gz constant/polyMesh/sets/cellRegion1 constant/polyMesh/sets/cellRegion1.gz
runApplication setsToZones
# Scale x and y directions to have the same setup as the case from
# foam-extend-4.0 validationSuite
transformPoints -scale "(0.901 1 0.905512)" > log.transformPoints
# Set up boundary patches
\cp -f boundary constant/polyMesh/boundary
# Run serial
runApplication $application1
runApplication $application2
# Perform sampling
runApplication sample -latestTime
timeStep=$(grep "^endTime" system/controlDict | awk '{ print $2 }' | sed 's/;//g')
cp -v surfaces/$timeStep/p_solidWall.raw .

View file

@ -0,0 +1,77 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "1/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9
(
OversetFaces
{
type overset;
nFaces 0;
startFace 51368;
}
Inflow
{
type patch;
nFaces 112;
startFace 51368;
}
Lower
{
type patch;
nFaces 48;
startFace 51480;
}
frontAndBack
{
type empty;
nFaces 51968;
startFace 51528;
}
Outflow
{
type patch;
nFaces 112;
startFace 103496;
}
Upper
{
type patch;
nFaces 48;
startFace 103608;
}
OversetMiddle
{
type patch;
nFaces 368;
startFace 103656;
}
OversetFront
{
type patch;
nFaces 336;
startFace 104024;
}
airfoil
{
type wall;
nFaces 176;
startFace 104360;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:27 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View file

@ -0,0 +1,123 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object oversetMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolation
{
interpolationSchemes (inverseDistance);
default inverseDistance;
}
// Names or patches that determine hole cells
holePatches ( airfoil );
regions
(
backgroundMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames ();
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
middleMesh
{
// Donor regions
donorRegions ( frontMesh backgroundMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetMiddle);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.9;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 60% of the larger cell
type cellVolumes;
threshold 0.6;
}
}
}
frontMesh
{
// Donor regions
donorRegions ( middleMesh );
fringe
{
type overlap;
// Optional list of patches to start the fringe minimisation from
initPatchNames (OversetFront);
// Fraction of minimum allowable suitable pairs respecting the
// chosen donor suitability criteria
suitablePairFraction 0.8;
// Whether to start fringe assembly from the previous set of
// acceptors (for moving mesh cases)
cacheFringe no;
donorSuitability
{
// Donor/acceptor pair must have cell volumes that differ not
// more than 40% of the larger cell
type cellVolumes;
threshold 0.4;
}
}
}
);
// ************************************************************************* //

View file

@ -0,0 +1,26 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:42 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.605e-05;
// ************************************************************************* //

View file

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
// ************************************************************************* //

View file

@ -0,0 +1,82 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 0 6.5036);
boundaryField
{
OversetFaces
{
type overset;
value uniform (0 0 0);
coupledFringe yes;
setHoleCellValue yes;
holeCellValue (0 0 0);
}
Inflow
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Lower
{
type fixedValue;
value uniform (26.3389 0 6.5036);
}
Upper
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
airfoil
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
OversetMiddle
{
type emptyOverset;
value uniform (0 0 0);
}
OversetFront
{
type emptyOverset;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.0005723;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.0005723;
}
Inflow
{
type fixedValue;
value uniform 0.0005723;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
Lower
{
type fixedValue;
value uniform 0.0005723;
}
Upper
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
frontAndBack
{
type empty;
}
airfoil
{
type kqRWallFunction;
value uniform 0.0005723;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.0005723;
}
OversetFront
{
type emptyOverset;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,85 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type calculated;
value uniform 0;
}
Outflow
{
type calculated;
value uniform 0;
}
Lower
{
type calculated;
value uniform 0;
}
Upper
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
}
airfoil
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,90 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0.42797;
coupledFringe yes;
setHoleCellValue yes;
holeCellValue 0.42797;
}
Inflow
{
type fixedValue;
value uniform 0.42797;
}
Outflow
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
Lower
{
type fixedValue;
value uniform 0.42797;
}
Upper
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
frontAndBack
{
type empty;
}
airfoil
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
OversetMiddle
{
type emptyOverset;
value uniform 0.42797;
}
OversetFront
{
type emptyOverset;
value uniform 0.42797;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,79 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
OversetFaces
{
type overset;
value uniform 0;
coupledFringe yes;
conservativeCorrection no;
setHoleCellValue yes;
holeCellValue 0;
}
Inflow
{
type zeroGradient;
}
Outflow
{
type fixedValue;
value uniform 0;
}
Lower
{
type zeroGradient;
}
Upper
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
airfoil
{
type zeroGradient;
}
OversetMiddle
{
type emptyOverset;
value uniform 0;
}
OversetFront
{
type emptyOverset;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,8 @@
cellSet backgroundMesh new cellToCell cellRegion0
cellSet middleMesh new cellToCell cellRegion1
cellSet frontMesh new cellToCell cellRegion2
cellSet cellRegion0 delete
cellSet cellRegion1 delete
cellSet cellRegion2 delete
quit

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleOversetFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl runTime;
writeInterval 1000;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,33 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 50;
method metis;
simpleCoeffs
{
n (1 3 1);
delta 0.001;
}
distributed no;
roots
(
);
// ************************************************************************* //

View file

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwindV default;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear limited 0.5;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default limited 0.5;
}
// ************************************************************************* //

View file

@ -0,0 +1,83 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver BiCGStab;
preconditioner Cholesky;
minIter 1;
maxIter 200;
tolerance 1e-7;
relTol 0.01;
}
U
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-08;
relTol 0.01;
minIter 1;
maxIter 10;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
omega
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
U 0.7;
k 0.5;
epsilon 0.5;
}
fields
{
p 0.3;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
surfaceFormat raw;
setFormat gnuplot;
sets ();
fields (p);
surfaces
(
solidWall
{
type patch;
patchName airfoil;
rhoName rhoInf;
rhoInf 1.0; //Reference density for fluid
outputInterval: 1.0
interpolate true;
triangulate false;
}
);
// *********************************************************************** //

View file

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 6.5036 0);
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform (26.3389 6.5036 0);
value uniform (26.3389 6.5036 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (26.3389 6.5036 0);
}
solidWall
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
outlet
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
solidWall
{
type kqRWallFunction;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,49 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
solidWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
outlet
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
solidWall
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}
outlet
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}
solidWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,13 @@
#!/bin/bash
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanTimeDirectories
\rm -rf 0
\rm -rf surfaces
\rm -rf forces
\rm -f *raw
\rm -rf logs nohup.out
cp -r save 0

View file

@ -0,0 +1,12 @@
#!/bin/bash
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=simpleFoam
runApplication potentialFoam
runApplication $application
# Perform sampling
runApplication sample -latestTime
timeStep=$(grep "^endTime" system/controlDict | awk '{ print $2 }' | sed 's/;//g')
cp -v surfaces/$timeStep/p_solidWall.raw .

View file

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:27 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View file

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
4
(
frontAndBack
{
type empty;
nFaces 55404;
startFace 54975;
}
inlet
{
type patch;
nFaces 486;
startFace 110379;
}
outlet
{
type patch;
nFaces 114;
startFace 110865;
}
solidWall
{
type wall;
nFaces 258;
startFace 110979;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,26 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Mon Aug 17 06:22:42 2015 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.3;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.605e-05;
// ************************************************************************* //

View file

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
// ************************************************************************* //

View file

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (26.3389 6.5036 0);
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform (26.3389 6.5036 0);
value uniform (26.3389 6.5036 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (26.3389 6.5036 0);
}
solidWall
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.0005723;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
outlet
{
type inletOutlet;
inletValue uniform 0.0005723;
value uniform 0.0005723;
}
solidWall
{
type kqRWallFunction;
value uniform 0.0005723;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,49 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
solidWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.42797;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
outlet
{
type inletOutlet;
inletValue uniform 0.42797;
value uniform 0.42797;
}
solidWall
{
type omegaWallFunction;
refValue uniform 0;
value uniform 0.42797;
Cmu 0.09;
kappa 0.41;
E 9.8;
beta1 0.075;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
frontAndBack
{
type empty;
}
inlet
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}
outlet
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}
solidWall
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl runTime;
writeInterval 1000;
purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View file

@ -0,0 +1,54 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwindV default;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear limited 0.5;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default limited 0.5;
}
// ************************************************************************* //

View file

@ -0,0 +1,83 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver CG;
preconditioner Cholesky;
minIter 1;
maxIter 200;
tolerance 1e-7;
relTol 0.001;
}
U
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-08;
relTol 0.01;
minIter 1;
maxIter 10;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
omega
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-08;
relTol 0.1;
minIter 1;
maxIter 10;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
U 0.7;
k 0.5;
epsilon 0.5;
}
fields
{
p 0.3;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,42 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
surfaceFormat raw;
setFormat gnuplot;
sets ();
fields (p);
surfaces
(
solidWall
{
type patch;
patchName solidWall;
rhoName rhoInf;
rhoInf 1.0; //Reference density for fluid
outputInterval 1.0;
interpolate true;
triangulate false;
}
);
// *********************************************************************** //

View file

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
Inflow
{
type patch;
nFaces 112;
startFace 10592;
}
Lower
{
type patch;
nFaces 48;
startFace 10704;
}
frontAndBack
{
type empty;
nFaces 10752;
startFace 10752;
}
Outflow
{
type patch;
nFaces 112;
startFace 21504;
}
Upper
{
type patch;
nFaces 48;
startFace 21616;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class regIOobject;
location "constant/polyMesh";
object faceZones;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
0
()
// ************************************************************************* //

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