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.
Subroutine to move points defined on the reference element [-1,+1] to the physical element coordinates.
Type | Intent | Optional | 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. |
Transform reference points to physical points in the element of the tree identified by the provided elempos.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(in) | :: | refPoints(:,:) | Reference points to transform. They have the form (npoints,3). |
||
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. Has the same form as refPoints. |