Skip to content

Conversation

@anthony-jourdon
Copy link
Collaborator

PR for surface tag and point location in triangles

This PR contains:

  • A new function extract_facets_mesh_from_tag() in parse_regions_from_gmsh.py to extract surfaces tagged in gmsh as 'triangles' and write .vtu and .bin files with names based on their tag.
  • A new function point_in_triangle() in point_in_tetra.c accompanied with dot() cross() and norm() functions. The function point_in_triangle() is a point location algorithm to check if for a given point and a given triangle both living in 3-space the point is contained inside the triangle.
  • Two files in data/test_ptatin.geo and data/test_ptatin.msh to test the surface mesh extraction.

… to keep compatibility with previous version and revert the start of region and boundary tags to 0.
This function extracts the facets tagged in Gmsh and pass them to discretedomain.Mesh to create an individual mesh of all the facets tagged with the same tag.
Then it writes a .vtu and .bin files.
This function is added to the main() of the file with an automatic detection if the user tagged Surface Physical entities in Gmsh
Add -lm flag in the README file for the compilation of the executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants