Workflow, configuration data and graphic user interface
Transcript of Workflow, configuration data and graphic user interface
![Page 1: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/1.jpg)
|
Startpage Version 1
Workflow, configuration data and graphic user interface Aurélie Koch - Manuel Weberndorfer
2019 - 01 - 24
1BASEMENT Anwendertreffen
![Page 2: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/2.jpg)
|
Outline
2BASEMENT Anwendertreffen
❏ BASEMENT main features
❏ Modelling procedure
❏ Numerical simulation workflow
❏ Example: Circular dam break
❏ BASEMENT graphical user interface
![Page 3: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/3.jpg)
|
BASEMENT main features
1 Linux only
vs
BM v2.x BM v3.x
3BASEMENT Anwendertreffen
![Page 4: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/4.jpg)
|
Scenario
output.xdmf
MyData.txt
MyMesh.2dmBASEMENT
Numerical simulation
Pre-processing Post-processing
External data Input files
Hydrology andsoil parameters
Topography
Output files
Visualisation
Result data
Modeling procedure
4BASEMENT Anwendertreffen
![Page 5: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/5.jpg)
|
Numerical simulation workflow
BASEMENT
Numerical simulation
1. Pre-simulation
2. Simulation
3. Post-simulation
Graphical user interface (GUI)
5BASEMENT Anwendertreffen
![Page 6: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/6.jpg)
|
Modeling frameworkBASEMENT
setup.h5 results.h5 output.xdmfMyData.txt
MyMesh.2dm
BM_backend
simulation.json
simulation
BM_results
post-simulation
BM_setup
pre-simulation
model.json results.json
text files
.h5 (binary)
executables
.json files
Xdmf/XML Can be visualized in ParaView6BASEMENT Anwendertreffen
![Page 7: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/7.jpg)
|
Re-run and restart a simulationBASEMENT
setup.h5 results.h5 output.xdmfMyData.txt
MyMesh.2dm
BM_backend
simulation.json
simulation
BM_results
post-simulation
restart
re-run
BM_setup
pre-simulation
model.json results.json
text files
.h5 (binary)
executables
.json files
Xdmf/XML Can be visualized in ParaView7BASEMENT Anwendertreffen
![Page 8: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/8.jpg)
|
Comparison of command files
.bmc
BM2.8 BM3.0
simulation.json
model.json
results.json
vs
8BASEMENT Anwendertreffen
![Page 9: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/9.jpg)
|
Example: Circular dam break
Figure 1: Initial conditions for circular dam break
Domain area 40 x 40 m
Dam diameter 5 m
Friction -
Slope -
Boundary conditions Wall
Table 1: Parameters for circular dam break
9BASEMENT Anwendertreffen
![Page 10: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/10.jpg)
|
BMC command file
Test: Circular dam break
10BASEMENT Anwendertreffen
DOMAIN { PHYSICAL_PROPERTIES { gravity = 9.81 viscosity = 1.0 (...)} BASEPLANE_2D { region_name = H_1 GEOMETRY { type = 2dm (...)} HYDRAULICS { INITIAL { index = ( 1 2 ) (...)} (...)} OUTPUT { console_time_step = 100.0 (...)} (...)} (...)}(...)}
.bmc
![Page 11: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/11.jpg)
|
simulation.json
model.json
results.json
JSON configuration files
JavaScript Object Notation
11BASEMENT Anwendertreffen
{ “array”: [1, 2, 3], “boolean”: true, “number”: 123, “object”: { “a”: “b”, “c”: “d”, “e”: “f” }, “string”: “Hello World”}
.json
![Page 12: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/12.jpg)
|
JSON configuration
simulation.json
model.json
results.json
12BASEMENT Anwendertreffen
Test: Circular dam break
{ "SETUP": { "DOMAIN": { "PHYSICAL_PROPERTIES": { "gravity": 9.81 (...)}, "BASEPLANE_2D": { "GEOMETRY": { "mesh_file": "mesh.2dm" (...)}, "HYDRAULICS": { "INITIAL":{ "regions": [{(...)}, {(...)}] (...)} (...)} (...)} (...)} (...)}(...)}
.json
![Page 13: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/13.jpg)
|
Test: Circular dam break
{ "SIMULATION": { "TIME": { "start": 0.0, "end": 3.5, "out": 0.5 }, "OUTPUT": [ "water_surface", "spec_discharge", "water_depth" ] }}
.json
JSON configuration
simulation.json
model.json
results.json
13BASEMENT Anwendertreffen
![Page 14: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/14.jpg)
|
{ "RESULTS": [ { "name": "2_A_run", "format": "xdmf" } ]}
.json
JSON configuration
simulation.json
model.json
results.json
14BASEMENT Anwendertreffen
Test: Circular dam break
![Page 15: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/15.jpg)
|
More features
New documentation:
- Migration guide version 2.8 to 3.0
- Summary of features
15BASEMENT Anwendertreffen
![Page 16: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/16.jpg)
|
The UI guides you through running a simulation with BASEMENT.
BASEMENT Graphical User Interface
Set scenario directory Configure Run
16BASEMENT Anwendertreffen
![Page 17: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/17.jpg)
|
The scenario directory contains all the files for a specific simulation scenario.
Scenario Directory
setup.h5
results.h5
output.xdmf
model.json
results.json
simulation.json
Scenario Directory
17BASEMENT Anwendertreffen
![Page 18: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/18.jpg)
|
Define the scenario parameters using the JSON editors.
BASEMENT Anwendertreffen
Configure setup, simulation, and results
setup.h5model.json
Scenario directory
Tree view of parameters
Parameter values
Errors and warnings
18
![Page 19: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/19.jpg)
|
Run executables using the user interface.
Run setup, simulation, and results
Status output
Error output
Progress (for simulation only)
Run and abort
19BASEMENT Anwendertreffen
![Page 20: Workflow, configuration data and graphic user interface](https://reader034.fdocuments.us/reader034/viewer/2022042201/625888da381a59098e7f9c29/html5/thumbnails/20.jpg)
|
Thank you
Questions? 20BASEMENT Anwendertreffen