Skip to content

Use external mesh generators (such as Gmsh) #217

@wdeconinck

Description

@wdeconinck

Motiviation:

  • Define simple geometry in python (such as @barche already implemented)
  • Gmsh has built-in support for curved boundaries (splines)
  • Gmsh generates high-order triangular, tetrahedral, quadrilateral, hexahedral, and hybrid meshes.
  • Having the curved geometric information in coolfluid itself (splines) allows for nice mesh-refinement algorithms

The steps necessary for Gmsh:

  • FindGmsh.cmake file to locate gmsh mesher
  • Meta-mesh generation API
    • Write gmsh geo file
    • system call to gmsh with correct arguments

Using a generic Meta-mesh generation API we will also be able to also support CGAL, or the BlockMesher @barche implemented.

On the same note, we could perhaps also extract a geometry from an already imported mesh.

  • identify surfaces or volumes from regions, splines or NURBS from curved boundaries.
  • write Gmsh geo file

This will allow to remesh a mesh easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions