vector g[]
We store the combined pressure gradient and acceleration field in g*.
void centered_gradient(scalar p, vector g)
static void correction(double dt)
void(* scalar_clone)(scalar, scalar)
void event_advection_term(void)
We make heavy use of the event inheritance mechanism.
void event_acceleration(void)
Event: acceleration (i++)
vector ab
After the advection and diffusion terms have been added to , we recover the update by adding the new ...
void event_projection(void)
The projection step 3 is also performed by the centered solver.
void event_end_timestep(void)
Step 4 is performed by the centered solver.
trace mgstats project(vector uf, scalar p, const vector alpha=unityf, double dt=1., int nrelax=4)