We describe the implementation of a topological constraint in finite-element simulations of phase-field models, which ensures path-connectedness of preimages of intervals in the phase-field variable. The constraint takes the form of an energetic penalty for a suitable geodesic distance between all pairs of points in the domain. The main application of our method presented here is a discrete steepest descent of a phase-field version of a bending energy with spontaneous curvature and additional surface area penalty. This leads to disconnected surfaces without our topological constraint but connected surfaces with the constraint. Numerically, our constraint is treated by first transforming the double integral over all pairs of points in the domain to a weighted graph structure and then using Dijkstra’s algorithm to calculate the distance between discrete connected components.
In this article, we describe how to incorporate a topological constraint into a phase-field simulation for certain geometric functionals. In three dimensions (3D), the prototypical example of such an energy is Willmore’s energy, that is, the integral of mean curvature squared, restricted to the class of -manifolds embedded into a bounded domain such that the embedding has surface area and is connected. A number of more general functionals are also admissible – the precise theoretical setting for our methods is presented in section ‘Geometric energies’. It is also possible to use our algorithm in the case of functionals controlling only the perimeter of sets contained in a bounded domain .1,2 To simplify the presentation, we focus here on the 3D case with a control of Willmore’s energy.
Our method to enforce this connectedness constraint for diffuse interfaces is based on a functional introduced in Dondl et al.3 and given by
where are continuous functions such that
for some and
is a geodesic distance function. For a heuristic interpretation of the functional, see section ‘The topological term’ and Figure 1.
The transition profile (green) of a phase field viewed orthogonal to the level sets and typical weight functions for the integral (red) and for the geodesic distance (blue). If the pre-image is connected, then every two points in the pre-image can be connected by a curve of weighted length zero.
Despite the intimidating appearance of the functional as a double integral coupled to a geodesic distance, an efficient algorithm to treat this term can be implemented. We rely on a decomposition into connected components and a Dijkstra or fast marching-type method to approximate the geodesic distance as well as its variation. An important change compared to previous work(e.g. Bonnivard et al.4) is a decomposition due to the fact that the distance function in the discrete setting introduced in section ‘Discretizing the geodesic distance’ is exactly zero among all points in one component. This allows us to transform the double integral into a sum of (usually) only a few terms, which enables us to treat the topology in phase-field problems efficiently, even in 3D and in a setting where not only connectedness between a finite set of fixed points is enforced.
In our simulations, we compute a discrete-time gradient flow (approximately) solving in each time step the minimization problem
where is an admissible phase-field approximation of a geometric functional and is a constant. Note that the case of course provides no penalty for disconnectedness. The parameter is the size of a discrete time step in this minimizing movements scheme.
To the best of our knowledge, this is the first practical method that can incorporate a connectedness constraint for evolving surfaces in 3D into phase-field simulations. This compares to previous work, for example, in Bonnivard et al.4 and Chambolle et al.,5 where Steiner-tree-type problems (i.e. keeping connected a fixed set of points) in two space dimensions were addressed using phase fields.
The article is structured as follows. In section ‘Geometric energies’, we recall precise statements regarding the sharp interface limit of functionals of the form , where is a term controlling a diffuse version of Willmore’s energy as well as the perimeter.6,7 In the following parts of section ‘Preliminaries’, we give a heuristic explanation of our topological functional and briefly review the background material on the distance function on graphs which will be required below. In section ‘The algorithm’, we describe an implementation of the connectedness constraint. In section ‘Numerical results’, we present simulations with and without the topological constraint.
Preliminaries
Geometric energies
Our main numerical example in this article is the treatment of the functional
with and in three ambient space dimensions. For and , this functional approximates the sum of curvature energy and surface area
if is a surface in with mean curvature and area element . If , this can be made rigorous in the sense of convergence, while the situation is more complicated for . We refer the reader to Röger and Schätzle,7 Dondl et al.3 and Bellettini and Mugnai6 for a more detailed account of the convergence results. The curvature energy in (3) has been proposed as a model for the bending of thin membranes.8,9 In such a phase-field computation, the zero level set is usually interpreted as an approximation for the surface .
The simplified geometric model does not control other physical aspects of the membranes. In applications concerning mitochondrial membranes, the surface is typically connected and the boundary of a connected subset of . The phase-field model naturally incorporates the aspect that should be a boundary, and boundary conditions for can be used to ensure that touches only tangentially. In this article, we describe how to furthermore incorporate the connectedness constraint in computational methods for purely geometric models. Note however that we retain the flexibility of phase-field models for other topological transitions (changes of genus).
The topological term
Functions for which is finite are continuous in dimensions due to Sobolev embeddings, so the following notions are well-defined. While, usually, the interface is approximated by the zero level set , it is equivalent to approximate it by the pre-image of any interval , for a precise statement see Dondl and Wojtowytsch10 Theorem 2.20. Thus it is possible to introduce a quantitative notion of path-connectedness of the interface at two points through a geodesic distance function
with a weight satisfying
In particular, if is (path-)connected, then for all . If, however, there are multiple connected components of with a positive spatial separation, then any curve should have a uniformly positive length between and if the two points are in different connected components. We now measure the total disconnectedness of by a double integral of the quantitative path-disconnectedness of at and over the entire interface with respect to both and
where is a bump function
The dependence of on the choices of and , and therefore on and , should be kept in mind, but for notational convenience, we will not make it explicit in the remainder of this article. Along the usual optimal profile recovery sequence for a connected, smooth, embedded manifold, vanishes identically. The bound on enforces a strong mode of convergence for to away from , which suffices for to detect a disconnected interface in the sense that if has more than one connected component, see Dondl et al.3 and Dondl and Wojtowytsch.10 The normalization factor is used since an interface has a width proportional to .
We note that the topological penalty term vanishes when approximating surfaces for small . It therefore does not change the behaviour of in the situations that we are interested in.
The double-well potential depends on only in the sense that must lie strictly between the wells of , and furthermore that multiple topological functionals can be used to keep level sets and connected for different and , for example a level set close to and another one close to . This will be useful for the numerical implementation later.
Discretizing the geodesic distance
Let be a finite connected (undirected) graph with vertices and edges that are assigned weights . The distance of two vertices is defined by the length of the shortest path in the graph connecting and where the length of an edge is measured by the weight , that is
In our finite-element setting, we consider a sequence of quasi-uniform triangulations (or tetrahedralizations in 3D) of our domain with a spatial grid scale for . We furthermore assume that is a given continuous function on . Let now be the dual graph associated with a tesselation , that is, a vertex of corresponds bijectively to a triangle or tet (i.e. tetrahedron) and that if shares an edge (or a face in 3D) with , then the corresponding vertices in are connected by an edge. To such an edge , we associate the weight , where . This gives rise to a discrete distance depending on a phase-field function . We denote by the distance between individual tets/triangles and by the distance between sets.
The tesselations may force a minimal path to zig-zag to connect two points, so the distance on the graph may not approximate the distance function
as , but, due to the non-degeneracy assumptions on the tesselation and the -bound on , we note that the discrete distance is equivalent to in an almost bi-Lipschitz sense uniformly in , that is
for all and such that with suitable constants . This can be seen as follows: If lie in the same tet, then their distance is at most , and the estimate holds trivially. If lie at the boundary of neighbouring tets, then their distance can be essentially zero. The constant must thus be large enough to compensate for the distance of two neighbouring tets. In all other situations, the distance of two points scales roughly like the distance of the tets they lie in. The constants are needed since is only approximately constant on tets and since the tesselation may require some ‘zig-zagging’ of connecting curves. They can be taken close to for small .
Such a modification clearly does not change the effect of the topological term on connectedness as only a non-zero lower bound and a vanishing upper bound are required for the -inequality and -construction, respectively.
As a treatment of the time-step minimization problem will require a variation of the distance as well, so we note that if there exists a unique shortest curve between and then
This identity will be postulated for the procedure below and we approximate the variation of the geodesic distance on the graph as we vary in direction by the discrete term
where is a shortest connecting path between triangles and containing and , respectively. The above variation is in the spirit of Benmansour et al.11 and Bonnivard et al.,4 where it was derived for the fast marching method.
The algorithm
In this section, we describe how to include the topological term in an explicit fashion in a given finite element code. We note that the limiting effect on the time-step size of this explicit treatment is moderate, as the term does not depend on spatial gradients of the phase-field function .
The description is given in the 3D case assuming that the finite-element space corresponds to a tetrahedralization of with grid length scale . Other dimensions and more general basis element shapes can be treated by the same method.
In the setup of the simulation, we create the dual graph corresponding to the finite-element tesselation as described in section ‘Discretizing the geodesic distance’ (with the edge weights left unassigned for the time being, as they will change in each time step). The data structure for vertices of should be designed such that it contains the information about its neighbours, its assigned tetrahedron , its volume and diameter . The implementation is simplified significantly if it also holds a variable for the average of the phase-parameter over which can be updated in every iteration as well as a pointer to a neighbouring tetrahedron to keep track of shortest curves in Dijkstra’s algorithm.
Given a Galerkin space function in time step , do the following.
For all tets in the tesselation, compute the average integral
For each edge in corresponding to two adjacent tets and (i.e. tets sharing a common face), compute its weight as
The second factor can be replaced by a generic grid length scale if the tets are sufficiently uniform. We refer to the associated distance as to emphasize the dependence of the distance (but not graph) on .
Create a list of all interface elements, that is all tets such that
Separate the elements in into connected components , where two tets belong to the same component if . If there is only one connected component, the algorithm can be terminated here as our approximations of both and its variation vanish.
For calculate
For , calculate the component distances as well as the shortest connecting paths between components , , .
The distance is computed as - for any two tets and . The exact choice of and is immaterial, since the distance between two elements in the same component is exactly zero. For any other pair we therefore have
by the triangle inequality. The inverse inequality and invariance to choice of elements follow by exchanging the roles of and .
These computations can be performed using a variant of Dijkstra’s algorithm on , which keeps track of the preceding tet in a shortest connecting path, see Dijkstra12 and Benmansour et al.11
The approximate topological energy can now be computed as
We note that, compared to the original double integral term, this is a major simplification, which is due to the specific choice of vanishing identically on the support of .
Our discrete approximation of the variation of with respect to a finite-element basis function is then given by
This algorithm can be added to a given finite-element implementation. We may compute the time step from to with any scheme
that treats the topological term explicitly. Here is the time-step size and is an explicit, implicit or mixed approximation of the variation . As mentioned in Remark 1, in practical application, it has been proven useful to use the sum of two functionals of type : one, , to keep the portion of the interface close to connected (i.e. with and close to ) and one, to keep the portion of the interface close to connected (i.e. with and close to ).
The high computational efficiency of our algorithm is due to step (7), as in practice this sum is only a sum of components. This is the reason for discretizing the geodesic distance in the specific form of equation (4). Transport-based schemes, for example, proposed in Chambolle et al.5 thus seem not suitable here.
Numerical results
We compare the discrete gradient flow (1) of , where is given by (2) and either or . The parameters in the simulation are , , and .
Topological constraint
As mentioned at the end of section ‘The algorithm’, we implement the connectedness constraint using the sum of two functionals of type , in this specific case with , (in order to keep the part of the transition layer close to the phase connected) and one with , (in order to keep the part of the transition layer close to the phase connected). We then write (with some abuse of notation) from now on .
The functions and in are given by
and
respectively, with , chosen such that and such that .
The choices of parameters can be motivated heuristically. Fix . We picture as a function with a steep transition layer of width on the order of which separates domains and . As the surface separates into two components and , one of the level sets and must already be disconnected. In fact, since changes on a length scale , there exist two connected components of at least one of the surfaces such that
for some which depends on the weight function and as a measure how close can be to (compare Figure 4). The topological energy behaves roughly as
since . Depending on the magnitude of penalty parameter , the topological energy can therefore prevent ‘big’ pieces from disconnecting from . Breaking off small pieces, on the other hand, is energetically unfavourable since every connected component has a minimum curvature energy
see, for example, Dondl and Wojtowytsch.10 If , the same can be noted for very small surfaces, where on average. It is therefore almost always energetically favourable to absorb small amounts of the excess area into a global deformation rather than creating a new connected component for it.
The figures show the sets (in blue) and (in red) as well as the zero-level set of (in grey), cut open for visibility. The picture on the left is taken just before the start of disconnectedness of either the blue or the red set. The image on the right shows the state after connectedness of the zero-level set of was lost (in the simulation without disconnectedness penalty). Clearly, disconnectedness of implies disconnectedness of here, thus there are two connected components of this set. Their connecting geodesic is shown in gold. The functional is zero in the left image (as there is only one connected component of and ). It is non-zero in the right image, as there are two connected components of – the penalization would thus prevent this from occurring.
The parameters then can be chosen according to the following requirements:
in order to bound away from zero, as is increasing with and to ensure that is a meaningful approximation of the interface. These constants can be chosen independently of .
is large enough compared to that can be evaluated in a stable fashion. It seems to suffice to require that , where is the optimal profile from Figure 1.
The strength of the penalization is chosen empirically to prevent topological transitions, the value will depend on the amount of energy gained by a pinch-off. By the heuristics above, the minimal weight which prevents the loss of connectedness does not depend on in a critical way, but may depend on and the initial condition of a given simulation.
Due to the condition , the constant does not strongly depend on the choice of if is bounded away from .
It is simplest to set . We note that any choice prevents the loss of connectedness on mesoscopic or macroscopic scales .
From a computational standpoint, it is advisable to choose as small as possible, since the gradient of the topological term acts on in a somewhat discontinuous fashion as it concentrates on low-dimensional objects. If is taken too large, the time-step size must become small, even if the curvature energy is treated in an implicit fashion. For more numerical experiments illuminating see also Dondl et al.1,2
Finite-element simulations
The computational domain is a discretization of the 3D unit ball by tetrahedral finite elements. Our time-stepping algorithm is a simple first-order fully implicit Euler scheme coupled to an explicit treatment of as described in section ‘The algorithm’. The time step size is given by (with a smaller time step for the first several hundred time steps during the fast convergence to the optimal profile). The higher spatial gradient in the energy is treated using a Ciarlet–Raviart–Monk mixed formulation13,14 with clamped boundary conditions on and on and we note that on our convex domain this variational crime is only a misdemeanor.15
The initial condition is an approximation of the characteristic function of an ellipsoid with principle axes , , and . As seen in Figure 2, in the simulation of the case , without topological constraint, the surface undergoes a pinch-off and the final steady state is given by two spheres of radius . A similar result of pinch-off was observed in Du et al.161
Simulation results for the geometric flow without connectedness penalty. Shown are the initial condition (after some relaxation) at time , an intermediate configuration just before pinch-off at and the final state which was reached at . The colour indicates the mean curvature, the image shows the zero-level set of the phase-field function .
The simulation results for the case , that is, including the topological constraint, are shown in Figure 3. One can clearly see that the pinch-off into two components has been suppressed and a dumbbell-like shape is the final result. We conjecture that this shape is in fact a stationary point of the energy as no further motion was observed in the simulation even on a longer time scale.
Simulation results for the geometric flow with connectedness penalty. The first two images are the same as in Figure 2, since no disconnectedness had occurred yet. The final state in the third image was reached at .
We note that at the pinch-off, the function dips below and thus the start of the interface becoming disconnected is detected by the algorithm. For an illustration see Figure 4.
The equilibrium was reached in 9 h of wall-time using 8 cores of a computer server equipped with two Intel Xeon E5-2690 v4 processors. We note that the central processing unit (CPU)-time spent computing the topological constraint is negligible (<0.1% of the total CPU-time) – the only computational down-side may thus be the aforementioned restriction on the time-step size due to the necessary explicit treatment of . The implicit treatment of is analytically questionable due to the lack of regularity of .
Footnotes
Acknowledgements
WD gratefully acknowledges inspiring discussions with Benedikt Wirth (Münster), Sebastian Reuther (Dresden), and Douglas N. Arnold (Minneapolis).
Author's Note
Stephan Wojtowytsch is now affiliated with Department of Mathematics, Texas A&M University, Texas, USA, email: swoj@tamu.edu.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: PWD was partially supported by the Wissenschaftler-Rückkehrprogramm GSO/CZS. The article processing charge was funded by the Baden-Württemberg Ministry of Science, Research and Art and the University of Freiburg in the funding program Open Access Publishing.
ORCID iD
Patrick Dondl
Notes
References
1.
DondlPWNovagaMWirthBet al. A phase-field approximation of the perimeter under a connectedness constraint. SIAM J Math Anal2019; 51(5): 3902–3920.
DondlPWLemenantAWojtowytschS. Phase field models for thin elastic structures with topological constraint. Arch Ration Mech Anal2017; 223(2): 693–736.
4.
BonnivardMLemenantASantambrogioF. Approximation of length minimization problems among compact connected sets. SIAM J Math Anal2015; 47(2): 1489–1529.
5.
ChambolleAFerrariLADMerletB. A phase-field approximation of the Steiner problem in dimension two. Adv Calc Var2019; 12(2): 157–179.
6.
BellettiniGMugnaiL. Approximation of the Helfrich’s functional via diffuse interfaces. SIAM J Math Anal2010; 42(6): 2402–2433.
7.
RögerMSchätzleR. On a modified conjecture of De Giorgi. Math Z2006; 254(4): 675–714.
8.
HelfrichW. Elastic properties of lipid bilayers – theory and possible experiments. Z Naturforsch C J Biosci1973; 28(11): 693–703.
9.
LussardiLPeletierMARögerM. Variational analysis of a mesoscale model for bilayer membranes. J Fixed Point Theory Appl2014; 15(1): 217–240.
10.
DondlPWWojtowytschS. Uniform convergence of phase-fields for Willmore’s energy. Calc Var PDE2017; 56(4): 1–22.
11.
BenmansourFCarlierGPeyreGet al. Derivatives with respect to metrics and applications: Subgradient marching algorithm. Numer Math2010; 116(3): 357–381.
12.
DijkstraEW. A note on two problems in connexion with graphs. Numer Math1959; 1(1): 269–271.
13.
CiarletPGRaviartP-A. A mixed finite element method for the biharmonic equation. In: Carl de Boor (ed) Mathematical aspects of finite elements in partial differential equations. Elsevier, 1974, pp.125–145.
14.
MonkP. A mixed finite element method for the biharmonic equation. SIAM J Numer Anal1987; 24(4): 737–749.
15.
GerasimovTStylianouASweersG. Corners give problems when decoupling fourth order equations into second order systems. SIAM J Numer AnalJanuary 2012; 50(3): 1604–1623.
16.
DuQLiuCWangX. Simulating the deformation of vesicle membranes under elastic bending energy in three dimensions. J Comput Phys2006; 212(2): 757–777.