Skip to content

Commit fefb8f9

Browse files
Create test for shell and tube heat exchanger problem
1 parent 4536da0 commit fefb8f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1312
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
4+
echo "This tutorial is based on a case prepared with SimScale."
5+
echo "Since the mesh files are several MB large, we don't store them in the Git repository."
6+
echo "This script downloads and extracts the missing files."
7+
echo ""
8+
9+
echo "Downloading and extracting the Inner-Fluid mesh..."
10+
wget -nv -O - https://syncandshare.lrz.de/dl/fiNsYGC1DKzgio4jS5NhsXg7/polyMesh.org.tar.gz | tar -xzv -C fluid_inner/constant
11+
mv fluid_inner/constant/polyMesh.org fluid_inner/constant/polyMesh
12+
gzip -d -q fluid_inner/constant/polyMesh/*
13+
14+
15+
echo "Downloading and extracting the Outer-Fluid mesh..."
16+
wget -nv -O - https://syncandshare.lrz.de/dl/fiEZRQ8rcVWRkoyZvANim1R1/polyMesh.org.tar.gz | tar -xzv -C fluid_outer/constant
17+
mv fluid_outer/constant/polyMesh.org fluid_outer/constant/polyMesh
18+
gzip -d -q fluid_outer/constant/polyMesh/*
19+
20+
echo "Update boundary type"
21+
sed -i 's/mapped/wall/g' fluid_inner/constant/polyMesh/boundary
22+
sed -i 's/mapped/wall/g' fluid_outer/constant/polyMesh/boundary
23+
24+
echo "Completed."
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object T;
7+
}
8+
9+
dimensions [0 0 0 1 0 0 0];
10+
11+
internalField uniform 300;
12+
13+
boundaryField
14+
{
15+
outlet
16+
{
17+
type zeroGradient;
18+
}
19+
inlet
20+
{
21+
type fixedValue;
22+
value uniform 283;
23+
}
24+
interface
25+
{
26+
type fixedValue;
27+
value uniform 283;
28+
}
29+
adiabatic
30+
{
31+
type zeroGradient;
32+
}
33+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volVectorField;
6+
object U;
7+
}
8+
9+
dimensions [0 1 -1 0 0 0 0];
10+
11+
internalField uniform (0 0 0);
12+
13+
boundaryField
14+
{
15+
outlet
16+
{
17+
type zeroGradient;
18+
}
19+
inlet
20+
{
21+
type fixedValue;
22+
value uniform (0 0 -0.002);
23+
}
24+
interface
25+
{
26+
type fixedValue;
27+
value uniform (0 0 0);
28+
}
29+
adiabatic
30+
{
31+
type fixedValue;
32+
value uniform (0 0 0);
33+
}
34+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object alphat;
7+
}
8+
9+
dimensions [1 -1 -1 0 0 0 0];
10+
11+
internalField uniform 0;
12+
13+
boundaryField
14+
{
15+
".*"
16+
{
17+
type fixedValue;
18+
value uniform 0;
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object epsilon;
7+
}
8+
9+
dimensions [0 2 -3 0 0 0 0];
10+
11+
internalField uniform 1e-6;
12+
13+
boundaryField
14+
{
15+
".*"
16+
{
17+
type fixedValue;
18+
value uniform 1e-6;
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object k;
7+
}
8+
9+
dimensions [0 2 -2 0 0 0 0];
10+
11+
internalField uniform 0;
12+
13+
boundaryField
14+
{
15+
".*"
16+
{
17+
type fixedValue;
18+
value uniform 0;
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object nut;
7+
}
8+
9+
dimensions [0 2 -1 0 0 0 0];
10+
11+
internalField uniform 0;
12+
13+
boundaryField
14+
{
15+
".*"
16+
{
17+
type fixedValue;
18+
value uniform 0;
19+
}
20+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object p;
7+
}
8+
9+
dimensions [1 -1 -2 0 0 0 0];
10+
11+
internalField uniform 101325;
12+
13+
boundaryField
14+
{
15+
outlet
16+
{
17+
type calculated;
18+
value uniform 101325;
19+
}
20+
inlet
21+
{
22+
type calculated;
23+
value uniform 101325;
24+
}
25+
interface
26+
{
27+
type calculated;
28+
value uniform 101325;
29+
}
30+
adiabatic
31+
{
32+
type calculated;
33+
value uniform 101325;
34+
}
35+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object p_rgh;
7+
}
8+
9+
dimensions [1 -1 -2 0 0 0 0];
10+
11+
internalField uniform 101325;
12+
13+
boundaryField
14+
{
15+
outlet
16+
{
17+
type fixedValue;
18+
value uniform 101325;
19+
}
20+
inlet
21+
{
22+
type zeroGradient;
23+
}
24+
interface
25+
{
26+
type fixedFluxPressure;
27+
gradient uniform 0;
28+
value uniform 101325;
29+
}
30+
adiabatic
31+
{
32+
type fixedFluxPressure;
33+
gradient uniform 0;
34+
value uniform 101325;
35+
}
36+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
cd ${0%/*} || exit 1 # Run from this directory
3+
4+
# Source tutorial run functions
5+
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
6+
7+
cleanCase
8+
rm -f validation/*.eps
9+
10+
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)