-
Notifications
You must be signed in to change notification settings - Fork 4
Create test for shell and tube heat exchanger problem #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mattfalcone1997
merged 16 commits into
aurora-multiphysics:main
from
mattfalcone1997:shell_tube_test
Jul 18, 2025
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
210407e
Create test for shell and tube heat exchanger problem
mattfalcone1997 78acee4
Create README.md for shell and tube heat exchanger problem
mattfalcone1997 fec9f99
Remove heavy test as unnecessary
mattfalcone1997 ab09bac
Check if exodiff error eliminated using near location transfer
mattfalcone1997 26e8271
Make serial and parallel buoyantCavity case files the same
mattfalcone1997 df8c799
Shell and tube make download optional in prep script
mattfalcone1997 c9229c9
Make shell and tube test serial for now
mattfalcone1997 365cfae
Fix bug in transfers for shell and tube HX
mattfalcone1997 c96a651
Update shell tube test to use 2 cores
mattfalcone1997 28d794f
Simplif shell tube test by setting end time to 10 initially
mattfalcone1997 9959fa7
Remove unnecessary scripts from OpenFOAM directories
mattfalcone1997 fc19cac
Add file hash checking and refactor
mattfalcone1997 3b4f1f2
Update comments in input files and README
mattfalcone1997 de6d1fb
Remove unnecessary commands from Allclean
mattfalcone1997 a815467
simplify shell and tube prep file
mattfalcone1997 abcc107
Update comments and allow mesh not to be redownloaded if present for …
mattfalcone1997 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Shell and tube heat exchanger | ||
|
|
||
| Here we solve the preCICE [shell and tube heat exchanger](https://precice.org/tutorials-heat-exchanger.html) problem using Hippo. | ||
|
|
||
|  | ||
|
|
||
| The fluid and solid meshes are copied from the tutorial with the solid mesh already converted to the Exodus II format for MOOSE. The case is run using FFTB (heat flux from fluid to solid, wall temperature from solid to fluid) coupling, meaning the solid is run transient. To speed up convergence, the $c_p$ is decreased initially. | ||
|
|
||
| `download-meshes.sh` shell script downloads and decompresses the OpenFOAM meshes, while `prep.sh` takes command line arguments to set the write interval and end time of the simulations. | ||
|
|
||
| There are two tests: | ||
| - **Short test:** run for 10 seconds as part of normal CI pipeline | ||
| - **Heavy test:** run for full 500 seconds and can be activated using the `--heavy` option for the `run_tests` executable. | ||
24 changes: 24 additions & 0 deletions
24
test/tests/multiapps/shell_tube_heat_exchanger/download-meshes.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/bin/sh | ||
|
|
||
|
|
||
| echo "This tutorial is based on a case prepared with SimScale." | ||
| echo "Since the mesh files are several MB large, we don't store them in the Git repository." | ||
| echo "This script downloads and extracts the missing files." | ||
| echo "" | ||
|
|
||
| echo "Downloading and extracting the Inner-Fluid mesh..." | ||
| wget -nv -O - https://syncandshare.lrz.de/dl/fiNsYGC1DKzgio4jS5NhsXg7/polyMesh.org.tar.gz | tar -xzv -C fluid_inner/constant | ||
| mv fluid_inner/constant/polyMesh.org fluid_inner/constant/polyMesh | ||
| gzip -d -q fluid_inner/constant/polyMesh/* | ||
|
|
||
|
|
||
| echo "Downloading and extracting the Outer-Fluid mesh..." | ||
| wget -nv -O - https://syncandshare.lrz.de/dl/fiEZRQ8rcVWRkoyZvANim1R1/polyMesh.org.tar.gz | tar -xzv -C fluid_outer/constant | ||
| mv fluid_outer/constant/polyMesh.org fluid_outer/constant/polyMesh | ||
| gzip -d -q fluid_outer/constant/polyMesh/* | ||
|
|
||
| echo "Update boundary type" | ||
| sed -i 's/mapped/wall/g' fluid_inner/constant/polyMesh/boundary | ||
| sed -i 's/mapped/wall/g' fluid_outer/constant/polyMesh/boundary | ||
|
|
||
| echo "Completed." |
33 changes: 33 additions & 0 deletions
33
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object T; | ||
| } | ||
|
|
||
| dimensions [0 0 0 1 0 0 0]; | ||
|
|
||
| internalField uniform 300; | ||
|
|
||
| boundaryField | ||
| { | ||
| outlet | ||
| { | ||
| type zeroGradient; | ||
| } | ||
| inlet | ||
| { | ||
| type fixedValue; | ||
| value uniform 283; | ||
| } | ||
| interface | ||
| { | ||
| type fixedValue; | ||
| value uniform 283; | ||
| } | ||
| adiabatic | ||
| { | ||
| type zeroGradient; | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/U
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volVectorField; | ||
| object U; | ||
| } | ||
|
|
||
| dimensions [0 1 -1 0 0 0 0]; | ||
|
|
||
| internalField uniform (0 0 0); | ||
|
|
||
| boundaryField | ||
| { | ||
| outlet | ||
| { | ||
| type zeroGradient; | ||
| } | ||
| inlet | ||
| { | ||
| type fixedValue; | ||
| value uniform (0 0 -0.002); | ||
| } | ||
| interface | ||
| { | ||
| type fixedValue; | ||
| value uniform (0 0 0); | ||
| } | ||
| adiabatic | ||
| { | ||
| type fixedValue; | ||
| value uniform (0 0 0); | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/alphat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object alphat; | ||
| } | ||
|
|
||
| dimensions [1 -1 -1 0 0 0 0]; | ||
|
|
||
| internalField uniform 0; | ||
|
|
||
| boundaryField | ||
| { | ||
| ".*" | ||
| { | ||
| type fixedValue; | ||
| value uniform 0; | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/epsilon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object epsilon; | ||
| } | ||
|
|
||
| dimensions [0 2 -3 0 0 0 0]; | ||
|
|
||
| internalField uniform 1e-6; | ||
|
|
||
| boundaryField | ||
| { | ||
| ".*" | ||
| { | ||
| type fixedValue; | ||
| value uniform 1e-6; | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/k
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object k; | ||
| } | ||
|
|
||
| dimensions [0 2 -2 0 0 0 0]; | ||
|
|
||
| internalField uniform 0; | ||
|
|
||
| boundaryField | ||
| { | ||
| ".*" | ||
| { | ||
| type fixedValue; | ||
| value uniform 0; | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/nut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object nut; | ||
| } | ||
|
|
||
| dimensions [0 2 -1 0 0 0 0]; | ||
|
|
||
| internalField uniform 0; | ||
|
|
||
| boundaryField | ||
| { | ||
| ".*" | ||
| { | ||
| type fixedValue; | ||
| value uniform 0; | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/p
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object p; | ||
| } | ||
|
|
||
| dimensions [1 -1 -2 0 0 0 0]; | ||
|
|
||
| internalField uniform 101325; | ||
|
|
||
| boundaryField | ||
| { | ||
| outlet | ||
| { | ||
| type calculated; | ||
| value uniform 101325; | ||
| } | ||
| inlet | ||
| { | ||
| type calculated; | ||
| value uniform 101325; | ||
| } | ||
| interface | ||
| { | ||
| type calculated; | ||
| value uniform 101325; | ||
| } | ||
| adiabatic | ||
| { | ||
| type calculated; | ||
| value uniform 101325; | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/0/p_rgh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class volScalarField; | ||
| object p_rgh; | ||
| } | ||
|
|
||
| dimensions [1 -1 -2 0 0 0 0]; | ||
|
|
||
| internalField uniform 101325; | ||
|
|
||
| boundaryField | ||
| { | ||
| outlet | ||
| { | ||
| type fixedValue; | ||
| value uniform 101325; | ||
| } | ||
| inlet | ||
| { | ||
| type zeroGradient; | ||
| } | ||
| interface | ||
| { | ||
| type fixedFluxPressure; | ||
| gradient uniform 0; | ||
| value uniform 101325; | ||
| } | ||
| adiabatic | ||
| { | ||
| type fixedFluxPressure; | ||
| gradient uniform 0; | ||
| value uniform 101325; | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/Allclean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/sh | ||
| cd ${0%/*} || exit 1 # Run from this directory | ||
|
|
||
| # Source tutorial run functions | ||
| . $WM_PROJECT_DIR/bin/tools/CleanFunctions | ||
|
|
||
| cleanCase | ||
| rm -f validation/*.eps | ||
|
|
||
| #------------------------------------------------------------------------------ |
6 changes: 6 additions & 0 deletions
6
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/clean.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/sh | ||
| set -e -u | ||
|
|
||
| . ../../tools/cleaning-tools.sh | ||
|
|
||
| clean_openfoam . | ||
k-collie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
11 changes: 11 additions & 0 deletions
11
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/constant/g
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| 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); |
44 changes: 44 additions & 0 deletions
44
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/constant/thermophysicalProperties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| FoamFile | ||
| { | ||
| version 2.0; | ||
| format ascii; | ||
| class dictionary; | ||
| object thermophysicalProperties; | ||
| } | ||
|
|
||
| dpdt no; | ||
|
|
||
| thermoType | ||
| { | ||
| type heRhoThermo; | ||
| mixture pureMixture; | ||
| transport const; | ||
| thermo hConst; | ||
| equationOfState perfectFluid; | ||
| specie specie; | ||
| energy sensibleEnthalpy; | ||
| } | ||
|
|
||
| mixture | ||
| { | ||
| specie | ||
| { | ||
| nMoles 1; | ||
| molWeight 18; | ||
| } | ||
| equationOfState | ||
| { | ||
| R 3000; | ||
| rho0 1027; | ||
| } | ||
| thermodynamics | ||
| { | ||
| Cp 4195; | ||
| Hf 0; | ||
| } | ||
| transport | ||
| { | ||
| mu 3.645e-4; | ||
| Pr 2.289; | ||
| } | ||
| } |
8 changes: 8 additions & 0 deletions
8
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/constant/turbulenceProperties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FoamFile { | ||
| version 2.0; | ||
| format ascii; | ||
| class dictionary; | ||
| object turbulenceProperties; | ||
| } | ||
|
|
||
| simulationType laminar; |
10 changes: 10 additions & 0 deletions
10
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/run.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/bash | ||
| set -e -u | ||
|
|
||
| . ../../tools/log.sh | ||
| exec > >(tee --append "$LOGFILE") 2>&1 | ||
|
|
||
| ../../tools/run-openfoam.sh "$@" | ||
| . ../../tools/openfoam-remove-empty-dirs.sh && openfoam_remove_empty_dirs | ||
|
|
||
| close_log | ||
k-collie marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
32 changes: 32 additions & 0 deletions
32
test/tests/multiapps/shell_tube_heat_exchanger/fluid_inner/system/controlDict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| FoamFile { | ||
| version 2.0; | ||
| format ascii; | ||
| class dictionary; | ||
| object controlDict; | ||
| } | ||
|
|
||
| solver fluid; | ||
|
|
||
| startFrom startTime; | ||
|
|
||
| stopAt endTime; | ||
|
|
||
| writeFormat ascii; | ||
|
|
||
| writePrecision 12; | ||
|
|
||
| // writeCompression on; | ||
|
|
||
| timeFormat general; | ||
|
|
||
| timePrecision 12; | ||
|
|
||
| deltaT 1.; | ||
|
|
||
| startTime 0.0; | ||
|
|
||
| writeInterval 50; | ||
|
|
||
| endTime 500; | ||
|
|
||
| writeControl timeStep; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.