Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
map_1d::map_1d_t Type Reference

Type that encapsulates a mapping from each gll point in the mesh to its corresponding (global) GLL point index in one direction. More...

Collaboration diagram for map_1d::map_1d_t:

Public Member Functions

procedure, pass(thisinit_int (this, coef, dir, tol)
 Constructor.
 
procedure, pass(thisinit_char (this, coef, dir, tol)
 
generic init (this, coef, dir, tol)
 Constructor.
 
generic init (this, coef, dir, tol)
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thisaverage_planes_fld_lst (this, avg_planes, field_list)
 Average field list along planes.
 
procedure, pass(thisaverage_planes_vec_ptr (this, avg_planes, vector_ptr)
 Computes average if vector_pt in two directions and outputs matrix with averaged values avg_planes contains coordinates in first row, avg. of fields in the rest.
 
generic average_planes (this, avg_planes, field_list)
 Average field list along planes.
 
generic average_planes (this, avg_planes, vector_ptr)
 Computes average if vector_pt in two directions and outputs matrix with averaged values avg_planes contains coordinates in first row, avg. of fields in the rest.
 

Public Attributes

integer, dimension(:), allocatable dir_el
 Checks whether the specified direction is in the r,s, or t direction for each element.
 
integer, dimension(:), allocatable el_lvl
 Checks which level an element belongs to.
 
integer, dimension(:,:,:,:), allocatable pt_lvl
 Checks which level or id in the 1D GLL mapping each point in the dofmap is.
 
integer n_el_lvls
 Number of elements stacked on top of eachother in the specified direction.
 
integer n_gll_lvls
 Number of total gll levels.
 
type(dofmap_t), pointer dof => null()
 Dofmap Dofmap.
 
type(coef_t), pointer coef => null()
 SEM coefs.
 
type(mesh_t), pointer msh => null()
 Mesh.
 
integer dir
 The specified direction in which we create the 1D mapping.
 
real(kind=rp) tol = 1e-7
 Tolerance for the mesh.
 
real(kind=rp), dimension(:), allocatable volume_per_gll_lvl
 Volume per level in the 1d grid.
 

Detailed Description

Remarks
Could also be rather easily extended to say polar coordinates as well ( I think). Martin Karp

Definition at line 25 of file map_1d.f90.

Member Function/Subroutine Documentation

◆ average_planes() [1/2]

generic map_1d::map_1d_t::average_planes ( class(map_1d_t), intent(inout this,
type(matrix_t), intent(inout avg_planes,
type(field_list_t), intent(inout field_list 
)
Parameters
avg_planesoutput averages
field_listlist of fields to be averaged

Definition at line 62 of file map_1d.f90.

◆ average_planes() [2/2]

generic map_1d::map_1d_t::average_planes ( class(map_1d_t), intent(inout this,
type(matrix_t), intent(inout avg_planes,
type(vector_ptr_t), dimension(:), intent(inout vector_ptr 
)
Parameters
avg_planesoutput averages
vector_ptsto vectors to be averaged

Definition at line 62 of file map_1d.f90.

◆ average_planes_fld_lst()

procedure, pass(this) map_1d::map_1d_t::average_planes_fld_lst ( class(map_1d_t), intent(inout this,
type(matrix_t), intent(inout avg_planes,
type(field_list_t), intent(inout field_list 
)
Parameters
avg_planesoutput averages
field_listlist of fields to be averaged

Definition at line 59 of file map_1d.f90.

◆ average_planes_vec_ptr()

procedure, pass(this) map_1d::map_1d_t::average_planes_vec_ptr ( class(map_1d_t), intent(inout this,
type(matrix_t), intent(inout avg_planes,
type(vector_ptr_t), dimension(:), intent(inout vector_ptr 
)
Parameters
avg_planesoutput averages
vector_ptsto vectors to be averaged

Definition at line 61 of file map_1d.f90.

◆ free()

procedure, pass(this) map_1d::map_1d_t::free ( class(map_1d_t this)

Definition at line 57 of file map_1d.f90.

◆ init() [1/2]

generic map_1d::map_1d_t::init ( class(map_1d_t this,
type(coef_t), intent(inout), target  coef,
integer, intent(in dir,
real(kind=rp), intent(in tol 
)

Definition at line 55 of file map_1d.f90.

◆ init() [2/2]

generic map_1d::map_1d_t::init ( class(map_1d_t this,
type(coef_t), intent(inout), target  coef,
character(len=*), intent(in dir,
real(kind=rp), intent(in tol 
)

Definition at line 55 of file map_1d.f90.

◆ init_char()

procedure, pass(this) map_1d::map_1d_t::init_char ( class(map_1d_t this,
type(coef_t), intent(inout), target  coef,
character(len=*), intent(in dir,
real(kind=rp), intent(in tol 
)

Definition at line 54 of file map_1d.f90.

◆ init_int()

procedure, pass(this) map_1d::map_1d_t::init_int ( class(map_1d_t this,
type(coef_t), intent(inout), target  coef,
integer, intent(in dir,
real(kind=rp), intent(in tol 
)

Definition at line 52 of file map_1d.f90.

Member Data Documentation

◆ coef

type(coef_t), pointer map_1d::map_1d_t::coef => null()

Definition at line 41 of file map_1d.f90.

◆ dir

integer map_1d::map_1d_t::dir

Definition at line 45 of file map_1d.f90.

◆ dir_el

integer, dimension(:), allocatable map_1d::map_1d_t::dir_el

Definition at line 28 of file map_1d.f90.

◆ dof

type(dofmap_t), pointer map_1d::map_1d_t::dof => null()

Definition at line 39 of file map_1d.f90.

◆ el_lvl

integer, dimension(:), allocatable map_1d::map_1d_t::el_lvl

Definition at line 30 of file map_1d.f90.

◆ msh

type(mesh_t), pointer map_1d::map_1d_t::msh => null()

Definition at line 43 of file map_1d.f90.

◆ n_el_lvls

integer map_1d::map_1d_t::n_el_lvls

Definition at line 34 of file map_1d.f90.

◆ n_gll_lvls

integer map_1d::map_1d_t::n_gll_lvls

Definition at line 36 of file map_1d.f90.

◆ pt_lvl

integer, dimension(:,:,:,:), allocatable map_1d::map_1d_t::pt_lvl

Definition at line 32 of file map_1d.f90.

◆ tol

real(kind=rp) map_1d::map_1d_t::tol = 1e-7

Definition at line 47 of file map_1d.f90.

◆ volume_per_gll_lvl

real(kind=rp), dimension(:), allocatable map_1d::map_1d_t::volume_per_gll_lvl

Definition at line 49 of file map_1d.f90.


The documentation for this type was generated from the following file: