Skip to content

Commit 4996945

Browse files
MakisHIshaanDesaidavidscnerikscheurer
authored
Release v202211.0.0 (#50)
Co-authored-by: Gerasimos Chourdakis <makishourdakis@gmail.com> Co-authored-by: Ishaan Desai <ishaandesai@gmail.com> Co-authored-by: Ishaan Desai <ishaan.desai@ipvs.uni-stuttgart.de> Co-authored-by: David Schneider <david.schneider@ipvs.uni-stuttgart.de> Co-authored-by: erikscheurer <84399192+erikscheurer@users.noreply.github.com>
1 parent 45a770b commit 4996945

File tree

13 files changed

+100
-19
lines changed

13 files changed

+100
-19
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This box is based on the [generic/ubuntu2004](https://github.com/lavabit/robox/t
5050
- preCICE latest for the master branch
5151
- preCICE config visualizer (master)
5252
- preCICE Python bindings (PIP)
53+
- preCICE Julia bindings (Pkg)
5354
- OpenFOAM v2112 and the OpenFOAM-preCICE adapter (master)
5455
- deal.II 9.3 from the official backports and the deal.II-preCICE adapter (master)
5556
- CalculiX 2.19 from source and the CalculiX-preCICE adapter (master)
@@ -58,6 +59,7 @@ This box is based on the [generic/ubuntu2004](https://github.com/lavabit/robox/t
5859
- SU2 6.0.0 and the SU2-preCICE adapter (master)
5960
- code_aster 14.6 and the code_aster-preCICE adapter (master)
6061
- DUNE 2.8 and the experimental DUNE-preCICE adapter (master)
62+
- ASTE (master)
6163
- Paraview from APT
6264
- Gnuplot
6365

Vagrantfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Vagrant.configure("2") do |config|
4646
# Install solvers, adapters, and related tools
4747
config.vm.provision "shell", path: "provisioning/install-config-visualizer.sh", privileged: false
4848
config.vm.provision "shell", path: "provisioning/install-openfoam.sh", privileged: false
49-
config.vm.provision "file", source: "provisioning/prebuilt/swak4Foam/swak4Foam.tar.gz", destination: "~/OpenFOAM/vagrant-v2112/platforms/linux64GccDPInt32Opt/swak4Foam.tar.gz"
49+
config.vm.provision "file", source: "provisioning/prebuilt/swak4Foam/swak4Foam.tar.gz", destination: "~/OpenFOAM/vagrant-v2206/platforms/linux64GccDPInt32Opt/swak4Foam.tar.gz"
5050
config.vm.provision "shell", path: "provisioning/install-dealii.sh", privileged: false
5151
config.vm.provision "shell", path: "provisioning/install-calculix.sh", privileged: false
5252
config.vm.provision "shell", path: "provisioning/install-fenics.sh", privileged: false
@@ -55,6 +55,8 @@ Vagrant.configure("2") do |config|
5555
config.vm.provision "shell", path: "provisioning/install-code_aster.sh", privileged: false
5656
config.vm.provision "shell", path: "provisioning/install-dune.sh", privileged: false
5757
config.vm.provision "shell", path: "provisioning/install-paraview.sh", privileged: false
58+
config.vm.provision "shell", path: "provisioning/install-julia-bindings.sh", privileged: false
59+
config.vm.provision "shell", path: "provisioning/install-aste.sh", privileged: false
5860

5961
# Post-installation steps
6062
config.vm.provision "shell", path: "provisioning/post-install.sh", privileged: false

provisioning/install-aste.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
# Install the C++ vtk library
5+
sudo apt-get -y install libvtk7-dev
6+
sudo apt-get -y install libmetis-dev
7+
8+
python3 -m pip install sympy scipy jinja2
9+
10+
# Get aste
11+
if [ ! -d "aste/" ]; then
12+
git clone --depth=1 --branch master https://github.com/precice/aste.git
13+
fi
14+
(
15+
cd aste
16+
git pull
17+
mkdir -p build && cd build
18+
cmake .. && make -j "$(nproc)"
19+
)
20+
21+
# Add aste to PATH and libmetis to the library path
22+
echo "export PATH=\"\${HOME}/aste/build:\${PATH}\"" >>~/.bashrc
23+
echo "export LD_LIBRARY_PATH=\"\${HOME}/aste/build:\${LD_LIBRARY_PATH}\"" >>~/.bashrc

provisioning/install-basics.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sudo apt-get upgrade -qy
1111

1212
# Install the Xfce desktop environment and basic applications
1313
sudo apt-get install -y xubuntu-core^
14-
sudo apt-get install -y thunar xfce4-terminal terminator bash-completion tree evince firefox firefox-locale-en baobab catfish
14+
sudo apt-get install -y thunar xfce4-terminal terminator bash-completion tree atril firefox firefox-locale-en baobab catfish
1515

1616
# Setup auto-login for the graphical session
1717
# Disabled due to https://github.com/precice/vm/issues/40

provisioning/install-calculix.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -ex
55
sudo apt-get install -y libarpack2-dev libspooles-dev libyaml-cpp-dev
66

77
# Install CalculiX
8-
wget --quiet http://www.dhondt.de/ccx_2.19.src.tar.bz2
9-
tar xvjf ccx_2.19.src.tar.bz2
10-
rm -fv ccx_2.19.src.tar.bz2
8+
wget --quiet http://www.dhondt.de/ccx_2.20.src.tar.bz2
9+
tar xvjf ccx_2.20.src.tar.bz2
10+
rm -fv ccx_2.20.src.tar.bz2
1111

1212
# Get the CalculiX-preCICE adapter
1313
if [ ! -d "calculix-adapter/" ]; then

provisioning/install-dune.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,9 @@ echo "export DUNE_CONTROL_PATH=\"\${HOME}/dune\"" >> ~/.bashrc
6868
# Copy the built example code to the tutorials
6969
cp ~/dune/dune-adapter/dune-precice-howto/build-cmake/examples/dune-perpendicular-flap ~/tutorials/perpendicular-flap/solid-dune
7070

71+
# Install dune-fem from PIP
72+
73+
pip3 install --user dune-fem==2.8
74+
7175
# We are done with DUNE, let's do back home
7276
cd ~
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# install latest julia
4+
pip3 install jill
5+
jill install --confirm
6+
7+
# install preCICE bindings
8+
julia -e 'using Pkg; Pkg.add("PreCICE")'
9+
10+
# to test the installation, run the following command:
11+
# julia -e 'using Pkg; Pkg.test("PreCICE")'

provisioning/install-nutils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
set -ex
33

44
# Install Nutils from PIP (we will also need matplotlib in our examples)
5-
pip3 install --user matplotlib nutils==6.3
5+
pip3 install --user matplotlib nutils==7.0

provisioning/install-openfoam.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -ex
44
# Add the signing key, add the repository, update:
55
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
66

7-
# Install OpenFOAM v2112:
8-
sudo apt-get install -y openfoam2112-dev
7+
# Install OpenFOAM v2206:
8+
sudo apt-get install -y openfoam2206-dev
99
# Enable OpenFOAM by default:
10-
echo ". /usr/lib/openfoam/openfoam2112/etc/bashrc" >> ~/.bashrc
10+
echo ". /usr/lib/openfoam/openfoam2206/etc/bashrc" >> ~/.bashrc
1111

1212
# Get the OpenFOAM-preCICE adapter
1313
if [ ! -d "openfoam-adapter/" ]; then
@@ -16,7 +16,7 @@ fi
1616
(
1717
cd openfoam-adapter
1818
git pull
19-
openfoam2112 ./Allwmake
19+
openfoam2206 ./Allwmake
2020
)
2121

2222
# Get swak4Foam (provides groovyBC, needed for the turek-hron-fsi3 tutorial)
@@ -27,15 +27,15 @@ fi
2727
# (
2828
# cd swak4Foam
2929
# hg checkout develop
30-
# openfoam2112 ./AllwmakeAll
30+
# openfoam2206 ./AllwmakeAll
3131
# )
3232
#
3333
# # Remove some swak4Foam files to save space (approx. 150MB)
3434
# rm -rfv .~swak4Foam
3535
# sudo apt-get purge --autoremove -y mercurial # This also removes Python2, yipieh!
3636
#
3737
# # Option 2: Use pre-built binaries
38-
# # (see Vagrantfile and post-install.sh, rebuild and update for OpenFOAM version other than v2112)
38+
# # (see Vagrantfile and post-install.sh, rebuild and update for OpenFOAM version other than v2206)
3939

4040
# Build the tutorials partitioned-heat-conduction solver
41-
cd ~/tutorials/partitioned-heat-conduction/openfoam-solver && openfoam2112 wmake
41+
cd ~/tutorials/partitioned-heat-conduction/openfoam-solver && openfoam2206 wmake

provisioning/install-precice.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ set -ex
55
sudo apt-get install -y cmake libeigen3-dev libxml2-dev libboost-all-dev petsc-dev python3-dev python3-numpy
66

77
# Get preCICE from GitHub:
8-
# - Always get the latest master, no need for versioning
8+
# - Always get the latest main branch, no need for versioning
99
# - Build in Debug mode, so that users can report bugs
1010
if [ ! -d "precice/" ]; then
11-
git clone --depth=1 --branch master https://github.com/precice/precice.git
11+
git clone --depth=1 --branch main https://github.com/precice/precice.git
1212
fi
1313
(
1414
cd precice
@@ -40,6 +40,10 @@ if [ ! -d "tutorials/" ]; then
4040
git clone --depth=1 --branch master https://github.com/precice/tutorials.git
4141
ln -sf ~/tutorials ~/Desktop/
4242
fi
43+
(
44+
cd tutorials/elastic-tube-1d/fluid-cpp/ && mkdir build && cd build && cmake .. && make && cd ../..
45+
cd solid-cpp/ && mkdir build && cd build && cmake .. && make
46+
)
4347
(
4448
cd tutorials/quickstart/solid-cpp/ && cmake . && make
4549
)
@@ -55,6 +59,22 @@ sudo apt-get install -y python3-pip
5559
pip3 install --upgrade pip
5660
pip3 install --user pyprecice
5761

62+
# Additional python packages
63+
pip3 install --user pandas # Needed for the post-processing script of the oscillator tutorial
64+
65+
# Temporary workaround for https://github.com/precice/vm/issues/61
66+
# Remove as soon as https://github.com/precice/tutorials/issues/217 gets resolved
67+
sudo apt-get install -y python3.8-venv
68+
(
69+
cd tutorials/perpendicular-flap/fluid-nutils/
70+
python3 -m venv nutils6-env
71+
# shellcheck source=/dev/null
72+
source nutils6-env/bin/activate
73+
pip3 install nutils==6.3 pyprecice
74+
sed -i "s/python3/nutils6-env\/bin\/python3/g" ./run.sh
75+
deactivate
76+
)
77+
5878
# Get the Python solverdummy into the examples
5979
if [ ! -d "python-bindings/" ]; then
6080
git clone --depth=1 --branch master https://github.com/precice/python-bindings.git

0 commit comments

Comments
 (0)