65 display (
"squares (color = 'omega', spread = -1);");
void display(const char *commands, bool overwrite=false)
scalar f[]
The primary fields are:
scalar * tracers
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).
void event_defaults(void)
Here we set the default boundary conditions for the streamfunction.
void event_velocity(void)
At every timestep we update the streamfunction field by solving a Poisson equation with the updated ...
scalar omega[]
We allocate the vorticity field , the streamfunction field and a structure to store the statistics o...
Information about the convergence of the solver is returned in a structure.
#define poisson(...)
Finally, we overload the poisson() function called by [two-phase.h]() with our new function.