diff --git a/elastic-tube-1d/fluid-python/requirements.txt b/elastic-tube-1d/fluid-python/requirements.txt new file mode 100644 index 000000000..a7c8a22bd --- /dev/null +++ b/elastic-tube-1d/fluid-python/requirements.txt @@ -0,0 +1,3 @@ +matplotlib +numpy >1, <2 +pyprecice~=3.0 diff --git a/elastic-tube-1d/fluid-python/run.sh b/elastic-tube-1d/fluid-python/run.sh index 40f081acc..42eb172b5 100755 --- a/elastic-tube-1d/fluid-python/run.sh +++ b/elastic-tube-1d/fluid-python/run.sh @@ -4,6 +4,10 @@ set -e -u . ../../tools/log.sh exec > >(tee --append "$LOGFILE") 2>&1 +python3 -m venv .venv +. .venv/bin/activate +pip install -r requirements.txt + python3 ./FluidSolver.py ../precice-config.xml close_log diff --git a/elastic-tube-1d/solid-python/requirements.txt b/elastic-tube-1d/solid-python/requirements.txt new file mode 100644 index 000000000..dbffa144f --- /dev/null +++ b/elastic-tube-1d/solid-python/requirements.txt @@ -0,0 +1,2 @@ +numpy >1, <2 +pyprecice~=3.0 diff --git a/elastic-tube-1d/solid-python/run.sh b/elastic-tube-1d/solid-python/run.sh index e56711214..1ef66e4c7 100755 --- a/elastic-tube-1d/solid-python/run.sh +++ b/elastic-tube-1d/solid-python/run.sh @@ -4,6 +4,10 @@ set -e -u . ../../tools/log.sh exec > >(tee --append "$LOGFILE") 2>&1 +python3 -m venv .venv +. .venv/bin/activate +pip install -r requirements.txt + python3 ./SolidSolver.py ../precice-config.xml close_log