poliflows:gui
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| poliflows:gui [2015/09/04 11:49] – created cerquaglia | poliflows:gui [2019/05/07 13:23] (current) – removed boman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | POL(I)FLOWS disposes of a very simple graphic user interface, called `viewer`, whose main purpose is to provide real time information about the simulation. | ||
| - | In the following we explain very briefly how viewer looks like, how to interact with it and how to activate or deactivate it (note that the use of the graphic interface obviously slows down the simulation a little bit). | ||
| - | ## How the POL(I)FLOWS-GUI looks like | ||
| - | |||
| - | If the GUI option is activated, when we run the simulation, the GUI opens, and looks something like this: | ||
| - | |||
| - | ; | ||
| - | * the **interaction panel** (in grey, on the right). | ||
| - | |||
| - | In the **results window**, the real time evolution of the problem is shown. Usually the mesh, the nodes and a scalar field are visualized. The field values are reported on a scalar bar on the bottom of the window. | ||
| - | **NB**: for the moment the only scalar field to be visualized is the pressure field, and unfortunately it is impossible to change this option unless by modifying the source code. Nevertheless, | ||
| - | |||
| - | The **interaction panel** allows the user interact with the GUI in some simple ways. | ||
| - | |||
| - | ## How to interact with the POL(I)FLOWS-GUI | ||
| - | |||
| - | The interaction panel is the way the user can interact with the viewer, even if just in a very simple way at this stage. | ||
| - | If we look at the interaction panel, five main interactions can be identified, as highlighted in the picture below: | ||
| - | |||
| - |  on the mass conservation is plot on the command window at the end of each time step. | ||
| - | |||
| - | ### 4 - The ' | ||
| - | |||
| - | The `Infos` panel provides the iser with some very basic information on the simulation, which are, at the moment, the _step_ number and the current _time_ of the simulation. | ||
| - | |||
| - | ### 5 - Visualizing Voronoi cells | ||
| - | |||
| - | In the Particle-Finite Element Method, Voronoi cells are, or could be, employed in many ways. Therefore, it can be useful to visualize their evolution as the computation evolves: this is what the `visualize Voronoi cells` option has been introduced for. | ||
| - | If the `visualize Voronoi cells` option is activated you will observe something like this appearing: | ||
| - | |||
| - | FLOWS-GUI | ||
| - | |||
| - | In order to launch the GUI some simple instructions have to be added at the [[end of the input file|https:// | ||
| - | |||
| - | ```python | ||
| - | usegui=1 | ||
| - | | ||
| - | if not usegui: | ||
| - | scheme.start() | ||
| - | else: | ||
| - | gui = v.MeshViewer(msh, | ||
| - | gui.start() | ||
| - | ``` | ||
| - | |||
| - | **NB**: the definition of the `usegui` variable is not necessary, but it is useful, since you can activate and deactivate the graphic interface, just by setting its value to 1 or 0. | ||
poliflows/gui.1441360161.txt.gz · Last modified: (external edit)
