Skip to content

gmsh with 1D lower dimensional elements into a 3D mesh #24174

Answered by jwpeterson
mcacace asked this question in Q&A Meshing
Discussion options

You must be logged in to vote

If I recall correctly, the difficulty with Gmsh meshes is that they can use lower-dimensional elements to specify boundary conditions, in which case those elements should not be added to the mesh. We added some support for this which is related to the lower_dimensional_blocks variable declared in GmshIO::read_mesh():

  // Keep track of lower-dimensional blocks which are not BCs, but
  // actually blocks of lower-dimensional elements.
  std::set<subdomain_id_type> lower_dimensional_blocks;

The internal convention that we created is that if the string "lower_dimensional_block" appears in the file, i.e.

              // The lines in the PhysicalNames section should look like the following:
…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mcacace
Comment options

@GiudGiud
Comment options

@mcacace
Comment options

@jwpeterson
Comment options

Answer selected by GiudGiud
@mcacace
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants