pbepack_quadratures Module


Uses

  • module~~pbepack_quadratures~~UsesGraph module~pbepack_quadratures pbepack_quadratures hrweno_grids hrweno_grids module~pbepack_quadratures->hrweno_grids module~pbepack_kinds pbepack_kinds module~pbepack_quadratures->module~pbepack_kinds module~pbepack_lib pbepack_lib module~pbepack_quadratures->module~pbepack_lib iso_fortran_env iso_fortran_env module~pbepack_kinds->iso_fortran_env module~pbepack_lib->module~pbepack_kinds stdlib_math stdlib_math module~pbepack_lib->stdlib_math stdlib_optval stdlib_optval module~pbepack_lib->stdlib_optval stdlib_strings stdlib_strings module~pbepack_lib->stdlib_strings

Used by

  • module~~pbepack_quadratures~~UsedByGraph module~pbepack_quadratures pbepack_quadratures module~pbepack pbepack module~pbepack->module~pbepack_quadratures module~pbepack_pbe pbepack_pbe module~pbepack->module~pbepack_pbe module~pbepack_pbe->module~pbepack_quadratures

Functions

public pure function quadgrid1(fnc, grid, average) result(res)

Cell-integral or cell-average of over grid, using Simpson's 1/3 rule.

Read more…

Arguments

Type IntentOptional Attributes Name
procedure(fx) :: fnc

function to integrate/average over grid cells

type(grid1), intent(in) :: grid

grid1 object

logical, intent(in), optional :: average

flag to compute cell-average instead of cell-integral

Return Value real(kind=rk), (grid%ncells)

public pure function evalmoment(u, grid, order, normalize) result(res)

-th order moment of :

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: u(:)

cell-average number density,

type(grid1), intent(in) :: grid

grid1 object

integer, intent(in) :: order

order of the moment

logical, intent(in), optional :: normalize

if true, the result will be normalized by the 0-th moment

Return Value real(kind=rk)