How this calculation works
A minimal graph assigns one height to every point of a planar domain and minimizes the resulting surface area while keeping boundary heights fixed. The graph restriction rules out overhangs and multiple sheets above the same planar location.
P1minimalgraphE(z)=sum_T area_T sqrt(1+|grad z_T|²). Boundaryfixed. Assemblegradient area*G^Tg/sqrt(1+g²) andHessian area*G^T[I/sqrt(1+g²)-gg^T/(1+g²)^(3/2)]G, restrictinterior. NewtonwithArmijo backtracking; verifymeshconnectivity andeverycomponentanchored; fixedboundarygraph functionalstrictconvexmodconstants anchored yieldsunique discreteminimizer. Convergencevia projectedgradientresidual/objectivedecrease; noclaimsoapfilmoverhang. Nonconvergenceunresolved.A worked example
With the prefilled inputs, surfaceArea = 0.7071067811865476. Boundary heights correspond to boundary vertex labels sorted ascending.
Good to know
Convex P1 graph-area minimization over entered planar triangulation with fixed boundary heights. No overhangs,free topology or whole-mesh nonoverlap certification.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
A surface constrained to be a graph
A minimal graph assigns one height to every point of a planar domain and minimizes the resulting surface area while keeping boundary heights fixed. The graph restriction rules out overhangs and multiple sheets above the same planar location.
The calculator approximates that problem on a triangular mesh. Each triangle becomes a planar facet in three dimensions. It is therefore a discrete area-minimization problem, not a general simulation of every soap film that could span a spatial wire.
Compare with the Harmonic mesh parameterization calculator with a unit circle boundary. Minimizegraphsurfacearea withfixedheightboundary; harmonicparameterization solveslinearDirichletenergyforUVcoordinates,notnonlinearsurfacearea.
Mesh and boundary heights
Boundary heights correspond to boundary vertex labels sorted ascending.Enter at most one hundred planar mesh vertices, triangular faces and one height for each inferred boundary vertex in sorted input-index order. Boundary vertices are returned to make that correspondence auditable. Triangles must have nonzero area and fit together without overlapping interiors. Every connected mesh component needs fixed boundary data to remove a free vertical translation.
Interior heights are the unknowns. An initial guess may help the numerical solver, but it must not replace the boundary condition. The figure should distinguish fixed boundary nodes from optimized interior nodes so the solved degrees of freedom are clear.
The true area functional
For a linear height function on a triangle, its surface area is the planar triangle area times the square root of one plus the squared gradient magnitude. Summing this expression gives the finite-element objective.
Using the squared gradient alone gives a harmonic smoothing problem, which generally has a different minimizer. The minimal-surface calculation must use the actual square-root area expression and its derivatives rather than relabel an existing Laplace solve.
Newton steps with controlled descent
Differentiating the area objective gives an interior residual and a positive Hessian under the anchored graph assumptions. A Newton step proposes a height update. Backtracking then shortens that step until the objective decreases sufficiently.
A decreasing objective is helpful but does not by itself prove convergence. The interior gradient residual must also become small. Iteration caps, ill-conditioned linear systems and failed line searches should remain unresolved outcomes rather than being hidden behind the latest plotted surface.
An inclined-plane worked check
On a unit square, prescribe height equal to the x coordinate along the boundary and use a mesh with at least one interior vertex. The affine plane with that same height formula has constant gradient one in the x direction and zero in the y direction.
Its area is the square root of two. The prefilled example instead uses one right triangle with vertices(0,0),(1,0),(0,1) and heights0,1,0, giving area one over square root of two. Because that prefill has no interior vertex, it checks area evaluation rather than Newton optimization; an interior-node plane mesh exercises the optimizer.
Reading the surface and residual
A static mesh figure should retain the triangles and show the fixed boundary heights. A separate residual table can document the solve without overcrowding the main answer. Changing the viewing angle must not obscure the graph's one-height-per-planar-point restriction.
Compare the final area with the starting area and inspect the maximum interior residual. A visually smooth result with a large residual is unfinished. Conversely, small residuals establish a discrete minimizer only on the supplied mesh, not a mesh-independent continuum accuracy bound. The fixed boundary values are matched to sorted boundary vertex indices, not to a guessed traversal order around the mesh. A mismatch can still produce a converged surface for unintended data. The planar triangulation is supplied by the user; this calculation does not generate a mesh, repair intersecting triangles or infer which boundary values belonged to which measured location.
Refinement and physical limits
Refining the mesh can change the area and heights because it enlarges the piecewise-linear approximation space. Agreement across refinements is useful evidence of spatial resolution. The routine checks incidence, connectedness and triangle degeneracy, but it does not certify absence of every possible whole-mesh overlap; users must supply a valid planar triangulation. It does not justify adding arbitrary physical effects absent from the objective.
The model excludes pressure differences, gravity, elastic bending and topology changes. It also cannot represent a lower-area competitor requiring an overhang. Those limits should be stated directly so a graph minimizer is not mistaken for an unrestricted spanning surface. Convex P1 graph-area minimization over entered planar triangulation with fixed boundary heights. No overhangs,free topology or whole-mesh nonoverlap certification.
A few questions, answered
Is this the same as harmonic interpolation?
No; harmonic interpolation minimizes a quadratic gradient energy, while this calculation minimizes the actual graph-area expression.
Can it create an overhang?
No; every planar location has only one height in a graph model.
Why include an interior vertex in the plane test?
Without any interior unknown, the test only evaluates area and does not exercise the optimization.
Does a small residual prove continuum accuracy?
It verifies the discrete stationarity equations; mesh refinement is still needed to assess spatial approximation.