diff --git a/changelog-entries/593.md b/changelog-entries/593.md new file mode 100644 index 000000000..55febac7a --- /dev/null +++ b/changelog-entries/593.md @@ -0,0 +1 @@ +- Added a requirements.txt for the SU2 tutorials. diff --git a/flow-over-heated-plate/fluid-su2/requirements.txt b/flow-over-heated-plate/fluid-su2/requirements.txt new file mode 100644 index 000000000..dbffa144f --- /dev/null +++ b/flow-over-heated-plate/fluid-su2/requirements.txt @@ -0,0 +1,2 @@ +numpy >1, <2 +pyprecice~=3.0 diff --git a/flow-over-heated-plate/fluid-su2/run.sh b/flow-over-heated-plate/fluid-su2/run.sh index 47b8fa29d..9960d4c0f 100755 --- a/flow-over-heated-plate/fluid-su2/run.sh +++ b/flow-over-heated-plate/fluid-su2/run.sh @@ -1,4 +1,13 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash set -e -u -SU2_preCICE_CHT.py -f laminar_config_unsteady.cfg -r --parallel \ No newline at end of file +. ../../tools/log.sh +exec > >(tee --append "$LOGFILE") 2>&1 + +python3 -m venv --system-site-packages .venv +. .venv/bin/activate +pip install -r requirements.txt + +SU2_preCICE_CHT.py -f laminar_config_unsteady.cfg -r --parallel + +close_log diff --git a/perpendicular-flap/fluid-su2/requirements.txt b/perpendicular-flap/fluid-su2/requirements.txt new file mode 100644 index 000000000..dbffa144f --- /dev/null +++ b/perpendicular-flap/fluid-su2/requirements.txt @@ -0,0 +1,2 @@ +numpy >1, <2 +pyprecice~=3.0 diff --git a/perpendicular-flap/fluid-su2/run.sh b/perpendicular-flap/fluid-su2/run.sh index 0023e6284..03c8dc286 100755 --- a/perpendicular-flap/fluid-su2/run.sh +++ b/perpendicular-flap/fluid-su2/run.sh @@ -4,6 +4,10 @@ set -e -u . ../../tools/log.sh exec > >(tee --append "$LOGFILE") 2>&1 +python3 -m venv --system-site-packages .venv +. .venv/bin/activate +pip install -r requirements.txt + SU2_preCICE_FSI.py -f euler_config_unsteady.cfg --parallel close_log