51 for (
int _d = 0;
_d < 1;
_d++)
53 sigma += constant (
d.sigmaf);
73 for (
int _d = 0;
_d < 1;
_d++)
104 double dx = (
d[1] -
d[-1])/2.;
105 double dy = (
d[0,1] -
d[0,-1])/2.;
106 double dxx =
d[1] - 2.*
d[] +
d[-1];
107 double dyy =
d[0,1] - 2.*
d[] +
d[0,-1];
108 double dxy = (
d[1,1] -
d[-1,1] -
d[1,-1] +
d[-1,-1])/4.;
133 for (
int _d = 0;
_d < 1;
_d++)
160 for (
int i = -1;
i <= 1;
i += 2)
161 if (
d[]*(
d[] +
d[
i]) < 0.) {
162 double xi =
d[]/(
d[] -
d[
i]);
163 double nx = ((
d[1] -
d[-1])/2. +
193 if ((
d[] +
d[0,-1])*(
d[-1] +
d[-1,-1]) > 0.)
196 double xi = (
d[-1] +
d[-1,-1])/(
d[-1] +
d[-1,-1] -
d[] -
d[0,-1]);
197 double ny = (
xi*(
d[] -
d[-1] +
d[-1,-1] -
d[0,-1]) +
233 (
d[0,1] +
d[-1,1] -
d[0,-1] -
d[-1,-1])/(4.*
Delta)
double dtmax
The timestep is computed using the CFL condition on the face velocity field.
static number sq(number x)
static int sign(number x)
static number cube(number x)
scalar f[]
The primary fields are:
#define dx(s)
We first define some useful macros, following the notations in Bonneton et al, 2011.
void event_acceleration(void)
Event: acceleration (i++)
void event_stability(void)
Event: stability (i++)
scalar * tracers
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).
void event_defaults(void)
Surface tension is a source term in the right-hand-side of the evolution equation for the velocity of...
static double distance_curvature(Point point, scalar d)