Skip to content

Commit

Permalink
Added 03 free convection case setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoumey committed Mar 16, 2021
1 parent b9334d3 commit 03be183
Show file tree
Hide file tree
Showing 40 changed files with 1,874 additions and 0 deletions.
38 changes: 38 additions & 0 deletions validationCases/03_freeConvection/0/T
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 300;

boundaryField
{
".*"
{
type calculated;
value $internalField;
}
minZ
{
type empty;
}
maxZ
{
type empty;
}
}

// ************************************************************************* //
38 changes: 38 additions & 0 deletions validationCases/03_freeConvection/0/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0.01 0 0);

boundaryField
{
".*"
{
type calculated;
value $internalField;
}
minZ
{
type empty;
}
maxZ
{
type empty;
}
}

// ************************************************************************* //
38 changes: 38 additions & 0 deletions validationCases/03_freeConvection/0/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 1e5;

boundaryField
{
".*"
{
type calculated;
value $internalField;
}
minZ
{
type empty;
}
maxZ
{
type empty;
}
}

// ************************************************************************* //
38 changes: 38 additions & 0 deletions validationCases/03_freeConvection/0/p_rgh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 1e5;

boundaryField
{
".*"
{
type calculated;
value $internalField;
}
minZ
{
type empty;
}
maxZ
{
type empty;
}
}

// ************************************************************************* //
18 changes: 18 additions & 0 deletions validationCases/03_freeConvection/Allclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

cleanCase
rm -rf VTK
rm -rf constant/cellToRegion constant/polyMesh/sets
rm -rf 0/bottomAir
rm -rf 0/solid
rm -rf 0/topAir
rm -f 0/cellToRegion
rm -rf constant/bottomAir/polyMesh
rm -rf constant/topAir/polyMesh
rm -rf constant/solid/polyMesh

#------------------------------------------------------------------------------
43 changes: 43 additions & 0 deletions validationCases/03_freeConvection/Allrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory


# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication blockMesh
runApplication topoSet
runApplication splitMeshRegions -cellZones -overwrite

# remove fluid fields from solid regions (important for post-processing)
for i in solid
do
rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh}
done


for i in topAir bottomAir solid
do
runApplication -s $i changeDictionary -region $i
done


#-- Run on single processor
runApplication `getApplication`

# Decompose
#runApplication decomposePar -allRegions

# Run
#runParallel `getApplication`

# Reconstruct
#runApplication reconstructPar -allRegions


echo
echo "creating files for paraview post-processing"
echo
paraFoam -touchAll

#------------------------------------------------------------------------------
6 changes: 6 additions & 0 deletions validationCases/03_freeConvection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 3. Free Convection

Two parallel, laminar gas flows split by a stainless steel plate.
Initially, hot gas (top) stream is at 1800 K, cold gas (bottom) is at 300 K, and plate is at 800 K.


20 changes: 20 additions & 0 deletions validationCases/03_freeConvection/constant/bottomAir/g
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedVectorField;
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -2 0 0 0 0];
value (0.0 0.0 0.0);

// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

radiation off;

radiationModel none;


// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "bottomAir/thermophysicalProperties";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

mixture
{
specie
{
molWeight 28.9;
}
thermodynamics
{
Cp 1006;
Hf 0;
}
transport
{
mu 1.845e-05;
Pr 0.7;
}
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType laminar;

// ************************************************************************* //
24 changes: 24 additions & 0 deletions validationCases/03_freeConvection/constant/regionProperties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object regionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

regions
(
fluid (bottomAir topAir)
solid (solid)
);

// ************************************************************************* //
Loading

0 comments on commit 03be183

Please sign in to comment.