Top Banner
| Workflow, configuration data and graphic user interface Aurélie Koch - Manuel Weberndorfer 2019 - 01 - 24 1 BASEMENT Anwendertreffen
20

Workflow, configuration data and graphic user interface

Apr 15, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Workflow, configuration data and graphic user interface

|

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

|

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

|

BASEMENT main features

1 Linux only

vs

BM v2.x BM v3.x

3BASEMENT Anwendertreffen

Page 4: Workflow, configuration data and graphic user interface

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

{ "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

|

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

|

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

|

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

|

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

|

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

|

Thank you

Questions? 20BASEMENT Anwendertreffen