Skip to content

Commit

Permalink
Create a venv for SU2 tutorials (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisH authored Nov 15, 2024
1 parent 7002157 commit dd1f9c4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog-entries/593.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added a requirements.txt for the SU2 tutorials.
2 changes: 2 additions & 0 deletions flow-over-heated-plate/fluid-su2/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy >1, <2
pyprecice~=3.0
13 changes: 11 additions & 2 deletions flow-over-heated-plate/fluid-su2/run.sh
Original file line number Diff line number Diff line change
@@ -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
. ../../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
2 changes: 2 additions & 0 deletions perpendicular-flap/fluid-su2/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy >1, <2
pyprecice~=3.0
4 changes: 4 additions & 0 deletions perpendicular-flap/fluid-su2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dd1f9c4

Please sign in to comment.