atl_reference_element_module Module

Module for operations relating reference and physical elements.

This module collects all the functions, subroutines related to operations on the reference element or mappings between the reference and the physical elements.



Subroutines

public subroutine atl_refToPhysCoord(refPoints, nPoints, baryCoord, elemLength, physPoints)

Subroutine to move points defined on the reference element [-1,+1] to the physical element coordinates.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: refPoints(:,:)

The points of the reference elements you want to move to their physical location. Size is: nPoints for first dimension and 3 for the second dimension (x,y,z coordinates).

integer, intent(in) :: nPoints

The number of points to move.

real(kind=rk), intent(in) :: baryCoord(3)

The barycentric coordinate of the element you want to map to (x,y,z coord)

real(kind=rk), intent(in) :: elemLength

The length of the cubic element to map to.

real(kind=rk), intent(inout) :: physPoints(nPoints,3)

The physical points. Dimensions are the same as refPoints.

public subroutine atl_ref_in_elempos(refPoints, tree, elempos, physPoints)

Transform reference points to physical points in the element of the tree identified by the provided elempos.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: refPoints(:,:)

Reference points to transform.

Read more…
type(treelmesh_type), intent(in) :: tree

Tree in which the element is found.

integer, intent(in) :: elempos

Position of the element in the list of treeIDs of the tree.

real(kind=rk), intent(out) :: physPoints(:,:)

Transformed points.

Read more…