Skip to main content

EquidistanceInPoint

This subroutine returns the equidistance points in the Hexahedron.

The points are strictly inside the Hexahedron.

Interface

INTERFACE
MODULE PURE FUNCTION EquidistanceInPoint_Hexahedron(order, xij) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
!! order
REAL(DFP), OPTIONAL, INTENT(IN) :: xij(:, :)
!! number of rows = 3
!! number of cols = 8
REAL(DFP), ALLOCATABLE :: ans(:, :)
!! returned coordinates in $x_{iJ}$ format
END FUNCTION EquidistanceInPoint_Hexahedron
END INTERFACE

Interface 2

INTERFACE EquidistanceInPoint_Hexahedron
MODULE PURE FUNCTION EquidistanceInPoint_Hexahedron2(p, q, r, xij) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: p, q, r
!! order in x, y, and z direction
REAL(DFP), OPTIONAL, INTENT(IN) :: xij(:, :)
!! number of rows = 3
!! number of cols = 8
REAL(DFP), ALLOCATABLE :: ans(:, :)
!! returned coordinates in $x_{iJ}$ format
END FUNCTION EquidistanceInPoint_Hexahedron2
END INTERFACE EquidistanceInPoint_Hexahedron

Results

Order 1

None

Order 2

nox1x_1x2x_2x3x_3
1000

Order 3

See results
nox1x_1x2x_2x3x_3
1-0.33333-0.33333-0.33333
20.33333-0.33333-0.33333
30.333330.33333-0.33333
4-0.333330.33333-0.33333
5-0.33333-0.333330.33333
60.33333-0.333330.33333
70.333330.333330.33333
8-0.333330.333330.33333