You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: You maybe need to add your user pip installations to your path to make the config visualizer findable, i.e.
42
+
## General usage
49
43
50
-
```bash
51
-
export PATH=$PATH:$HOME/.local/bin
52
-
```
44
+
The configuration visualizer comes with a CLI and a GUI, which serve different purposes:
45
+
46
+
* Use the GUI to quickly explore a configuration and change the visualization parameters.
47
+
* Use the CLI to automatriclaly generate graphs from preCICE configuration files or to heavily customize them to suite your own needs.
53
48
54
-
## Usage
49
+
## Using the GUI
55
50
56
-
The config visualizer can be used interactively:
51
+
To open the interactive GUI and optionally pass a path to a configuration file:
57
52
58
53
```bash
54
+
precice-config-visualizer-gui
55
+
# Or directly open the precice-config.xml
59
56
precice-config-visualizer-gui precice-config.xml
60
57
```
61
58
62
-
Alternatively, you can generate a graph and transform it to a readable format, e.g., pdf.
59
+
The application automatically reloads configuration files on change and shows parsing errors at the bottom. This is especially useful for rapid prototyping.
60
+
61
+
Desktop integration is still lacking with commonly used tools for installin python packages.
62
+
If you want your launcher to pick up the tool, you can save [its desktop file](https://raw.githubusercontent.com/precice/config-visualizer/master/data/org.precice.config_visualizer.desktop) manually to the directory `~/.local/share/applications/`. The directory may need to be created first.
63
63
64
-
1. Use `precice-config-visualizer -o config.dot precice-config.xml` to generate the graph in the `.dot` format.
64
+
## Using the CLI
65
65
66
-
2. Use `dot -Tpdf -ofile config.pdf config.dot` to layout the result and output a given format such as pdf.
67
-
This program is part of graphviz.
66
+
Alternatively, you can generate [a DOT graph](https://graphviz.org/doc/info/lang.html) and transform it to a presentable format, e.g., PDF or PNG.
67
+
68
+
1. Use `precice-config-visualizer -o config.dot precice-config.xml` to generate the grpah `config.dot` from the `precice-config.xml` file.
69
+
70
+
2. Use `dot -Tpdf -O config.dot` to layout the graph in `config.dot`, generating a `config.pdf`.
71
+
This program is part of graphviz and there are many more output formats possible.
68
72
69
73
These commands support piping, so you can also execute:
70
74
@@ -86,14 +90,22 @@ For some properties, the following options are available:
86
90
***merged** shows available relations between components without full detail. Multiple edges between components will be merged into a single one.
87
91
***hide** hides all relations.
88
92
89
-
These options are currently available for:
93
+
These options are currently available for many information types, including:
90
94
91
95
***data access** participants using `read-data` and `write-data` to access data on meshes.
92
96
***data exchange** participants `exchange`ing data between meshes.
93
97
***communicators** configured `m2n` connections between participants.
94
98
***coupling schemes** configured `cplscheme`s between participants.
95
99
***mapping schemes** configured `mapping`s between meshes.
96
100
101
+
These options can be visually adjusted in the GUI or passed via command line arguments to the CLI.
102
+
The GUI also provides some presets, which is a one-click setup of many options.
103
+
To see the full list of options, run:
104
+
105
+
```bash
106
+
precice-config-visualizer --help
107
+
```
108
+
97
109
## Examples
98
110
99
111
These examples are based on the elastictube1d example.
0 commit comments