Mesh2D Derived Type

type, public, extends(Mesh2D_t) :: Mesh2D


Inherits

type~~mesh2d~2~~InheritsGraph type~mesh2d~2 Mesh2D c_ptr c_ptr type~mesh2d~2->c_ptr sideInfo_gpu type~mesh2d_t Mesh2D_t type~mesh2d~2->type~mesh2d_t type~semmesh SEMMesh type~mesh2d_t->type~semmesh type~domaindecomposition DomainDecomposition type~semmesh->type~domaindecomposition decomp type~domaindecomposition_t DomainDecomposition_t type~domaindecomposition->type~domaindecomposition_t

Contents

Source Code


Components

TypeVisibilityAttributesNameInitial
character(len=255), public, allocatable:: BCNames(:)
integer, public, pointer, dimension(:,:):: BCType
integer, public, pointer, dimension(:,:):: CGNSCornerMap
integer, public, pointer, dimension(:,:):: CGNSSideMap
type(DomainDecomposition), public :: decomp
integer, public, pointer, dimension(:,:):: elemInfo
integer, public, pointer, dimension(:,:,:):: globalNodeIDs
integer, public :: nBCs
integer, public :: nCornerNodes
integer, public :: nElem
integer, public :: nGeo
integer, public :: nGlobalElem
integer, public :: nNodes
integer, public :: nSides
integer, public :: nUniqueNodes
integer, public :: nUniqueSides
real(kind=prec), public, pointer, dimension(:,:,:,:):: nodeCoords
integer, public :: quadrature
integer, public, pointer, dimension(:,:,:):: sideInfo
type(c_ptr), public :: sideInfo_gpu

Type-Bound Procedures

procedure, public :: Free => Free_Mesh2D

  • public subroutine Free_Mesh2D(this)

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D), intent(inout) :: this

procedure, public :: Init => Init_Mesh2D

  • public subroutine Init_Mesh2D(this, nGeo, nElem, nSides, nNodes, nBCs)

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D), intent(inout) :: this
    integer, intent(in) :: nGeo
    integer, intent(in) :: nElem
    integer, intent(in) :: nSides
    integer, intent(in) :: nNodes
    integer, intent(in) :: nBCs

procedure, public :: Read_HOPr => Read_HOPr_Mesh2D_t

  • public subroutine Read_HOPr_Mesh2D_t(this, meshFile)

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D_t), intent(out) :: this
    character, intent(in) :: meshFile

procedure, public :: RecalculateFlip => RecalculateFlip_Mesh2D_t

procedure, public :: ResetBoundaryConditionType => ResetBoundaryConditionType_Mesh2D_t

  • public subroutine ResetBoundaryConditionType_Mesh2D_t(this, bcid)

    This method can be used to reset all of the boundary elements boundary condition type to the desired value.

    Read more…

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D_t), intent(inout) :: this
    integer, intent(in) :: bcid

generic, public :: StructuredMesh => UniformStructuredMesh_Mesh2D_t

  • public subroutine UniformStructuredMesh_Mesh2D_t(this, nxPerTile, nyPerTile, nTileX, nTileY, dx, dy, bcids)

    Create a structured mesh and store it in SELF's unstructured mesh format. The mesh is created in tiles of size (tnx,tny). Tiling is used to determine the element ordering.

    Read more…

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D_t), intent(out) :: this
    integer, intent(in) :: nxPerTile
    integer, intent(in) :: nyPerTile
    integer, intent(in) :: nTileX
    integer, intent(in) :: nTileY
    real(kind=prec), intent(in) :: dx
    real(kind=prec), intent(in) :: dy
    integer, intent(in) :: bcids(1:4)

procedure, public :: UpdateDevice => UpdateDevice_Mesh2D

  • public subroutine UpdateDevice_Mesh2D(this)

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D), intent(inout) :: this

procedure, public :: Write_Mesh => Write_Mesh2D_t

  • public subroutine Write_Mesh2D_t(this, meshFile)

    Arguments

    TypeIntentOptionalAttributesName
    class(Mesh2D_t), intent(inout) :: this
    character, intent(in) :: meshFile

Source Code

  type,extends(Mesh2D_t) :: Mesh2D
    type(c_ptr) :: sideInfo_gpu

  contains
    procedure,public :: Init => Init_Mesh2D
    procedure,public :: Free => Free_Mesh2D
    procedure,public :: UpdateDevice => UpdateDevice_Mesh2D

  endtype Mesh2D