Skip to content

Fortran mesh Library, based on the Hierarchical Array-based Half-facet Data Structure by X. Zhao et al, for representation and multilevel refinement of 3D tetrahedral meshes.

Notifications You must be signed in to change notification settings

Kingdageek/TetMeshF90

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

TetMeshF90

Fortran Mesh Library, based on the Hierarchical Array-based Half-facet Data Structure by X. Zhao et al, for representation and multilevel refinement of 3D tetrahedral meshes.

This library was developed as part of my thesis for an M.Sc. in Material Science & Engineering at the University of Kiel titled Testing and Extension of Multigrid Finite Element Method (FEM) Code: Implementation of volume meshing with tetrahedrons and mesh refinement. As such, it's still experimental software. The underlying mesh data structure is based on the work published in these two papers:

  • V. Dyedov, N. Ray, D. Einstein, and X. Jiao, “AHF: Array-based half-facet data structures for mixed-dimensional and non-manifold meshes . AHF: Array-based Half-Facet Data Structure for Mixed-Dimensional and Non-manifold Meshes,” no. May 2014, 2013.
  • X. Zhao, R. Conley, N. Ray, V. S. Mahadevan, and X. Jiao, “Conformal and non-conformal adaptive mesh refinement with hierarchical array-based half-facet data structures,” Procedia Eng., vol. 124, pp. 304–316, 2015, doi: 10.1016/j.proeng.2015.10.141.

While the library is full of helpful comments, you have to read at least the description of the hierarchical array-based half-facet data structure in the second paper by X. Zhao et al to understand the implementation.

The library is modular and provides functions and subroutines that can be used to perform Adaptive Mesh Refinement for tetrahedral meshes.

Current Features

The library can be currently used to:

  • Represent an arbitrary conformal mesh of tetrahedrons
  • Perform Uniform and Adaptive Mesh Refinement (Each Tetrahedron is regularly refined - 8 sub-tetrahedrons produced - red refinement based on J. Bey's algorithm)
  • Track elements, nodes, and hanging nodes per level
  • Generate files for use in computation say for a FEM procedure: can generate elements file per level, nodes file, hanging nodes file.
  • Generate .vtu files for mesh visualization using ParaView
  • Locate boundary nodes
  • Retrieve adjacency information: elements directly abutting the faces of an element can be retrieved, every element around an element can be retrieved, every element around an edge can be retrieved, and lastly every large neighbour element one level higher than an element's level can also be retrieved.

Restrictions

These restrictions are imposed:

  • The initial, arbitrary, coarse mesh must be a conformal and manifold 3D mesh of tetrahedrons
  • There cannot be more than one hanging node per shared edge (or face) of an element. This is the 1-irregularity index rule. This is automatically enforced during mesh refinement and allows for the generation of graded meshes

Use

You have to create your own FORTRAN programs for what you want to implement and then use the procedures in the library to represent the meshes and refine them. Also, compile the library into your program to run. For how to do this, see the src/regular_tet.f90 file.

Also, take a look at the BaseMesh structure in the src/MeshLib.f90 file, for an overview of all the procedures available.

About

Fortran mesh Library, based on the Hierarchical Array-based Half-facet Data Structure by X. Zhao et al, for representation and multilevel refinement of 3D tetrahedral meshes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published