Scott A. Mitchell Patrick M. Knupp Unstructured Primal-Dual...

1
DOE ASCR Applied Mathematics Principal Investigators' (PI) Meeting, Rockville, MD, September 11-12, 2017 A Delaunay triangulation (black) and its dual Voronoi polygon mesh (gray). The primal edge σ (red) is dual to the Voronoi edge *σ, which has green and blue half-edges contributed by the adjacent blue and green triangles. The HOT energy depends on |σ| and |*σ|. HOT bounds the discretization error of the system of equations Ax=b given by the DEC formulation of the PDE. The error arises from the diagonalization of the dual Hodge-star operator. The error roughly corresponds to how well- centered the mesh is, how close the dual vertices are to the triangles’ barycenters. We investigate the math and algorithms for primal-dual mesh quality improvement and generation. We advanced simultaneously-good primal-dual mesh quality, resampling nodes for mesh improvement, and dual Voronoi polyhedral mesh generation. Abstract Conclusions and Future Work Motivation Unstructured Primal-Dual Mesh Improvement and Generation Scott A. Mitchell 1 Patrick M. Knupp 2 1 Sandia National Laboratories 2 Dihedral References 1. Meshes Optimized for Discrete Exterior Calculus, tech report 2. A Constrained Resampling Strategy for Mesh Improvement, CGF 3. Disk Density Tuning of a Maximal Random Packing, CGF 4. Spoke-Darts for High-Dimensional Blue Noise Sampling, accepted to TOG 5. A Seed Placement Strategy for Conforming Voronoi Meshing, CCCG 6. VoroCrust Surface Reconstruction Conditions, manuscript 7. VoroCrust: Clipping-Free Voronoi Meshing, manuscript Team members: A. Abdelkader (UMD), M. A. Awad (UC Davis), C. L. Bajaj (UT Austin), M. S. Ebeida (SNL), S. A. English (SNL), P. M. Knupp (Dihedral), A. H. Mahmoud (UC Davis), D. Manocha (UNC), S. A. Mitchell (SNL), S. C. Mousley (UIUC), C. Park (UNC), A. Patney (NVIDIA), J. D. Owens (UC Davis), A. A. Rushdi (SNL), D. Yan (CAS), and L. Wei (HKU). Results Primal-Dual Quality Metric Analysis, Design, and Optimization. We discovered that while the HOT-energy metric may be a reasonable way to evaluate quality, the community practice of directly optimizing it leads to undesirable behavior. In particular, HOT has no barrier to mesh inversion and bad local minima exist. Because of these limitations, the community relies on preconditioning by Lloyd’s iterations, as in Centroidal Voronoi Tesselation (CVT). We designed a metric HOT that overcomes these shortcomings, is unitless and scale invariant, and has better values over non-Delaunay meshes. Our new metric holds the promise of better behavior under optimization, while still reducing discretization error [1]. Primal-dual meshes, otherwise known as well-centered meshes, find use in Discrete Exterior Calculous (DEC) formulations of PDE’s and play a role in compatible discretizations. Mirroring the geometric orthogonality of primal and dual elements, these are most well suited for simulations involving orthogonal phenomena, such as electro- magnetism, and other divergence-curl phenomena. Besides PDE’s, primal-dual meshes are ubiquitous in geometry processing, for applications including the design of self- supporting structures, and the design and modeling of tight packings. Areas in which we need help We seek partnerships with simulation groups based on DEC or polyhedral meshes! The major gap we seek to close is tying our results to simulation practice. In particular, while the theory connects mesh quality to simulation error, we wish to discover how tight this connection is, and whether coarser meshes and worse quality suffice in practice. Dual polyhedral meshes are interesting and useful in and of themselves, outside their role in primal-dual meshes. The cells of a Voronoi tessellation boast many properties that make them useful for polyhedral mesh generation, such as convexity and flat facets. Polyhedral mesh generation finds use in fracture mechanics within the Labs complex, and is now widespread in industry for fluid flow and similar phenomena, e.g. CD-adapco. Polyhedra’s efficiency in filling space (i.e. a low node-to-cell ratio), leads to calculation efficiency. Polyhedra provide flexible element formulations. Areas in which we can help We seek to deliver a general-purpose primal-dual mesh improvement library, useful across many types of next-generation simulations. While the literature has demonstrated some primal-dual mesh optimization, no open-source capabilities exist. We derive math in support of general-purpose dual polyhedral mesh generation. LANL’s Center for Nonlinear Studies has expressed interest in VoroCrust meshes. Sandia’s Engineering Sciences Center has demonstrated fracture mechanics using prior versions of our Voronoi-based meshing. Primal-dual mesh quality analysis, and optimization to reduce discretization error Sampling-based framework for improving multiple mesh qualities simultaneously Dual Voronoi polyhedral mesh generation algorithms, and derivation of mathematically-sufficient conditions for provably correct output We reached a depth of mathematical understanding of primal-dual energy metrics that enabled the design of a new metric that should behave better under optimization. Near- future work is actually optimizing this new metric, tuning for efficiency, and achieving the properties that are the most beneficial in practice. While resampling can produce a well- centered primal-dual mesh, we seek to demonstrate it over energy metrics more closely tied to simulation error. Extending to weighted meshes is challenging: we understand the mathematics of the metric and its gradient with respect to node weights, but an algorithm to simultaneously modify both weights and positions is challenging due to their different units and scales. Besides meshes, we demonstrated building an accurate model of a fiber material. Approach The major strengths we build on are our mathematical depth in computational geometry, sampling, and mesh optimization. For the design and analysis of mesh metrics for quality optimization, we exploit metric properties that make them well-behaved under iterative local mesh optimization. For sampling-based mesh improvement, we exploit that sampling is insensitive to how well behaved a metric is, e.g. no gradients are required, and take advantage of how constraint satisfaction easily supports multiple objectives. For the proof of VoroCrust correctness we exploit the mathematics of local-feature size (lfs) sampling to bound how close the mesh is to the domain boundary. VoroCrust Dual-Polyhedral Meshing. We developed the “VoroCrust” theory and algorithms for polyhedral mesh generation and surface reconstruction [5,6,7]. It works by generating Voronoi cells whose boundaries match a prescribed domain. We discovered sufficient conditions for provably correct meshing and reconstruction, for both smooth manifolds and piecewise linear complexes. Sufficient Conditions for VoroCrust Polyhedral Meshing of Smooth Manifolds VoroCrust produces a polyhedral mesh matching a prescribed set of triangles: The intersection of dual power spheres around three input samples (mesh nodes) produces two primal seeds. The seeds’ Voronoi cells have the input triangle as their common boundary. Wasserstein distance Quality Improvement by Resampling. We demonstrated eliminating obtuse angles so triangles are well-centered. We produced a general framework for local resampling of mesh nodes[2,3,4] Support multiple quality objectives, ensure none degrade. Nodes move randomly within the local feasible space, are inserted and deleted. Locally “satisfice” quality rather than optimize it. Constraints act like barriers. Getting stuck in an undesirable local minimum is possible, but rare. Our “Tuned MPS” material model, with correct fiber-to-epoxy ratio and random locations of fiber strands, gives a more accurate simulation of fracture response [3]. Transverse Strain [%] 0 0.2 0.4 0.6 0.8 1 Transverse Stress [MPa] 0 20 40 60 80 Hexagonal Square Tuned MPS Experimental Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525. Two local minima, both collapse triangles! HOT: 1. Replace formula-based by theory-based extrapolation over non-Delaunay meshes. Energies stay positive, and partial barriers are created. 2. Scaling by 1/area 2 a. removes point “holes” in barriers. b. improves landscape “Horseshoe” Mesh Patch HOT behaves poorly HOT behaves well SAND2017-9545 D @ 2 @ x 2 + @ 2 @ y 2 DEC Discrete Exterior Calculus matrix A Ax = b σ σ = a + b a b HOT(σ )= |σ || σ |W (μ σ σ ) 2 = a 3 |σ | 3 + a|σ | 3 12 + b 3 |σ | 3 + b|σ | 3 12 HOT(σ )= 1 area(N) 2 a 3 |σ | 3 + a|σ | 3 12 + 1 area(N) 2 b 3 |σ | 3 + b|σ | 3 12 Features of HOT: HOT (M(x , y )) !1 as (x , y ) ! P (has inversion barrier) HOT is dimensionless HOT is scale invariant Optimizing HOT collapses triangles! (0,-1) (0,1) (8,0) Input Landscape after 1, before 2 Weighted -sampling is -sampling together with some larger r i = δ lfs(p i ) sample balls, for some constants and δ with δ . Conflict Free. No -radius sphere contains another sample with a larger lfs: 8j 6= i, kp i - p j k≥ min (lfs(p i ), lfs(p j )) . [The smaller-disk condition.] Sampling Conditions. Combining definitions, a conflict-free weighted -sampling with =1/160 and δ =1/20 satisfies the sampling conditions. Theorem (Sampling Conditions are Sucient.) VoroCrust produces a geometrically-close and topologically-correct reconstruction when the sampling conditions are satisfied. Moreover, with δ =8 1/20, mesh ˆ M ! M manifold as ! 0 with Hausdordistance h< 2 δ sin() lfs < 5.0 δ 2 .

Transcript of Scott A. Mitchell Patrick M. Knupp Unstructured Primal-Dual...

  • DOEASCRAppliedMathematicsPrincipalInvestigators'(PI)Meeting,Rockville,MD,September11-12,2017

    A Delaunay triangulation (black) and its dual Voronoi polygon mesh (gray). The primal edge σ (red) is dual to the Voronoi edge *σ, which has green and blue half-edges contributed by the adjacent blue and green triangles.

    The HOT energy depends on |σ| and |*σ|. HOT bounds the discretization error of the system of equations Ax=b given by the DEC formulation of the PDE. The error arises from the diagonalization of the dual Hodge-star operator. The error roughly corresponds to how well-

    centered the mesh is, how close the dual vertices are to

    the triangles’ barycenters.

    Weinvestigatethemathandalgorithmsforprimal-dualmeshqualityimprovementandgeneration.Weadvancedsimultaneously-goodprimal-dualmeshquality,resamplingnodesformeshimprovement,anddualVoronoipolyhedralmeshgeneration.

    Abstract Conclusions and Future Work

    Motivation

    Unstructured Primal-Dual Mesh Improvement and GenerationScott A. Mitchell1

    Patrick M. Knupp2 1Sandia National Laboratories

    2Dihedral

    References1. MeshesOptimizedforDiscreteExteriorCalculus,techreport2. AConstrainedResamplingStrategyforMeshImprovement,CGF3. DiskDensityTuningofaMaximalRandomPacking,CGF4. Spoke-DartsforHigh-DimensionalBlueNoiseSampling,acceptedtoTOG5. ASeedPlacementStrategyforConformingVoronoiMeshing,CCCG6. VoroCrustSurfaceReconstructionConditions,manuscript7. VoroCrust:Clipping-FreeVoronoiMeshing,manuscript

    Teammembers:A.Abdelkader(UMD),M.A.Awad(UCDavis),C.L.Bajaj(UTAustin),M.S.Ebeida(SNL),S.A.English(SNL),P.M.Knupp(Dihedral),A.H.Mahmoud(UCDavis),D.Manocha(UNC),S.A.Mitchell(SNL),S.C.Mousley(UIUC),C.Park(UNC),A.Patney(NVIDIA),J.D.Owens(UCDavis),A.A.Rushdi(SNL),D.Yan(CAS),andL.Wei(HKU).

    ResultsPrimal-DualQualityMetricAnalysis,Design,andOptimization.WediscoveredthatwhiletheHOT-energymetricmaybeareasonablewaytoevaluatequality,thecommunitypracticeofdirectlyoptimizing itleadstoundesirablebehavior.Inparticular,HOThasnobarriertomeshinversionandbadlocalminimaexist.Becauseoftheselimitations,thecommunityreliesonpreconditioningbyLloyd’siterations,asinCentroidalVoronoiTesselation(CVT).

    WedesignedametricHOTthatovercomestheseshortcomings,isunitlessandscaleinvariant,andhasbettervaluesovernon-Delaunaymeshes.Ournewmetricholdsthepromiseofbetterbehaviorunderoptimization,whilestillreducingdiscretizationerror[1].

    Primal-dual meshes, otherwiseknownaswell-centeredmeshes,finduseinDiscreteExteriorCalculous(DEC)formulationsofPDE’sandplayaroleincompatiblediscretizations.Mirroringthegeometricorthogonalityofprimalanddualelements,thesearemostwellsuitedforsimulationsinvolvingorthogonalphenomena,suchaselectro-magnetism,andotherdivergence-curlphenomena.BesidesPDE’s,primal-dualmeshesareubiquitousingeometryprocessing,forapplicationsincludingthedesignofself-supportingstructures,andthedesignandmodelingoftightpackings.

    Areas in which we need helpWeseekpartnershipswithsimulationgroupsbasedonDECorpolyhedralmeshes!Themajorgapweseektocloseistyingourresultstosimulationpractice.Inparticular,whilethetheoryconnectsmeshqualitytosimulationerror,wewishtodiscoverhowtightthisconnectionis,andwhethercoarsermeshesandworsequalitysufficeinpractice.

    Dualpolyhedralmeshesareinterestingandusefulinandofthemselves,outsidetheirroleinprimal-dualmeshes.ThecellsofaVoronoitessellationboastmanypropertiesthatmakethemusefulforpolyhedralmeshgeneration,suchasconvexityandflatfacets.PolyhedralmeshgenerationfindsuseinfracturemechanicswithintheLabscomplex,andisnowwidespreadinindustryforfluidflowandsimilarphenomena,e.g.CD-adapco.Polyhedra’sefficiencyinfillingspace(i.e.alownode-to-cellratio),leadstocalculationefficiency.Polyhedraprovideflexibleelementformulations.

    Areas in which we can helpWeseektodeliverageneral-purposeprimal-dualmeshimprovementlibrary,usefulacrossmanytypesofnext-generationsimulations.Whiletheliteraturehasdemonstratedsomeprimal-dualmeshoptimization,noopen-sourcecapabilitiesexist.

    Wederivemathinsupportofgeneral-purposedualpolyhedralmeshgeneration.LANL’sCenterforNonlinearStudieshasexpressedinterestinVoroCrustmeshes.Sandia’sEngineeringSciencesCenterhasdemonstratedfracturemechanicsusingpriorversionsofourVoronoi-basedmeshing.

    • Primal-dualmeshqualityanalysis,andoptimizationtoreducediscretizationerror• Sampling-basedframeworkforimprovingmultiplemeshqualitiessimultaneously• DualVoronoipolyhedralmeshgenerationalgorithms,and

    derivationofmathematically-sufficientconditionsforprovablycorrectoutput

    Wereachedadepthofmathematicalunderstandingofprimal-dualenergymetricsthatenabledthedesignofanewmetricthatshouldbehavebetterunderoptimization.Near-futureworkisactuallyoptimizingthisnewmetric,tuningforefficiency,andachievingthepropertiesthatarethemostbeneficialinpractice.Whileresamplingcanproduceawell-centeredprimal-dualmesh,weseektodemonstrateitoverenergymetricsmorecloselytiedtosimulationerror.Extendingtoweightedmeshesischallenging:weunderstandthemathematicsofthemetricanditsgradientwithrespecttonodeweights,butanalgorithmtosimultaneouslymodifybothweightsandpositionsischallengingduetotheirdifferentunitsandscales.

    Besidesmeshes,wedemonstratedbuildinganaccuratemodelofafibermaterial.

    ApproachThemajorstrengthswebuildonareourmathematicaldepthincomputationalgeometry,sampling,andmeshoptimization.

    • Forthedesignandanalysisofmeshmetricsforqualityoptimization,weexploitmetricpropertiesthatmakethemwell-behavedunderiterativelocalmeshoptimization.

    • Forsampling-basedmeshimprovement,weexploitthatsamplingisinsensitivetohowwellbehavedametricis,e.g.nogradientsarerequired,andtakeadvantageofhowconstraintsatisfactioneasilysupportsmultipleobjectives.

    • FortheproofofVoroCrustcorrectnessweexploitthemathematicsoflocal-featuresize(lfs)samplingtoboundhowclosethemeshistothedomainboundary.

    VoroCrustDual-PolyhedralMeshing.Wedevelopedthe“VoroCrust”theoryandalgorithmsforpolyhedralmeshgenerationandsurfacereconstruction[5,6,7].ItworksbygeneratingVoronoicellswhoseboundariesmatchaprescribeddomain.

    Wediscoveredsufficientconditionsforprovablycorrect meshingandreconstruction,forbothsmoothmanifoldsandpiecewiselinearcomplexes.Sufficient Conditions for VoroCrust Polyhedral Meshing of Smooth Manifolds

    VoroCrust produces a polyhedral mesh matching a prescribed set of triangles:

    • The intersection of dual power spheres around three input samples (mesh nodes) produces two primal seeds.

    • The seeds’ Voronoi cells have the input triangle as their common boundary.

    Wasserstein distance

    QualityImprovementbyResampling.Wedemonstratedeliminatingobtuseanglessotrianglesarewell-centered.Weproducedageneralframeworkforlocalresamplingofmeshnodes[2,3,4]• Supportmultiplequalityobjectives,ensurenonedegrade.• Nodesmoverandomlywithinthelocalfeasiblespace,areinsertedanddeleted.• Locally“satisfice”qualityratherthanoptimizeit.Constraintsactlikebarriers.• Gettingstuckinanundesirablelocalminimumispossible,butrare.

    Our “Tuned MPS” material model, with correct fiber-to-epoxy ratio and random locations of fiber strands, gives a more accurate simulation of fracture response [3].

    Transverse Strain [%]0 0.2 0.4 0.6 0.8 1

    Tran

    sver

    se S

    tress

    [MPa

    ]

    0

    20

    40

    60

    80 HexagonalSquareTuned MPSExperimental

    SandiaNationalLaboratoriesisamultimissionlaboratorymanagedandoperatedbyNationalTechnologyandEngineeringSolutionsofSandia,LLC,awhollyownedsubsidiaryofHoneywellInternational,Inc.,fortheU.S.DepartmentofEnergy’sNationalNuclearSecurityAdministrationundercontractDE-NA0003525.

    Two local minima, both collapse triangles!

    HOT:

    1. Replace formula-based bytheory-based extrapolation over non-Delaunay meshes.Energies stay positive, and partial barriers are created.

    2. Scaling by 1/area2a. removes point “holes”

    in barriers.b. improves landscape

    “Horseshoe” Mesh PatchHOT behaves poorly

    HOT behaves well

    SAND2017-9545D

    @

    2

    @x

    2+

    @

    2

    @y

    2DEC

    DiscreteExteriorCalculus

    matrix AAx = b

    ⇤� = a+ ba

    b

    September 6, 2017 1 / 1

    HOT(�) = |�|| ⇤ �|W (µ�, µ⇤�)2 =a3|�|3

    +a|�|3

    12+

    b3|�|3

    +b|�|3

    12

    HOT(�) =1

    area(N)2✓a3|�|3

    +a|�|3

    12

    ◆+

    1

    area(N)2✓b3|�|3

    +b|�|3

    12

    Features of HOT:

    HOT (M(x , y)) ! 1 as (x , y) ! P(has inversion barrier)

    HOT is dimensionless

    HOT is scale invariant

    September 6, 2017 1 / 1

    Optimizing HOT collapses triangles!

    (0,-1)

    (0,1)

    (8,0)

    Input

    Landscape after 1, before 2

    • Weighted ✏-sampling is ✏-sampling together with some larger ri = � lfs(pi)sample balls, for some constants ✏ and � with ✏ �.• Conflict Free. No ✏-radius sphere contains another sample with a larger lfs:8j 6= i, kpi � pjk � ✏min (lfs(pi), lfs(pj)) . [The smaller-disk condition.]• Sampling Conditions. Combining definitions, a conflict-free weighted✏-sampling with ✏ = 1/160 and � = 1/20 satisfies the sampling conditions.

    • Theorem (Sampling Conditions are Su�cient.) VoroCrust produces ageometrically-close and topologically-correct reconstruction when the samplingconditions are satisfied. Moreover, with � = 8✏ 1/20, mesh M̂ ! M manifoldas ✏ ! 0 with Hausdor↵ distance h < 2 � sin(✓) lfs < 5.0 �2.