smod_legendre_2D Submodule


Uses

  • module~~smod_legendre_2d~~UsesGraph module~smod_legendre_2d smod_legendre_2D module~mod_misc mod_misc module~smod_legendre_2d->module~mod_misc module~mod_legendre mod_legendre module~smod_legendre_2d->module~mod_legendre module~mod_linalg mod_linalg module~smod_legendre_2d->module~mod_linalg iso_fortran_env iso_fortran_env module~mod_misc->iso_fortran_env module~mod_legendre->iso_fortran_env module~mod_linalg->iso_fortran_env

Contents


Functions

pure function pascal_row_2D(N, x, y) result(row)

Generates a row of Pascal's triangle in 2D

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N

Row number of pascal's 2D triange (0-indexed)

real(kind=wp), intent(in) :: x

X-value used in triange

real(kind=wp), intent(in) :: y

Y-Value used in triange

Return Value real(kind=wp), dimension(N+1)

Output row of triange


Module Functions

pure function getXY_2D(N) result(xy)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N

Return Value real(kind=wp), dimension(N,2)

pure function getArow2D(N, xi, eta) result(row)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N
real(kind=wp), intent(in) :: xi
real(kind=wp), intent(in) :: eta

Return Value real(kind=wp), dimension(N)

function getAlpha2D(N) result(alpha)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N

Return Value real(kind=wp), dimension(N,N)

pure function pascal_2D_quad(N, x, y) result(row)

Generates an array of points related to a quadrilateral using Pascal's triangle in 2D, where rows are 0-indexed

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N

Order of the qaudrilateral

real(kind=wp), intent(in) :: x

X-coordinate of node used in calculation

real(kind=wp), intent(in) :: y

Y-coordinate of node used in calculation

Return Value real(kind=wp), dimension((N+1)**2)

Output row

function getJacobian_2D(N, xi, eta, xy, alpha) result(J)

Calculates the Jacobian of a quadrilateral element at a point

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: N

Number of points in element

real(kind=wp), intent(in) :: xi

Value of xi coordinate in isoparametric element

real(kind=wp), intent(in) :: eta

Value of eta coordinate in isoparametric element

real(kind=wp), intent(in), dimension(N,2):: xy

Array of x and y coordinates for the element

real(kind=wp), intent(in), dimension(N,N):: alpha

Array of coefficients used to define basis functions

Return Value real(kind=wp), dimension(2,2)

Jacobian of the isoparametric element at (xi,eta)