Update version number and date #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 cavitation onset (no interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/NI/build -B ${{github.workspace}}/examples/cavitationonset/NI/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (no interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/NI/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (no interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/NI/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/NI/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 | |
- name: Configure cavitation onset (incompressible interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/IC/build -B ${{github.workspace}}/examples/cavitationonset/IC/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (incompressible interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/IC/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (incompressible interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/IC/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/IC/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 -dt_inter 1.0e-09 | |
- name: Configure cavitation onset (quasi-acoustic interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/QA/build -B ${{github.workspace}}/examples/cavitationonset/QA/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (quasi-acoustic interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/QA/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (quasi-acoustic interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/QA/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/QA/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 -dt_inter 1.0e-09 | |
- 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@v4 | |
- 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 cavitation onset (no interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/NI/build -B ${{github.workspace}}/examples/cavitationonset/NI/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (no interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/NI/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (no interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/NI/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/NI/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 | |
- name: Configure cavitation onset (incompressible interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/IC/build -B ${{github.workspace}}/examples/cavitationonset/IC/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (incompressible interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/IC/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (incompressible interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/IC/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/IC/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 -dt_inter 1.0e-09 | |
- name: Configure cavitation onset (quasi-acoustic interactions) | |
run: cmake -S ${{github.workspace}}/examples/cavitationonset/QA/build -B ${{github.workspace}}/examples/cavitationonset/QA/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build cavitation onset (quasi-acoustic interactions) | |
run: cmake --build ${{github.workspace}}/examples/cavitationonset/QA/build --config ${{env.BUILD_TYPE}} | |
- name: Run cavitation onset (quasi-acoustic interactions) | |
run: ${{github.workspace}}/examples/cavitationonset/QA/build/cavitationonset_apecss -options ${{github.workspace}}/examples/cavitationonset/QA/run.apecss -amp -25325 -tend 60.0e-6 -clsize 15 -dt_inter 1.0e-09 | |
- 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 |