Skip to content

Commit 083b99d

Browse files
Trigger complete run.
1 parent ddaca05 commit 083b99d

File tree

5 files changed

+238
-30
lines changed

5 files changed

+238
-30
lines changed

.github/workflows/oscillator-overlap.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ jobs:
99
strategy:
1010
matrix:
1111
experiment:
12-
# - name: Figure 6.1 RK4 GA
13-
# args: '-tss runge_kutta_4 generalized_alpha -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_ga.csv'
14-
# - name: Figure 6.1 RK4 RK4
15-
# args: '-tss runge_kutta_4 runge_kutta_4 -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_rk4.csv'
12+
- name: Figure 6.1 RK4 GA
13+
args: '-tss runge_kutta_4 generalized_alpha -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_ga.csv'
14+
- name: Figure 6.1 RK4 RK4
15+
args: '-tss runge_kutta_4 runge_kutta_4 -wd 3 -dt 0.05 -sb 4 4 -s 8 -sf 1 2 -w 1 -o convergence-studies/subcycling_rk4_rk4.csv'
1616
- name: Figure 6.2a
17-
args: '--config fig6_2a_config_small.csv -tss runge_kutta_4 generalized_alpha -wd 3 -o convergence-studies/contour_data.csv'
18-
# - name: Figure 6.2b S 2 4
19-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 4 -o convergence-studies/compensation_S_2_4.csv'
20-
# - name: Figure 6.2b S 2 8
21-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 8 -o convergence-studies/compensation_S_2_8.csv'
22-
# - name: Figure 6.2b S 2 16
23-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 16 -o convergence-studies/compensation_S_2_16.csv'
24-
# - name: Figure 6.2b S 2 32
25-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 32 -o convergence-studies/compensation_S_2_32.csv'
26-
# - name: Figure 6.2b S 2 64
27-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 64 -o convergence-studies/compensation_S_2_64.csv'
28-
# - name: Figure 6.2b S 2 128
29-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 128 -o convergence-studies/compensation_S_2_128.csv'
30-
# - name: Figure 6.2b S 2 256
31-
# args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 256 -o convergence-studies/compensation_S_2_256.csv'
17+
args: '--config fig6_2a_config.csv -tss runge_kutta_4 generalized_alpha -wd 3 -o convergence-studies/contour_data.csv'
18+
- name: Figure 6.2b S 2 4
19+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 4 -o convergence-studies/compensation_S_2_4.csv'
20+
- name: Figure 6.2b S 2 8
21+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 8 -o convergence-studies/compensation_S_2_8.csv'
22+
- name: Figure 6.2b S 2 16
23+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 16 -o convergence-studies/compensation_S_2_16.csv'
24+
- name: Figure 6.2b S 2 32
25+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 32 -o convergence-studies/compensation_S_2_32.csv'
26+
- name: Figure 6.2b S 2 64
27+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 64 -o convergence-studies/compensation_S_2_64.csv'
28+
- name: Figure 6.2b S 2 128
29+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 128 -o convergence-studies/compensation_S_2_128.csv'
30+
- name: Figure 6.2b S 2 256
31+
args: '-tss runge_kutta_4 generalized_alpha -dt 0.2 -wd 3 -sb 4 256 -o convergence-studies/compensation_S_2_256.csv'
3232
runs-on: ubuntu-latest
3333
defaults:
3434
run:
@@ -53,7 +53,16 @@ jobs:
5353
- name: Run tutorial
5454
run: |
5555
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{matrix.experiment.args}}
56+
- name: Store logs
57+
if: always()
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: oscillator-overlap logs ${{ matrix.experiment.name }}
61+
path: |
62+
perpendicular-flap/fluid-openfoam/stdout-Fluid.log
63+
perpendicular-flap/solid-fenics/stdout-Solid.log
5664
- name: Store results
65+
if: always()
5766
uses: actions/upload-artifact@v4
5867
with:
5968
name: oscillator-overlap ${{ matrix.experiment.name }}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Run partitioned-heat-acceleration experiments
2+
on:
3+
push:
4+
branches:
5+
- use-github-actions-for-diss-cases
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Table 6.1 QN-SC
13+
args: ' -o acceleration-studies/QN-SC.csv'
14+
- name: Table 6.1 rQN-WI
15+
args: '--exchange-substeps -o acceleration-studies/rQN-WI.csv'
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./partitioned-heat-conduction
20+
container: precice/precice:nightly
21+
steps:
22+
- name: Checkout Repository
23+
uses: actions/checkout@v4
24+
- name: Install Dependencies
25+
run: |
26+
apt-get -qq update
27+
apt-get -qq install software-properties-common python3-dev python3-pip python3.12-venv git apt-utils pkg-config
28+
add-apt-repository -y ppa:fenics-packages/fenics
29+
apt-get -qq install --no-install-recommends fenics
30+
rm -rf /var/lib/apt/lists/*
31+
- name: Create venv
32+
run: |
33+
./make-venv.sh
34+
- name: Activate venv
35+
# see https://stackoverflow.com/a/74669486
36+
run: |
37+
. .venv/bin/activate
38+
echo PATH=$PATH >> $GITHUB_ENV
39+
- name: Run tutorial
40+
run: |
41+
python3 doAccelerationStudy.py precice-config-rQNWI-template.xml --silent --executor Github ${{matrix.experiment.args}}
42+
- name: Store results
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: partitioned-heat-conduction-acceleration ${{ matrix.experiment.name }}
46+
path: |
47+
# working directory is ignored by actions/upload-artifact
48+
./partitioned-heat-conduction/acceleration-studies
49+
merge:
50+
runs-on: ubuntu-latest
51+
needs: run_experiments
52+
steps:
53+
- name: Merge results
54+
uses: actions/upload-artifact/merge@v4
55+
with:
56+
name: partitioned-heat-conduction-acceleration
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Run partitioned-heat-conduction experiments
2+
on:
3+
push:
4+
branches:
5+
- use-github-actions-for-diss-cases
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Figure 6.4a) SC p0
13+
args: '--waveform-degree 0 --experiment poly --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_SC_p0_poly.csv'
14+
- name: Figure 6.4a) SC p1
15+
args: '--waveform-degree 1 --experiment poly --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_SC_p1_poly.csv'
16+
- name: Figure 6.4a) MC p1
17+
args: '--exchange-substeps --waveform-degree 1 --experiment poly --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_MC_p1_poly.csv'
18+
- name: Figure 6.4b) SC p0
19+
args: '--waveform-degree 0 --experiment tri --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_SC_p0_tri.csv'
20+
- name: Figure 6.4b) SC p1
21+
args: '--waveform-degree 1 --experiment tri --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_SC_p1_tri.csv'
22+
- name: Figure 6.4b) MC p1
23+
args: '--exchange-substeps --waveform-degree 1 --experiment tri --time-window-refinements 1 --time-step-refinements 6 --base-time-window-size 1 -o convergence-studies/subcycling_MC_p1_tri.csv'
24+
- name: Figure 6.5 IE 1
25+
args: '--experiment tri -w 6 -o convergence-studies/highorder_IE_1.csv'
26+
- name: Figure 6.5 IE 5
27+
args: '--experiment tri -w 6 -s 1 -wd 5 -sb 5 5 -dt 0.5 --exchange-substeps -o convergence-studies/highorder_IE_5.csv'
28+
- name: Figure 6.5 IE 10
29+
args: '--experiment tri -w 6 -s 1 -wd 10 -sb 10 10 -dt 1 --exchange-substeps -o convergence-studies/highorder_IE_10.csv'
30+
- name: Figure 6.5 GL2 1
31+
args: '--experiment tri -w 6 -tss GaussLegendre2 GaussLegendre2 --exchange-substeps -o convergence-studies/highorder_GL2_1.csv'
32+
- name: Figure 6.5 GL2 5
33+
args: '--experiment tri -w 6 -s 1 -wd 5 -sb 5 5 -dt 0.5 -tss GaussLegendre2 GaussLegendre2 --exchange-substeps -o convergence-studies/highorder_GL2_5.csv'
34+
- name: Figure 6.5 LIIIC 1
35+
args: '--experiment tri -w 6 -tss LobattoIIIC3 LobattoIIIC3 --exchange-substeps -o convergence-studies/highorder_LIIIC_1.csv'
36+
- name: Figure 6.5 LIIIC 10
37+
args: '--experiment tri -w 6 -s 1 -wd 10 -sb 10 10 -dt 1 -tss LobattoIIIC3 LobattoIIIC3 --exchange-substeps -o convergence-studies/highorder_LIIIC_10.csv'
38+
runs-on: ubuntu-latest
39+
defaults:
40+
run:
41+
working-directory: ./partitioned-heat-conduction
42+
container: precice/precice:nightly
43+
steps:
44+
- name: Checkout Repository
45+
uses: actions/checkout@v4
46+
- name: Install Dependencies
47+
run: |
48+
apt-get -qq update
49+
apt-get -qq install software-properties-common python3-dev python3-pip python3.12-venv git apt-utils pkg-config
50+
add-apt-repository -y ppa:fenics-packages/fenics
51+
apt-get -qq install --no-install-recommends fenics
52+
rm -rf /var/lib/apt/lists/*
53+
- name: Create venv
54+
run: |
55+
./make-venv.sh
56+
- name: Activate venv
57+
# see https://stackoverflow.com/a/74669486
58+
run: |
59+
. .venv/bin/activate
60+
echo PATH=$PATH >> $GITHUB_ENV
61+
- name: Run tutorial
62+
run: |
63+
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{matrix.experiment.args}}
64+
- name: Store results
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: partitioned-heat-conduction-convergence ${{ matrix.experiment.name }}
68+
path: |
69+
# working directory is ignored by actions/upload-artifact
70+
./partitioned-heat-conduction/convergence-studies
71+
merge:
72+
runs-on: ubuntu-latest
73+
needs: run_experiments
74+
steps:
75+
- name: Merge results
76+
uses: actions/upload-artifact/merge@v4
77+
with:
78+
name: partitioned-heat-conduction-convergence
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Run perpendicular-flap experiments
2+
on:
3+
push:
4+
branches:
5+
- use-github-actions-for-diss-cases
6+
7+
jobs:
8+
run_experiments:
9+
strategy:
10+
matrix:
11+
experiment:
12+
- name: Figure 6.6
13+
args: 'fig6_6_config.csv -o studies/fig6_6.csv'
14+
- name: Figure 6.7
15+
args: 'fig6_7_config.csv -o studies/fig6_7.csv'
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash
20+
working-directory: ./perpendicular-flap
21+
# built using tools/docker/fenics-openfoam/Dockerfile
22+
container: benjaminrodenberg/fenics-openfoam
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v4
26+
- name: Update $HOME
27+
run: echo "HOME=/root" >> "$GITHUB_ENV"
28+
- name: Activate OpenFOAM # From https://github.com/gerlero/setup-openfoam/blob/68e0bf96c7f2aac1a100291a5d61fff934a472a8/action.yml#L54-L69
29+
run: |
30+
old_path="$PATH"
31+
source /usr/lib/openfoam/openfoam2412/etc/bashrc || true
32+
33+
for var in "${!WM_@}"; do
34+
echo "$var=${!var}" >> "$GITHUB_ENV"
35+
done
36+
37+
for var in "${!FOAM_@}"; do
38+
echo "$var=${!var}" >> "$GITHUB_ENV"
39+
done
40+
41+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
42+
43+
echo "${PATH/%:$old_path}" >> "$GITHUB_PATH"
44+
- name: Install Dependencies
45+
run: |
46+
apt-get -qq update
47+
apt-get -qq install python3-dev python3-pip python3.12-venv git apt-utils pkg-config
48+
rm -rf /var/lib/apt/lists/*
49+
- name: Create venv
50+
run: |
51+
./make-venv.sh
52+
- name: Create venv for solid-fenics
53+
run: |
54+
cd solid-fenics
55+
python3 -m venv --system-site-packages .venv
56+
. .venv/bin/activate
57+
pip install -r requirements.txt
58+
- name: Run tutorial
59+
run: |
60+
. .venv/bin/activate
61+
python3 doConvergenceStudy.py precice-config-template.xml --silent --executor Github ${{matrix.experiment.args}}
62+
- name: Store results
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: perpendicular-flap ${{ matrix.experiment.name }}
66+
path: |
67+
# working directory is ignored by actions/upload-artifact
68+
./perpendicular-flap/studies
69+
merge:
70+
runs-on: ubuntu-latest
71+
needs: run_experiments
72+
steps:
73+
- name: Merge results
74+
uses: actions/upload-artifact/merge@v4
75+
with:
76+
name: perpendicular-flap

oscillator-overlap/fig6_2a_config_small.csv

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)