-
Notifications
You must be signed in to change notification settings - Fork 8
170 lines (152 loc) · 12.4 KB
/
test_run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Run test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
APECSS_DIR: ${{github.workspace}}
jobs:
macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Configure Python
run: |
python -m pip install numpy
python -m pip install matplotlib
- name: Configure lib
run: cmake -S ${{github.workspace}}/lib -B ${{github.workspace}}/lib -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build lib
run: cmake --build ${{github.workspace}}/lib --config ${{env.BUILD_TYPE}}
- name: Configure acoustic emitter
run: cmake -S ${{github.workspace}}/examples/acousticemitter/build -B ${{github.workspace}}/examples/acousticemitter/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build acoustic emitter
run: cmake --build ${{github.workspace}}/examples/acousticemitter/build --config ${{env.BUILD_TYPE}}
- name: Run acoustic emitter (planar)
run: ${{github.workspace}}/examples/acousticemitter/build/acousticemitter_apecss -options ${{github.workspace}}/examples/acousticemitter/planar.apecss -tend 0.5 -fa 1e3 -dpa 1e6
- name: Run acoustic emitter (spherical)
run: ${{github.workspace}}/examples/acousticemitter/build/acousticemitter_apecss -options ${{github.workspace}}/examples/acousticemitter/spherical.apecss -tend 4.0e-3 -fa 1500 -dpa 1
- name: Configure bubble binary bubble interaction
run: cmake -S ${{github.workspace}}/examples/binaryinteraction/build -B ${{github.workspace}}/examples/binaryinteraction/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build bubble binary bubble interaction
run: cmake --build ${{github.workspace}}/examples/binaryinteraction/build --config ${{env.BUILD_TYPE}}
- name: Run bubble binary bubble interaction
run: ${{github.workspace}}/examples/binaryinteraction/build/binaryinteraction_apecss -options ${{github.workspace}}/examples/binaryinteraction/run.apecss -freq 15.7e3 -amp -120e3 -tend 7.5e-4
- name: Configure bubble with gas-temperature model
run: cmake -S ${{github.workspace}}/examples/gastemperature/build -B ${{github.workspace}}/examples/gastemperature/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build bubble with gas-temperature model
run: cmake --build ${{github.workspace}}/examples/gastemperature/build --config ${{env.BUILD_TYPE}}
- name: Run bubble with gas-temperature model
run: ${{github.workspace}}/examples/gastemperature/build/gastemperature_apecss -options ${{github.workspace}}/examples/gastemperature/run.apecss -freq 20e3 -amp 70e3 -tend 0.001
- name: Configure laser-induced cavitation
run: cmake -S ${{github.workspace}}/examples/laserinducedcavitation/build -B ${{github.workspace}}/examples/laserinducedcavitation/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build laser-induced cavitation
run: cmake --build ${{github.workspace}}/examples/laserinducedcavitation/build --config ${{env.BUILD_TYPE}}
- name: Run laser-induced cavitation
run: ${{github.workspace}}/examples/laserinducedcavitation/build/lic_apecss -options ${{github.workspace}}/examples/laserinducedcavitation/run.apecss -tend 12e-6
- name: Configure Rayleigh collapse
run: cmake -S ${{github.workspace}}/examples/rayleighcollapse/build -B ${{github.workspace}}/examples/rayleighcollapse/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build Rayleigh collapse
run: cmake --build ${{github.workspace}}/examples/rayleighcollapse/build --config ${{env.BUILD_TYPE}}
- name: Run Rayleigh collapse (simple)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/simple.apecss -tend 1
- name: Run Rayleigh collapse (cylindrical)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/cylindrical.apecss -tend 5e-4
- name: Run Rayleigh collapse (with emissions) and check results
run: |
${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/emissions.apecss -tend 0.2 -resultsdir ${{github.workspace}}/examples/rayleighcollapse/
python ${{github.workspace}}/examples/rayleighcollapse/plot_result_emissions.py ${{github.workspace}}/examples/rayleighcollapse/
- name: Run Rayleigh collapse (shock)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/shock.apecss -tend 0.11
- name: Configure ultrasound
run: cmake -S ${{github.workspace}}/examples/ultrasound/build -B ${{github.workspace}}/examples/ultrasound/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build ultrasound
run: cmake --build ${{github.workspace}}/examples/ultrasound/build --config ${{env.BUILD_TYPE}}
- name: Run ultrasound (simple)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/lipidcoated_simple.apecss -freq 2.9e6 -amp 130e3 -tend 2e-6
- name: Run ultrasound (lipid-coated)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/lipidcoated_emissions.apecss -tend 11e-6 -freq 1e6 -amp 600e3
- name: Run ultrasound (sonoluminescence)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/sonolum_emissions.apecss -tend 40e-6 -freq 23.5e3 -amp 145e3
- name: Run ultrasound (Kelvin-Voigt)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/kelvinvoigt.apecss -tend 6e-6 -freq 1e6 -amp 3e6
- name: Run ultrasound (Zener)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/zener.apecss -tend 5e-6 -freq 1e6 -amp 1e6
- name: Run ultrasound (Oldroyd-B)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/oldroydb.apecss -tend 3e-6 -freq 3e6 -amp 400e3
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Configure Python
run: |
python -m pip install numpy
python -m pip install matplotlib
- name: Configure lib
run: cmake -S ${{github.workspace}}/lib -B ${{github.workspace}}/lib -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build lib
run: cmake --build ${{github.workspace}}/lib --config ${{env.BUILD_TYPE}}
- name: Configure acoustic emitter
run: cmake -S ${{github.workspace}}/examples/acousticemitter/build -B ${{github.workspace}}/examples/acousticemitter/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build acoustic emitter
run: cmake --build ${{github.workspace}}/examples/acousticemitter/build --config ${{env.BUILD_TYPE}}
- name: Run acoustic emitter (planar)
run: ${{github.workspace}}/examples/acousticemitter/build/acousticemitter_apecss -options ${{github.workspace}}/examples/acousticemitter/planar.apecss -tend 0.5 -fa 1e3 -dpa 1e6
- name: Run acoustic emitter (spherical)
run: ${{github.workspace}}/examples/acousticemitter/build/acousticemitter_apecss -options ${{github.workspace}}/examples/acousticemitter/spherical.apecss -tend 4.0e-3 -fa 1500 -dpa 1
- name: Configure bubble binary bubble interaction
run: cmake -S ${{github.workspace}}/examples/binaryinteraction/build -B ${{github.workspace}}/examples/binaryinteraction/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build bubble binary bubble interaction
run: cmake --build ${{github.workspace}}/examples/binaryinteraction/build --config ${{env.BUILD_TYPE}}
- name: Run bubble binary bubble interaction
run: ${{github.workspace}}/examples/binaryinteraction/build/binaryinteraction_apecss -options ${{github.workspace}}/examples/binaryinteraction/run.apecss -freq 15.7e3 -amp -120e3 -tend 7.5e-4
- name: Configure bubble with gas-temperature model
run: cmake -S ${{github.workspace}}/examples/gastemperature/build -B ${{github.workspace}}/examples/gastemperature/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build bubble with gas-temperature model
run: cmake --build ${{github.workspace}}/examples/gastemperature/build --config ${{env.BUILD_TYPE}}
- name: Run bubble with gas-temperature model
run: ${{github.workspace}}/examples/gastemperature/build/gastemperature_apecss -options ${{github.workspace}}/examples/gastemperature/run.apecss -freq 20e3 -amp 70e3 -tend 0.001
- name: Configure laser-induced cavitation
run: cmake -S ${{github.workspace}}/examples/laserinducedcavitation/build -B ${{github.workspace}}/examples/laserinducedcavitation/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build laser-induced cavitation
run: cmake --build ${{github.workspace}}/examples/laserinducedcavitation/build --config ${{env.BUILD_TYPE}}
- name: Run laser-induced cavitation
run: ${{github.workspace}}/examples/laserinducedcavitation/build/lic_apecss -options ${{github.workspace}}/examples/laserinducedcavitation/run.apecss -tend 12e-6
- name: Configure Rayleigh collapse
run: cmake -S ${{github.workspace}}/examples/rayleighcollapse/build -B ${{github.workspace}}/examples/rayleighcollapse/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build Rayleigh collapse
run: cmake --build ${{github.workspace}}/examples/rayleighcollapse/build --config ${{env.BUILD_TYPE}}
- name: Run Rayleigh collapse (simple)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/simple.apecss -tend 1
- name: Run Rayleigh collapse (cylindrical)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/cylindrical.apecss -tend 5e-4
- name: Run Rayleigh collapse (with emissions) and check results
run: |
${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/emissions.apecss -tend 0.2 -resultsdir ${{github.workspace}}/examples/rayleighcollapse/
python ${{github.workspace}}/examples/rayleighcollapse/plot_result_emissions.py ${{github.workspace}}/examples/rayleighcollapse/
- name: Run Rayleigh collapse (shock)
run: ${{github.workspace}}/examples/rayleighcollapse/build/rayleigh_apecss -options ${{github.workspace}}/examples/rayleighcollapse/shock.apecss -tend 0.11
- name: Configure ultrasound
run: cmake -S ${{github.workspace}}/examples/ultrasound/build -B ${{github.workspace}}/examples/ultrasound/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build ultrasound
run: cmake --build ${{github.workspace}}/examples/ultrasound/build --config ${{env.BUILD_TYPE}}
- name: Run ultrasound (simple)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/lipidcoated_simple.apecss -freq 2.9e6 -amp 130e3 -tend 2e-6
- name: Run ultrasound (lipid-coated)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/lipidcoated_emissions.apecss -tend 11e-6 -freq 1e6 -amp 600e3
- name: Run ultrasound (sonoluminescence)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/sonolum_emissions.apecss -tend 40e-6 -freq 23.5e3 -amp 145e3
- name: Run ultrasound (Kelvin-Voigt)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/kelvinvoigt.apecss -tend 6e-6 -freq 1e6 -amp 3e6
- name: Run ultrasound (Zener)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/zener.apecss -tend 5e-6 -freq 1e6 -amp 1e6
- name: Run ultrasound (Oldroyd-B)
run: ${{github.workspace}}/examples/ultrasound/build/ultrasound_apecss -options ${{github.workspace}}/examples/ultrasound/oldroydb.apecss -tend 3e-6 -freq 3e6 -amp 400e3