Skip to content

Commit 1dded98

Browse files
authored
11 clean up fenics and kratos example (#14)
* Restructure Kratos example * clean-up * Clean up docs * Remove Neumann bc from fenics-example * Move benchmarks to sub-directories * Add benchmarks in new directory * Update github actions * Remove the defaults channel * Add README for each benchmark * Add comments to Kratos mesh conversion * Move files according to joergfunger suggestion * fix github workflow
1 parent dd29f7b commit 1dded98

File tree

158 files changed

+345
-1614726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+345
-1614726
lines changed

.github/workflows/run-benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
- name: run-fenics-benchmarks
4141
shell: bash -l {0}
4242
run: |
43-
cd $GITHUB_WORKSPACE/benchmarks/linear-elasticity-plate-with-hole/
43+
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/FEniCS/
4444
snakemake --use-conda --force --cores 'all'
4545
4646
- name: run-Kratos-benchmarks
4747
shell: bash -l {0}
4848
run: |
49-
cd $GITHUB_WORKSPACE/benchmarks/linear-elasticity-plate-with-hole-Kratos/
49+
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/Kratos/
5050
snakemake --use-conda --force --cores 'all'
5151
5252
#- name: run-optimization-workflow
@@ -66,12 +66,12 @@ jobs:
6666
with:
6767
name: fenics-output
6868
path: |
69-
benchmarks/linear-elasticity-plate-with-hole/data
69+
benchmarks/linear-elastic-plate-with-hole/FEniCS/data
7070
7171
- name: Archive kratos data
7272
uses: actions/upload-artifact@v4
7373
with:
7474
name: kratos-output
7575
path: |
76-
benchmarks/linear-elasticity-plate-with-hole-Kratos/data
76+
benchmarks/linear-elastic-plate-with-hole/Kratos/data
7777
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Infinite plate with hole benchmark in FEniCSx
2+
3+
This directory contains:
4+
5+
* `Snakefile`: A snakefile to run the benchmark.
6+
* `run_simulation.py`: The main script to run the benchmark.
7+
* `create_input_files.py`: A script to create the input files for the benchmark.
8+
* `environment.yml`: A conda environment file to create the environment needed to run the benchmark.
9+
* `parameters_*.json`: A set of parameters files for the benchmark. Each file will create a new instance of the benchmark with different parameters.

benchmarks/linear-elasticity-plate-with-hole/create_input_files.py renamed to benchmarks/linear-elastic-plate-with-hole/FEniCS/create_input_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.to_base_units()
2828
.magnitude
2929
)
30-
# create mesh
30+
# create mesh with gmsh python api
3131
"""
3232
4---------3
3333
| |

0 commit comments

Comments
 (0)