cheb_tensorize_ndm3 Subroutine

public subroutine cheb_tensorize_ndm3(var, nx, ny, nz, dmat, tdm)

Tensorize the nodal derivative matrix for three variables in the domain [-1,1]x[-1,1]X[-1,1].

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in) :: var

Independent variable {'x', 'y', 'z'}

integer, intent(in) :: nx

Degree of the polynomial along x, y, and z directions

integer, intent(in) :: ny

Degree of the polynomial along x, y, and z directions

integer, intent(in) :: nz

Degree of the polynomial along x, y, and z directions

real(kind=rp), intent(in), dimension(:,:) :: dmat

(nx+1, nx+1) or (ny+1, ny+1) or (nz+1, nz+1). Nodal derivative matrix in the domain [-1,1].

real(kind=rp), intent(out), dimension(:,:) :: tdm

Tensorized derivative matrix with nrows = ncols = (nx+1)(ny+1)(nz+1)