poliflows:gui
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| poliflows:gui [2015/09/04 11:58] – 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 '' | ||
| - | |||
| - | **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 '' | ||
| - | If the '' | ||
| - | |||
| - | FLOWS-GUI ====== | ||
| - | |||
| - | In order to launch the GUI some simple instructions have to be added at the [[poliflows: | ||
| - | |||
| - | usegui=1 | ||
| - | | ||
| - | if not usegui: | ||
| - | scheme.start() | ||
| - | else: | ||
| - | gui = v.MeshViewer(msh, | ||
| - | gui.start() | ||
| - | |||
| - | **NB**: the definition of the '' | ||
poliflows/gui.1441360719.txt.gz · Last modified: (external edit)
