|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#include <view.h>
Data Fields | |
| char * | expr |
| scalar | s |
This module defines functions which compute various graphical representations ("drawings") of Basilisk fields, including reconstructed Volume-Of-Fluid facets and colorscale representations of cross-sections of scalar fields. These representations are rendered using OpenGL and can be saved in various formats (PPM, Gnuplot, OBJ, KML, PDF, SVG etc.).
In contrast with other Basilisk modules, this module relies on additional libraries which needs to be installed and linked with the Basilisk program. See [INSTALL::visualisation]() for instructions.
A simple example would look like:
The clear() function resets the image, draw_vof() and box() add two graphical representations and save() saves the resulting image in PPM format. See User functions for a detailed documentation.
The resulting program needs to be linked with the appropriate libraries. This can be done automatically using something like:
or manually using e.g.:
We include the various helper functions defined either by the system or by the Basilisk libraries in gl/.
The cache has a maximum size and least-used expressions are discarded first.