diff --git a/joss.07476/paper.jats/10.21105.joss.07476.jats b/joss.07476/paper.jats/10.21105.joss.07476.jats new file mode 100644 index 000000000..24c947b67 --- /dev/null +++ b/joss.07476/paper.jats/10.21105.joss.07476.jats @@ -0,0 +1,981 @@ + + +
+ + + + +Journal of Open Source Software +JOSS + +2475-9066 + +Open Journals + + + +7476 +10.21105/joss.07476 + +HOHQMesh: An All Quadrilateral/Hexahedral Unstructured +Mesh Generator for High Order Elements + + + +https://orcid.org/0000-0002-8076-0856 + +Kopriva +David A. + + + + + +https://orcid.org/0000-0002-5902-1522 + +Winters +Andrew R. + + +* + + +https://orcid.org/0000-0002-3195-2536 + +Schlottke-Lakemper +Michael + + + + +https://orcid.org/0000-0001-5650-7095 + +Schoonover +Joseph A. + + + + +https://orcid.org/0000-0002-3456-2277 + +Ranocha +Hendrik + + + + + +The Florida State University, Tallahassee, FL, United +States of America + + + + +San Diego State University, San Diego, CA, United States of +America + + + + +Department of Mathematics; Applied Mathematics, Linköping +University, Sweden + + + + +High-Performance Scientific Computing & Centre for +Advanced Analytics and Predictive Sciences, University of Augsburg, +Germany + + + + +Fluid Numerics, Hickory, NC, United States of +America + + + + +Institute of Mathematics, Johannes Gutenberg University +Mainz, Germany + + + + +* E-mail: + + +1 +11 +2024 + +9 +104 +7476 + +Authors of papers retain copyright and release the +work under a Creative Commons Attribution 4.0 International License (CC +BY 4.0) +2024 +The article authors + +Authors of papers retain copyright and release the work under +a Creative Commons Attribution 4.0 International License (CC BY +4.0) + + + +Mesh Generation +Spectral Element Methods +High Order +Unstructured Quadrilateral and Hexahedral Meshes + + + + + + Summary +

HOHQMesh + (David + A. Kopriva, Winters, Schlottke-Lakemper, Schoonover, et al., + 2024) generates unstructured all-quadrilateral and hexahedral + meshes with high order boundary information for use with spectral + element solvers. Model input by the user requires only an optional + outer boundary curve plus any number of inner boundary curves that are + built as chains of simple geometric entities (lines and circles), user + defined equations, and cubic splines. Inner boundary curves can be + designated as interface boundaries to force element edges along them. + Quadrilateral meshes are generated automatically with the mesh sizes + guided by a background grid and the model, without additional input by + the user. Hexahedral meshes are generated by extrusions of a + quadrilateral mesh, including sweeping along a curve, and can follow + bottom topography. The mesh files that HOHQMesh generates include high + order polynomial interpolation points of arbitrary order.

+
+ + Statement of Need +

Spectral element methods (SEMs) use multiple degrees of freedom + within elements to achieve high order accuracy and can be applied to + complex geometries. Details of SEMs can be found in the books by + Deville, Fischer and Mund + (Deville + et al., 2002), Karniadakis and Sherwin + (Karniadakis + & Sherwin, 2005), Hesthaven and Warburton + (Hesthaven + & Warburton, 2008), and Kopriva + (David + A. Kopriva, 2009).

+

Open source spectral element packages now exist to compute + solutions of a wide range of equations such as the compressible and + incompressible Navier-Stokes, ideal and visco-resistive + magnetohydrodynamics, Euler gas dynamics, and shallow water equations, + and include Nektar++ + (Cantwell + et al., 2015), SemTex + (Blackburn + et al., 2019), Sem2dPack + (Ampuero, + 2012), SPECFEM + (Martire + et al., 2021), Nek5000 + (Fischer + et al., 2008), HORSES3D + (Ferrer + et al., 2023), FLEXI + (Krais + et al., 2021), FLUXO + (Rueda-Ramirez + et al., 2017), Trixi.jl + (Ranocha + et al., 2022; + Schlottke-Lakemper + et al., 2021), and NUMA + (Giraldo + et al., 2013).

+

The features of SEMs are now well-established. Like low order + finite element methods, they can be applied to general geometries, but + have exponential convergence in the polynomial approximation order. + Discontinuous Galerkin (DGSEM) versions applied to hyperbolic problems + have exponentially convergent dissipation and dispersion errors + (Ainsworth, + 2004), making them well suited for wave propagation problems. + Discontinuous Galerkin SEMs are also especially suitable when material + discontinuities are present. Approximations exist for high order + quadrilateral/hexahedral and triangle/tetrahedral elements.

+

What some are now calling “classical” spectral element methods use + tensor product bases on quadrilateral or hexahedral meshes. These + bases lead to very efficient implementations and have high order + quadratures that can be used to approximate the integrals found in + weak forms of the equations. Of the widely available spectral element + packages, SemTex, Sem2dPack, Nek5000, FLEXI, FLUXO, Trixi.jl, and + HORSES3D primarily or exclusively use quadrilateral and hexahedral + meshes.

+

Unfortunately, unstructured meshes for quad/hex elements are + difficult to generate even for low order finite elements + (Bommes + et al., 2013). The advantages not withstanding, a major + impediment to the application of SEMs has been the availability of + appropriate general purpose mesh generation software that can generate + elements of arbitrary order, especially in open-source form. In 2002, + Sherwin & Peiró + (2002) + wrote: “The development of robust unstructured high-order methods is + currently limited by the inability to consistently generate valid + computational meshes for complex geometries without user + intervention.” This has remained true particularly for quadrilateral + and hexahedral meshes. For these reasons, HOHQMesh was developed to + generate all-quadrilateral and extruded hexahedral meshes suitable for + use with spectral element methods. HOHQMesh is a direct quadrilateral + mesher, which generates quadrilateral elements by the subdivision + method of Schneiders + (Schneiders, + 2000) rather than indirectly from a triangular mesh or by + curving a low order mesh. It also adjusts the size and curvature of + the elements based on the length scales in the model, rather than + attempting to modify an existing low-order mesh.

+

Examples of meshes generated by HOHQMesh have been published in + Winters & Kopriva + (2014), + David A. Kopriva & Gassner + (2016), + Acosta-Minoli et al. + (2020), + Manzanero et al. + (2020), + Ersing & Winters + (2024), + Ranocha et al. + (2024), + Marbona et al. + (2024), + plus Wintermeyer + (2018) + and Eriksson + (2024).

+
+ + Features +

HOHQMesh is designed to require minimal input from the user through + the use of a control file. The model defines the geometry in terms of + an outer and one or more inner boundary curves.

+

HOHQMesh features include:

+ + +

Unstructured all-quadrilateral or hexahedral meshes

+
+ +

Isoparametric polynomial boundary approximations of arbitrary + order

+
+ +

Automatic geometry-guided refinement

+
+ +

Optional user specified local refinement

+
+ +

Interior boundaries to separate regions of different + properties

+
+ +

Symmetric mesh generation

+
+ +

Hexahedral meshes from extrusion, rotation, and sweeping of a + quadrilateral mesh, with or without scaling

+
+ +

Bottom topography variations, defined through functional form + or input topography data, for extruded hexahedral meshes with + automatic resolution of topographic features

+
+
+

HOHQMesh is available as an open-source software package under the + MIT license and runs on Linux, macOS, and Windows + (David + A. Kopriva, Winters, Schlottke-Lakemper, Schoonover, et al., + 2024).

+
+ + Examples +

In 1959 the Malpasset dam in France failed and flooded the Reyran + river valley down to the Mediterranean sea + (Hervouet + & Petitjean, + 1999),(Goutal, + 1999). Fig + [fig:Total] shows a + mesh of the valley and a portion of the Mediterranean with 2392 fourth + order elements generated by HOHQMesh in 0.44s on an Apple MacBook Pro + with a 2.3 GHz Quad-Core Intel i7. A zoom of the western portion of + the mesh is shown in Fig. + [fig:zoom]. The + geometry model consists only of an outer boundary, which was specified + as a cubic spline, and no inner boundaries. A control file to generate + this mesh can be found in the + Examples/2D/Malpasset + directory. Fig. + [fig:WaterHeight] + shows a spectral element computation of the water heights using the + mesh of Fig. + [fig:Total] in the + package TrixiShallowWater.jl + (Ersing + et al., 2023), which is part of the Trixi.jl + (Schlottke-Lakemper + et al., 2021) ecosystem.

+ +

Spectral element mesh for the Reyran river valley + including a portion of the Mediterranean + Sea

+ +
+ +

Western portion of the Reyran valley + mesh

+ +
+ +

Spectral element computation of the water heights at + 1985s after the break of the Malpasset + dam

+ +
+

Further examples can be seen in the + gallery. + Control files for 29 examples that collectively include all the + capabilities of the mesher are available in the + Examples + directory, a table of which is presented in the documentation under + Pre-Made + Examples. Finally, 21 meshes are generated and validated as + part of the automated test option.

+
+ + Related Software +

Special purpose quad/hex spectral element grid generators for + simple geometries are openly available as part of some spectral + element solvers. The preprocessor for FLEXI, HOPR, for instance, will + generate Cartesian boxes and meshes built from combinations of + Cartesian boxes, cylinders and spheres.

+

Spectral element solvers that currently can read meshes generated + by HOHQMesh include

+ + +

FLUXO + (Rueda-Ramirez + et al., 2017)

+
+ +

Trixi.jl + (Schlottke-Lakemper + et al., 2021)

+
+ +

HORSES3D + (Ferrer + et al., 2023)

+
+
+

The preprocessor HOPR + (Hindenlang + et al., 2015) can also read and modify quad meshes generated by + HOHQMesh.

+

HOHQMesh can be used with the graphical front end HOHQMesh.jl + (David + A. Kopriva, Winters, Schlottke-Lakemper, & Ranocha, 2024). + It is a wrapper package that augments HOHQMesh with interactive + functionality giving a user the ability to create and visualize the + meshes without the need to compile from source.

+
+ + Acknowledgements +

This work was supported by a grant from the Simons Foundation + (#426393, #961988, David Kopriva). Andrew Winters was funded through + Vetenskapsrådet, Sweden grant agreement 2020-03642 VR. Michael + Schlottke-Lakemper received funding through the DFG (Deutsch + Forschungsgemeinschaft, German Research Foundation) research unit + FOR-5409 (project number 463312734). Michael Schlottke-Lakemper and + Hendrik Ranocha were supported by a DFG individual grant (project + number 528753982). Hendrik Ranocha was supported by the Daimler und + Benz Stiftung (Daimler and Benz foundation, project number + 32-10/22).

+
+ + + + + + + + FischerPaul F + LottesJames W + KerkemeierStefan G + + NEK fast high-order scalable CFD NEK: Fast high-order scalable CFD + 2008 + https://nek5000.mcs.anl.gov + + + + + + KoprivaDavid A + WintersAndrew R + Schlottke-LakemperMichael + SchoonoverJoseph A + RanochaHendrik + + HOHQMesh: An all quadrilateral/hexahedral unstructured mesh generator for high order elements + https://github.com/trixi-framework/HOHQMesh + 2024 + 10.5281/zenodo.13959058 + + + + + + KoprivaDavid A + WintersAndrew R + Schlottke-LakemperMichael + RanochaHendrik + + HOHQMesh.jl: A Julia frontend to the fortran-based HOHQMesh mesh generator for high order elements + https://github.com/trixi-framework/HOHQMesh.jl + 2024 + 10.5281/zenodo.13959071 + + + + + + MartireLéo + MartinR + BrissaudQ + GarciaR F + + SPECFEM2D-DG, an open-source software modelling mechanical waves in coupled solid–fluid systems: the linearized Navier–Stokes approach + Geophysical Journal International + 202108 + 228 + 1 + 0956-540X + https://doi.org/10.1093/gji/ggab308 + 10.1093/gji/ggab308 + 664 + 697 + + + + + + AmpueroJean-Paul + + A spectral element method tool for 2D wave propagation and earthquake source dynamics user’s guide + 2012 + + + + + + SchneidersRobert + + Algorithms for quadrilateral and hexahedral mesh generation + Proceedings of the VKI lecture series on computational fluid dynamic, VKI-LS + 2000 + 4 + + + + + + SherwinS. J. + PeiróJ. + + Mesh generation in curvilinear domains using high-order elements + International Journal for Numerical Methods in Engineering + 2002 + 53 + 1 + https://onlinelibrary.wiley.com/doi/abs/10.1002/nme.397 + 10.1002/nme.397 + 207 + 223 + + + + + + HindenlangF. + BolemannT. + MunzC-D. + + Mesh curving techniques for high order discontinuous Galerkin simulations + IDIHOM: Industrialization of high-order methods-a top-down approach + Springer + 20150101 + 10.1007/978-3-319-12886-3_8 + 133 + 152 + + + + + + GoutalNicole + + The Malpasset dam failure. An overview and test case definition + Proceedings of the 4th CADAM meeting, zaragoza, spain + 1999 + 18 + 19 + + + + + + HervouetJean-Michel + PetitjeanAlain + + Malpasset dam-break revisited with two-dimensional computations + Journal of hydraulic research + Taylor & Francis + 1999 + 37 + 6 + 10.1080/00221689909498511 + 777 + 788 + + + + + + BommesDavid + LévyBruno + PietroniNico + PuppoEnrico + SilvaClaudio + TariniMarco + ZorinDenis + + Quad-mesh generation and processing: A survey + Comput. Graph. Forum + The Eurographs Association & John Wiley & Sons, Ltd. + Chichester, GBR + 201309 + 32 + 6 + 0167-7055 + https://doi.org/10.1111/cgf.12014 + 10.1111/cgf.12014 + 51 + 76 + + + + + + Rueda-RamirezAndres + Schlottke-LakemperMichael + GassnerGregor J. + AstaninAlexander + WintersAndrew R. + + DGSEM for general advection-diffusion equations + 2017 + https://github.com/project-fluxo/fluxo + + + + + + CantwellC. D. + MoxeyD. + ComerfordA. + BolisA. + RoccoG. + MengaldoG. + De GraziaD. + YakovlevS. + LombardJ.-E. + EkelschotD. + JordiB. + XuH. + MohamiedY. + EskilssonC. + NelsonB. + VosP. + BiottoC. + KirbyR. M. + SherwinS. J. + + Nektar++: An open-source spectral/hp element framework + Computer Physics Communications + 2015 + 192 + 0010-4655 + https://www.sciencedirect.com/science/article/pii/S0010465515000533 + 10.1016/j.cpc.2015.02.008 + 205 + 219 + + + + + + BlackburnH. M. + LeeD. + AlbrechtT. + SinghJ. + + Semtex: A spectral element–Fourier solver for the incompressible Navier–Stokes equations in cylindrical or Cartesian coordinates + Computer Physics Communications + 2019 + 245 + 0010-4655 + https://www.sciencedirect.com/science/article/pii/S0010465519301730 + 10.1016/j.cpc.2019.05.015 + 106804 + + + + + + + KraisNico + BeckAndrea + BolemannThomas + FrankHannes + FladDavid + GassnerGregor + HindenlangFlorian + HoffmannMalte + KuhnThomas + SonntagMatthias + MunzClaus-Dieter + + FLEXI: A high order discontinuous galerkin framework for hyperbolic–parabolic conservation laws + Computers & Mathematics with Applications + 2021 + 81 + 0898-1221 + https://www.sciencedirect.com/science/article/pii/S0898122120302029 + 10.1016/j.camwa.2020.05.004 + 186 + 219 + + + + + + Schlottke-LakemperMichael + WintersAndrew R + RanochaHendrik + GassnerGregor J + + A purely hyperbolic discontinuous Galerkin approach for self-gravitating gas dynamics + Journal of Computational Physics + Elsevier + 202106 + 442 + https://arxiv.org/abs/2008.10593 + 10.1016/j.jcp.2021.110467 + 110467 + + + + + + + RanochaHendrik + Schlottke-LakemperMichael + WintersAndrew Ross + FaulhaberErik + ChanJesse + GassnerGregor + + Adaptive numerical simulations with Trixi.jl: A case study of Julia for scientific computing + Proceedings of the JuliaCon Conferences + 2022 + 1 + 1 + https://arxiv.org/abs/2108.06476 + 10.21105/jcon.00077 + 77 + + + + + + + FerrerE. + RubioG. + NtoukasG. + LaskowskiW. + MariñoO. A. + ColomboS. + Mateo-Gabı́nA. + MarbonaH. + Manrique de LaraF. + HuergoD. + ManzaneroJ. + Rueda-Ramı́rezA. M. + KoprivaD. A. + ValeroE. + + A high-order discontinuous Galerkin solver for flow simulations and multi-physics applications + Computer Physics Communications + 2023 + 287 + 0010-4655 + https://www.sciencedirect.com/science/article/pii/S0010465523000450 + 10.1016/j.cpc.2023.108700 + 108700 + + + + + + + GiraldoF. X. + KellyJ. F. + ConstantinescuE. M. + + Implicit-explicit formulations of a three-dimensional nonhydrostatic unified model of the atmosphere (NUMA) + SIAM Journal on Scientific Computing + 2013 + 35 + 5 + https://doi.org/10.1137/120876034 + 10.1137/120876034 + B1162 + B1194 + + + + + + KarniadakisGeorge Em + SherwinSpencer J. + + Spectral/hp element methods for computational fluid dynamics + Oxford University Press + 2005 + 10.1093/acprof:oso/9780198528692.001.0001 + + + + + + HesthavenJ. S. + WarburtonT. + + Nodal discontinuous Galerkin methods: Algorithms, analysis, and applications + Springer + 2008 + 10.1007/978-0-387-72067-8 + + + + + + KoprivaDavid A. + + Implementing spectral methods for partial differential equations + Springer + 200905 + 10.1007/978-90-481-2261-5 + + + + + + DevilleM. O. + FischerP. F. + MundE. H. + + High order methods for incompressible fluid flow + Cambridge University Press + 2002 + + + + + + AinsworthMark + + Dispersive and dissipative behaviour of high order discontinuous Galerkin finite element methods + Journal of Computational Physics + Elsevier + 2004 + 198 + 1 + 10.1016/j.jcp.2004.01.004 + 106 + 130 + + + + + + ErsingPatrick + WintersAndrew R. + Schlottke-LakemperMichael + RanochaHendrik + + Shallow water simulations with trixi.jl + 2023 + https://github.com/trixi-framework/TrixiShallowWater.jl + + + + + + Acosta-MinoliCA + CarmonaPC + Mesa-MazoMJ + + Simulation of pollutants transport in rivers and its effect on the dynamics of a species by a high order method + Journal of physics: Conference series + IOP Publishing + 2020 + 1671 + 10.1088/1742-6596/1671/1/012015 + 012015 + + + + + + + ErsingPatrick + WintersAndrew R + + An entropy stable discontinuous Galerkin method for the two-layer shallow water equations on curvilinear meshes + Journal of Scientific Computing + Springer + 2024 + 98 + 3 + 10.1007/s10915-024-02451-2 + 62 + + + + + + + RanochaHendrik + WintersAndrew R + Schlottke-LakemperMichael + ÖffnerPhilipp + GlaubitzJan + GassnerGregor J + + On the robustness of high-order upwind summation-by-parts methods for nonlinear conservation laws + Journal of Computational Physics + Elsevier + 2024 + 10.1016/j.jcp.2024.113471 + 113471 + + + + + + + WintersAndrew R + KoprivaDavid A + + High-order local time stepping on moving DG spectral element meshes + Journal of Scientific Computing + Springer + 2014 + 58 + 10.1007/s10915-013-9730-z + 176 + 202 + + + + + + KoprivaDavid A + GassnerGregor J + + Geometry effects in nodal discontinuous Galerkin methods on curved elements that are provably stable + Applied Mathematics and Computation + Elsevier + 2016 + 272 + 10.1016/j.amc.2015.08.047 + 274 + 290 + + + + + + ManzaneroJuan + RubioGonzalo + KoprivaDavid A + FerrerEsteban + ValeroEusebio + + Entropy–stable discontinuous Galerkin approximation with summation–by–parts property for the incompressible Navier–Stokes/Cahn–Hilliard system + Journal of Computational Physics + Elsevier + 2020 + 408 + 10.1016/j.jcp.2020.109363 + 109363 + + + + + + + ErikssonGustav + + Efficient discretization of the Laplacian on complex geometries + 2024 + https://arxiv.org/abs/2404.09050 + 10.48550/arXiv.2404.09050 + + + + + + MarbonaHimpu + Rodrı̀guezDaniel + Martı́nez-CavaAlejandro + ValeroEusebio + + Impact of harmonic inflow variations on the size and dynamics of the separated flow over a bump + Phys. Rev. Fluids + American Physical Society + 202405 + 9 + https://link.aps.org/doi/10.1103/PhysRevFluids.9.053901 + 10.1103/PhysRevFluids.9.053901 + 053901 + + + + + + + WintermeyerNiklas + + A novel entropy stable discontinuous Galerkin spectral element method for the shallow water equations on GPUs + Universität zu Köln + 2018 + https://kups.ub.uni-koeln.de/9234/ + + + + +