2022-03-02 10:30:28 +01:00
|
|
|
# M2 Internship
|
|
|
|
|
|
|
|
"Simulation of the breaking wave flow which generated the 50T concrete block
|
|
|
|
displacement at the Artha breakwater on February 28, 2017"
|
|
|
|
|
|
|
|
[Report](https://kalliope.edgarpierre.fr/latex/m2cce/internship/report.pdf)
|
2022-02-01 09:45:31 +01:00
|
|
|
|
2022-03-29 13:07:12 +02:00
|
|
|
## Configuration
|
|
|
|
|
|
|
|
Each part can be run in their respective directories.
|
|
|
|
```
|
|
|
|
$ python -m processing.swash -h
|
|
|
|
usage: swash.py [-h] [-v] [-c CONFIG]
|
|
|
|
|
|
|
|
Run swash model
|
|
|
|
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-v, --verbose
|
|
|
|
-c CONFIG, --config CONFIG
|
|
|
|
```
|
|
|
|
|
2022-03-29 10:19:33 +02:00
|
|
|
## Bathymetry
|
|
|
|
|
|
|
|
* Insert database in `data/data`
|
|
|
|
* Run `processing.subdomain` to generate 2D data in a smaller domain
|
|
|
|
* Run `processing.projection` to generate a 1D bathymetry
|
|
|
|
|
|
|
|
## Swash
|
|
|
|
|
|
|
|
* Run `processing.swash` to run the Swash model
|
|
|
|
* Run `processing.sws_npz` to convert Swash output to Numpy files
|
|
|
|
* Run `processing.post` to plot wave height at a point, water level at an
|
|
|
|
instant, reflection coefficient at a point
|
|
|
|
* Run `processing.animate` to plot an animation of water level
|
|
|
|
* Run `processing.layers` to plot an animation of layers with flow velocity
|
|
|
|
|
|
|
|
## OlaFlow
|
|
|
|
|
|
|
|
* Run `processing.bathy` to generate stl input files
|
|
|
|
* Run `blockMesh`, `snappyHexMesh -overwrite`, copy `0.org` to `0`, `setFields`
|
|
|
|
* Run `processing.sws_ola` to convert Swash output to OlaFlow input
|