mesh_t Derived Type

type, public :: mesh_t

type~~mesh_t~~InheritsGraph type~mesh_t mesh_t type~group_t group_t type~group_t->type~mesh_t groups type~node_t node_t type~node_t->type~mesh_t nodes type~element_t element_t type~element_t->type~mesh_t elements
Help


A 2D mesh of elements connecting nodes



Components

TypeVisibility AttributesNameInitial
type(node_t), public, dimension(:), allocatable:: nodes

All nodes in the mesh

type(element_t), public, dimension(:), allocatable:: elements

All elements in the mesh

type(group_t), public, dimension(:), allocatable:: groups

All groups in the mesh


Type-Bound Procedures

procedure, public :: readGmsh

  • private subroutine readGmsh(self, fn)

    Read a gmsh .msh file into memory

    Arguments

    Type IntentOptional AttributesName
    class(mesh_t), intent(inout) :: self

    Self mesh_t object

    character(len=*), intent(in) :: fn

    Filename

procedure, public :: writeVTK

  • private subroutine writeVTK(self, fn)

    Write the mesh as a VTK file

    Arguments

    Type IntentOptional AttributesName
    class(mesh_t), intent(in) :: self

    Self mesh_t object

    character(len=*), intent(in) :: fn

    Filename

procedure, public :: appendScalarVTK

  • private subroutine appendScalarVTK(self, fn, v, vn)

    Append scalar point data to a file

    Arguments

    Type IntentOptional AttributesName
    class(mesh_t), intent(in) :: self

    Self mesh_t object

    character(len=*), intent(in) :: fn

    Filename

    real(kind=wp), intent(in), dimension(:):: v

    Variable data

    character(len=*), intent(in) :: vn

    Variable name

procedure, public :: appendVectorVTK

  • private subroutine appendVectorVTK(self, fn, v, vn)

    Append vector point data to a file

    Arguments

    Type IntentOptional AttributesName
    class(mesh_t), intent(in) :: self

    Self mesh_t object

    character(len=*), intent(in) :: fn

    Filename

    real(kind=wp), intent(in), dimension(:,:):: v

    Variable data

    character(len=*), intent(in) :: vn

    Variable name

procedure, public :: connect

  • private subroutine connect(self)

    Build connectivity in the mesh

    Arguments

    Type IntentOptional AttributesName
    class(mesh_t), intent(inout) :: self

    Mesh to operate on