geo_t Derived Type

type, public :: geo_t

Stores geometry information


Inherited by

type~~geo_t~~InheritedByGraph type~geo_t geo_t type~mesh_t mesh_t type~mesh_t->type~geo_t geo type~allocator_t allocator_t type~allocator_t->type~mesh_t mesh type~base_backend_t base_backend_t type~base_backend_t->type~mesh_t mesh type~base_backend_t->type~allocator_t allocator type~solver_t solver_t type~solver_t->type~mesh_t mesh type~solver_t->type~allocator_t host_allocator type~solver_t->type~base_backend_t backend type~time_intg_t time_intg_t type~solver_t->type~time_intg_t time_integrator type~vector_calculus_t vector_calculus_t type~solver_t->type~vector_calculus_t vector_calculus type~base_case_t base_case_t type~base_case_t->type~solver_t solver type~cuda_allocator_t cuda_allocator_t type~cuda_allocator_t->type~allocator_t type~cuda_backend_t cuda_backend_t type~cuda_backend_t->type~base_backend_t type~omp_backend_t omp_backend_t type~omp_backend_t->type~base_backend_t type~time_intg_t->type~allocator_t allocator type~time_intg_t->type~base_backend_t backend type~vector_calculus_t->type~base_backend_t backend type~case_channel_t case_channel_t type~case_channel_t->type~base_case_t type~case_generic_t case_generic_t type~case_generic_t->type~base_case_t type~case_tgv_t case_tgv_t type~case_tgv_t->type~base_case_t

Components

Type Visibility Attributes Name Initial
real(kind=dp), public :: origin(3)

Origin: coordinates of vertex (1, 1, 1)

real(kind=dp), public :: d(3)

size of a cell in each direction for a uniform mesh

real(kind=dp), public :: L(3)

Global dimensions of the domain in each direction

real(kind=dp), public, allocatable, dimension(:, :) :: vert_coords

Global coordinates at vertices

real(kind=dp), public, allocatable, dimension(:, :) :: midp_coords

Global coordinates at midpoints

character(len=20), public, dimension(3) :: stretching

Stretching type

logical, public :: stretched(3)

Stretching

real(kind=dp), public :: beta(3)

Stretching parameter

real(kind=dp), public, allocatable, dimension(:, :) :: vert_ds

Stretching factors at vertices

real(kind=dp), public, allocatable, dimension(:, :) :: vert_ds2

Stretching factors at vertices

real(kind=dp), public, allocatable, dimension(:, :) :: vert_d2s

Stretching factors at vertices

real(kind=dp), public, allocatable, dimension(:, :) :: midp_ds

Stretching factors at midpoints

real(kind=dp), public, allocatable, dimension(:, :) :: midp_ds2

Stretching factors at midpoints

real(kind=dp), public, allocatable, dimension(:, :) :: midp_d2s

Stretching factors at midpoints


Type-Bound Procedures

procedure, public :: obtain_coordinates

  • public subroutine obtain_coordinates(self, vert_dims, cell_dims, n_offset)

    Obtains global coordinates for all the vertices and midpoints

    Arguments

    Type IntentOptional Attributes Name
    class(geo_t) :: self
    integer, intent(in) :: vert_dims(3)
    integer, intent(in) :: cell_dims(3)
    integer, intent(in) :: n_offset(3)