Recon1d_MPLM_CWK module reference

Piecewise Linear Method 1D reconstruction in index space

This implementation of PLM follows Colella and Woodward, 1984 [18], except for assuming uniform resolution so that the method is independent of grid spacing. The cell-wise reconstructions are limited so that the edge values (which are also the extrema in a cell) are bounded by the neighbors. The first and last cells are always limited to PCM.

Data Types

MPLM_CWK

PLM reconstruction following Colella and Woodward, 1984

Functions/Subroutines

reconstruct

Calculate a 1D PLM reconstructions based on h(:) and u(:)

check_reconstruction

Checks the MPLM_CWK reconstruction for consistency

unit_tests

Runs PLM reconstruction unit tests and returns True for any fails, False otherwise

Detailed Description

Type Documentation

type, extends(PLM_CWK) :: MPLM_CWK

PLM reconstruction following Colella and Woodward, 1984

Implemented by extending recon1d_plm_cwk.

The source for the methods ultimately used by this class are:

  • init() -> recon1d_plm_cwk -> recon1d_plm_cw.init()

  • reconstruct() *locally defined

  • average() -> recon1d_plm_cwk -> recon1d_plm_cw.average()

  • f() -> recon1d_plm_cwk -> recon1d_plm_cw.f()

  • dfdx() -> recon1d_plm_cwk -> recon1d_plm_cw.dfdx()

  • check_reconstruction() *locally defined

  • unit_tests() *locally defined

  • destroy() -> recon1d_plm_cwk -> recon1d_plm_cw.destroy()

  • remap_to_sub_grid() -> recon1d_type.remap_to_sub_grid()

  • init_parent() -> init()

  • reconstruct_parent() -> reconstruct()

Functions/Subroutine Documentation

subroutine reconstruct(this, h, u)

Calculate a 1D PLM reconstructions based on h(:) and u(:)

Parameters
  • this [inout]

    This reconstruction

  • h [in]

    Grid spacing (thickness) [typically H]

  • u [in]

    Cell mean values [A]

logical function check_reconstruction(this, h, u)

Checks the MPLM_CWK reconstruction for consistency

Parameters
  • this [in]

    This reconstruction

  • h [in]

    Grid spacing (thickness) [typically H]

  • u [in]

    Cell mean values [A]

logical function unit_tests(this, verbose, stdout, stderr)

Runs PLM reconstruction unit tests and returns True for any fails, False otherwise

Parameters
  • this [inout]

    This reconstruction

  • verbose [in]

    True, if verbose

  • stdout [in]

    I/O channel for stdout

  • stderr [in]

    I/O channel for stderr

API generated with Flint · Rendered from reStructuredText