34 phi[] = (
d[] +
d[-1] +
d[0,-1] +
d[-1,-1])/4.;
scalar phi[]
The electric potential and the volume charge density are scalars while the permittivity and conductiv...
trace void fractions(scalar Phi, scalar c, vector s={0}, double val=0.)
trace int redistance(scalar phi, int imax=1, double cfl=0.5, int order=3, double eps=1e-6, double band=HUGE, scalar resf={-1}, const double phixxmin=1./HUGE)
void event_init(void)
The initial volume fraction is computed from the initial distance field, which must be initialised by...
void event_properties(void)
The distance function is reinitialised at each timestep.
void levelset_to_vof(scalar d, scalar f)
scalar * tracers
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).