30 display (
"draw_vof (c = 'f');");
39# define rho(f) (clamp(f,0.,1.)*(rho1 - rho2) + rho2)
42# define mu(f) (clamp(f,0.,1.)*(mu1 - mu2) + mu2)
67 2.*(
f[0,1] +
f[0,-1] +
f[1,0] +
f[-1,0]) +
68 f[-1,-1] +
f[1,-1] +
f[1,1] +
f[-1,1])/16.;
72 4.*(
f[-1] +
f[1] +
f[0,1] +
f[0,-1] +
f[0,0,1] +
f[0,0,-1]) +
73 2.*(
f[-1,1] +
f[-1,0,1] +
f[-1,0,-1] +
f[-1,-1] +
74 f[0,1,1] +
f[0,1,-1] +
f[0,-1,1] +
f[0,-1,-1] +
75 f[1,1] +
f[1,0,1] +
f[1,-1] +
f[1,0,-1]) +
76 f[1,-1,1] +
f[-1,1,1] +
f[-1,1,-1] +
f[1,1,1] +
77 f[1,1,-1] +
f[-1,-1,-1] +
f[1,-1,-1] +
f[-1,-1,1])/64.;
92 double ff = (
sf[] +
sf[-1])/2.;
void display(const char *commands, bool overwrite=false)
scalar f[]
The primary fields are:
void fraction_refine(Point point, scalar c)
static void refine_bilinear(Point point, scalar s)
void set_prolongation(scalar s, void(*prolongation)(Point, scalar))
#define rho(f)
The density and viscosity are defined using arithmetic averages by default.
#define sf
We have the option of using some "smearing" of the density/viscosity jump.
void event_defaults(void)
Event: defaults (i = 0)
void event_properties(void)
Event: properties (i++)
void event_tracer_advection(void)
Event: tracer_advection (i++)
vector alphav[]
Auxilliary fields are necessary to define the (variable) specific volume as well as the cell-centere...