40 phi[] = (
d[] +
d[-1] +
d[0,-1] +
d[-1,-1])/4.;
62 if (
f[] > 1
e-6 &&
f[] < 1. - 1
e-6) {
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...
scalar * interfaces
The height functions are stored in the vector field associated with each VOF tracer.
void event_properties(void)
The distance function is reinitialised at each timestep.
scalar * tracers
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).