|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | OutputPPMGPU |
Macros | |
| #define | output_ppm(...) |
Functions | |
| static void | key_callback (GLFWwindow *window, int key, int scancode, int action, int mods) |
| void | output_ppm_gpu (OutputPPMGPU *display, scalar f, FILE *fp=stdout, int n=N, char *file=NULL, float min=0, float max=0, float spread=5, double z=0, bool linear=false, coord box[2]={{X0, Y0}, {X0+L0, Y0+L0 *Dimensions.y/Dimensions.x}}, scalar mask={-1}, Colormap map=jet, char *opt=NULL, int fps=0) |
Variables | ||
| struct { | ||
| bool paused | ||
| bool step | ||
| } | Display = {false, false} | |
| #define output_ppm | ( | ... | ) |
| void output_ppm_gpu | ( | OutputPPMGPU * | display, |
| scalar | f, | ||
| FILE * | fp = stdout, |
||
| int | n = N, |
||
| char * | file = NULL, |
||
| float | min = 0, |
||
| float | max = 0, |
||
| float | spread = 5, |
||
| double | z = 0, |
||
| bool | linear = false, |
||
| coord | box[2] = {{X0, Y0}, {X0 + L0, Y0 + L0*Dimensions.y/Dimensions.x}}, |
||
| scalar | mask = {-1}, |
||
| Colormap | map = jet, |
||
| char * | opt = NULL, |
||
| int | fps = 0 |
||
| ) |
Automatic boundary conditions seem to conflict with the foreach_region() fragment shader loop below, so we apply them manually if necessary.
This code should be the same as output_ppm, from here ...
... to here.
File output
| struct { ... } Display |
Referenced by key_callback().