Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
hex.f90 File Reference

Go to the source code of this file.

Data Types

type  hex::hex_t
 Hexahedron element. More...
 

Modules

module  hex
 Defines a hexahedron element.
 

Functions/Subroutines

subroutine hex::hex_init (this, id, p1, p2, p3, p4, p5, p6, p7, p8)
 Create a hexahedron element based upon eight points.
 
subroutine hex::hex_facet_id (this, t, side)
 Return the facet id for face i as a 4-tuple t.
 
subroutine hex::hex_facet_order (this, t, side)
 Return the ordered points for face i as a 4-tuple t.
 
subroutine hex::hex_edge_id (this, t, side)
 Return the edge id for an edge i as a 2-tuple t.
 
real(kind=dp) function hex::hex_diameter (this)
 Compute the diameter of a hexahedron element.
 
type(point_t) function hex::hex_centroid (this)
 Compute the centroid of a hexahedron element.
 
pure logical function hex::hex_equal (this, other)
 Check if two hex elements are equal.
 

Variables

integer, parameter, public hex::neko_hex_npts = 8
 Number of points.
 
integer, parameter, public hex::neko_hex_nfcs = 6
 Number of faces.
 
integer, parameter, public hex::neko_hex_neds = 12
 Number of edges.
 
integer, parameter, public hex::neko_hex_gdim = 3
 Geometric dimension.
 
integer, dimension(4, 6), parameter hex::face_nodes = reshape((/1,5,7,3, 2,6,8,4, 1,2,6,5, 3,4,8,7, 1,2,4,3, 5,6,8,7/), (/4,6/))
 Face node ids.
 
integer, dimension(2, 12), parameter hex::edge_nodes = reshape((/1,2, 3,4, 5,6, 7,8, 1,3, 2,4, 5,7, 6,8, 1,5, 2,6, 3,7, 4,8/), (/2,12/))
 Edge node ids.