110 - (
u.
x[] +
u.
x[0,-1])*(
u.
y[] +
u.
y[-1,0])/4. +
120 u.
x[] +=
dt*(
S.x.x[] -
S.x.x[-1,0] +
S.x.y[0,1] -
S.x.y[])/
Delta;
trace double timestep(void)
static number sq(number x)
void event_stability(void)
Event: stability (i++,last)
void event_projection(void)
Event: projection (i++,last)
void event_advance(void)
Event: advance (i++,last)
double nu
The only parameter is the viscosity coefficient .
scalar p[]
The Markers-And-Cells (MAC) formulation was first described in the pioneering paper of Harlow and Wel...
event set_dtmax(i++, last) dtmax
trace mgstats project(vector uf, scalar p, const vector alpha=unityf, double dt=1., int nrelax=4)
Information about the convergence of the solver is returned in a structure.