Skip to content

Commit abcc107

Browse files
Update comments and allow mesh not to be redownloaded if present for shell tube test
1 parent a815467 commit abcc107

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ moose/include/base/Precompiled.h.gch
151151
# OpenFOAM mesh object files
152152
test/**/*.obj
153153

154+
# downloaded mesh tarballs
155+
test/tests/**/*.tar.gz
156+
154157
framework/contrib/exodiff/exodiff
155158

156159
# Mac garbage

test/tests/multiapps/shell_tube_heat_exchanger/prep.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
#!/bin/bash
22

3+
set -e -u -o pipefail
4+
35
# Downloads mesh file and check the hash against known reference
46
downloadMesh()
57
{
68
DIRECTORY=$1
79
URL=$2
810
HASH=$3
9-
FILE=$(basename ${URL})
11+
FILE=${DIRECTORY}_mesh.tar.gz
12+
13+
if [ ! -f $FILE ]; then
14+
wget -O $FILE -nv ${URL}
15+
fi
1016

11-
wget -O $FILE -nv ${URL}
1217
if [ $? -ne 0 ]; then
1318
echo "Download failed"
1419
exit 1
@@ -21,9 +26,7 @@ downloadMesh()
2126

2227
tar -xvf $FILE
2328
mv polyMesh.org $DIRECTORY/constant/polyMesh
24-
rm -f $FILE
2529
gzip -d -q $DIRECTORY/constant/polyMesh/*
26-
return 0
2730
}
2831

2932
foamCleanCase -case fluid_inner

test/tests/multiapps/shell_tube_heat_exchanger/solid.i

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,7 @@
8787
[]
8888
[]
8989
[Materials]
90-
# The example specifies that the thermal diffusivity of the solid should
91-
# be α = 1 m2/s, and the thermal conductivity should be k = 100 W/(m.K).
92-
#
93-
# We know α = k/(Cp.ρ), where k is thermal conductivity, Cp is specific
94-
# heat capacity, and ρ is density.
95-
#
96-
# Hence we require that Cp.ρ = k = 100.
90+
# Solid material properties for copper
9791
[thermal-conduction]
9892
type = ADGenericConstantMaterial
9993
prop_names = 'thermal_conductivity density'

0 commit comments

Comments
 (0)