Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
output.h File Reference

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
 

Macro Definition Documentation

◆ output_ppm

#define output_ppm (   ...)
Value:
do { \
static OutputPPMGPU _display = {0}; \
} while (0)
int x
Definition common.h:76

Definition at line 270 of file output.h.

Function Documentation

◆ key_callback()

static void key_callback ( GLFWwindow window,
int  key,
int  scancode,
int  action,
int  mods 
)
static

Definition at line 44 of file output.h.

References Display, and x.

◆ output_ppm_gpu()

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] = {{X0Y0}, {X0 + L0Y0 + 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

Definition at line 68 of file output.h.

References Dimensions, L0, ivec::x, X0, ivec::y, and Y0.

Variable Documentation

◆ [struct]

struct { ... } Display

Referenced by key_callback().

◆ paused

bool paused

Definition at line 41 of file output.h.

◆ step

bool step

Definition at line 41 of file output.h.