Skip to main content

InterpolationPoint

Get the interpolation point on 1D/2D/3D elements.

Calling example

x(:,:) = InterpolationPoint(order, elemType, ipType, xij)
  • order order of polynomial
  • elemType element type
  • ipType interpolation point
    • Equidistance
    • GaussLegendre
    • GaussLegendreLobatto
    • GaussChebyshev
    • GaussChebyshevLobatto
    • GaussJacobi
    • GaussJacobiLobatto

Interface

INTERFACE
MODULE FUNCTION InterpolationPoint(order, elemType, ipType, &
& xij, layout) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
!! order of interpolation
INTEGER(I4B), INTENT(IN) :: elemType
!! element type
INTEGER(I4B), INTENT(IN) :: ipType
!! interpolation point type
!! Equidistance, GaussLegendre, GaussLegendreLobatto, GaussChebyshev,
!! GaussChebyshevLobatto, GaussJacobi, GaussJacobiLobatto
REAL(DFP), OPTIONAL, INTENT(IN) :: xij(:, :)
!! domain of interpolation, default values are given by
!! line = [-1,1]
!! triangle = (0,0), (0,1), (1,0)
!! quadrangle = [-1,1]x[-1,1]
CHARACTER(*), INTENT(IN) :: layout
!! "VEFC" Vertex, Edge, Face, Cell
!! "INCREASING" incresing order
!! "DECREASING" decreasing order
!! "XYZ" First X, then Y, then Z
!! "YXZ" First Y, then X, then Z
REAL(DFP), ALLOCATABLE :: ans(:, :)
!! interpolation points in xij format
END FUNCTION InterpolationPoint
END INTERFACE

Line

More