FiniteMesh.Cells
— Typestruct Cells{T1, T2}
Cell connectivity information
FiniteMesh.Mesh
— Typestruct Mesh{A, B<:(AbstractMatrix{<:AbstractFloat}), C<:(AbstractMatrix{<:Integer}), D<:(AbstractVector{<:Integer}), E<:(AbstractVector{<:AbstractFloat}), F<:(AbstractArray{<:AbstractFloat, 3})}
Struct of mesh information
FiniteMesh.check_cell_face
— Methodcheck_cell_face(cells, cellFaces, facePoints)
check if cellFaces are regularized, e.g., in a triangle,
- face 1 -> points 1 & 2
- face 2 -> points 2 & 3
- face 3 -> points 3 & 1
FiniteMesh.check_cell_neighbor
— Methodcheck_cell_neighbor(cells, cellNeighbors)
check if cellNeighbors are regularized, e.g., in a triangle,
- face 1 -> neighbor cell 1
- face 2 -> neighbor cell 2
- face 3 -> neighbor cell 3
FiniteMesh.extract_cell
— Methodextract_cell(cells)
Extract cell id list from struct
FiniteMesh.mesh_cell_area_2D
— Methodmesh_cell_area_2D(nodes, cells)
Compute areas of 2D elements
FiniteMesh.mesh_cell_center
— Methodmesh_cell_center(nodes, cells)
Compute central points of elements
FiniteMesh.mesh_cell_face
— Methodmesh_cell_face(cells, edgeCells)
Compute surrounding faces of cell
FiniteMesh.mesh_cell_neighbor_2D
— Methodmesh_cell_neighbor_2D(cells)
Compute neighbor cells of cells
FiniteMesh.mesh_cell_normals_2D
— Methodmesh_cell_normals_2D(points, cells, cellCenter)
Compute unit normal vectors of cells
FiniteMesh.mesh_cell_type
— Methodmesh_cell_type(cellNeighbors)
Compute types of elements
- 0: inner
- 1: boundary
FiniteMesh.mesh_connectivity_2D
— Methodmesh_connectivity_2D(cells, points)
Compute connectivity of 2D unstructured mesh
FiniteMesh.mesh_face_area_2D
— Methodmesh_face_area_2D(points, facePoints)
Compute area of faces
FiniteMesh.mesh_face_center
— Methodmesh_face_center(nodes, edgeNodes)
Compute central points of cell faces
FiniteMesh.mesh_face_connectivity_2D
— Methodmesh_face_connectivity_2D(cells)
Compute affliated points and neighbor cells of faces
FiniteMesh.mesh_face_type
— Methodmesh_face_type(edgeCells, cellType)
Compute type of faces
- 0: inner
- 1: boundary
FiniteMesh.read_mesh
— Methodread_mesh(file)
Read mesh file
- @return cells: node ids inside cells
- @return points: are saved with 3D coordinates (z=0 for 2D case)
FiniteMesh.regularize_cell_face
— Methodregularize_cell_face(cells, cellFaces, facePoints)
regularize affiliated face IDs, e.g., in a triangle,
- face 1 -> points 1 & 2
- face 2 -> points 2 & 3
- face 3 -> points 3 & 1
FiniteMesh.regularize_cell_neighbor
— Methodregularize_cell_neighbor(cells, cellNeighbors)
regularize neighboring cell IDs, e.g., in a triangle,
- face 1 -> neighbor cell 1
- face 2 -> neighbor cell 2
- face 3 -> neighbor cell 3
FiniteMesh.triangulate
— Methodtriangulate(points)
Split rectangular mesh into triangles
- @arg points: structured node coordinates with shape (npoints, ndim)
FiniteMesh.unit_normal
— Methodunit_normal(p1, p2, p3)
3D
FiniteMesh.unit_normal
— Methodunit_normal(p1, p2)
Calculate unit normal vector
2D