Recon1d_PLM_CWK module reference

Piecewise Linear Method 1D reconstruction

This implementation of PLM follows Colella and Woodward, 1984, except for assuming uniform cell thicknesses. Cells resort to PCM for extrema including first and last cells in column. The cell-wise reconstructions are limited so that the edge values (which are also the extrema in a cell) are bounded by the neighbor cell means. However, this does not yield monotonic profiles for the whole column.

Note that internally the edge values, rather than the PLM slope, are stored to ensure resulting calculations are properly bounded.

Data Types

PLM_CWK

PLM reconstruction following Colella and Woodward, 1984

Functions/Subroutines

reconstruct

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

Detailed Description

Type Documentation

type, extends(PLM_CW) :: PLM_CWK

PLM reconstruction following Colella and Woodward, 1984

Implemented by extending recon1d_plm_cw.

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

  • init() -> recon1d_plm_cw.init()

  • reconstruct() *locally defined

  • average() -> recon1d_plm_cw.average()

  • f() -> recon1d_plm_cw.f()

  • dfdx() -> recon1d_plm_cw.dfdx()

  • x() -> recon1d_plm_cw.x()

  • check_reconstruction() -> recon1d_plm_cw.check_reconstruction()

  • unit_tests() -> recon1d_plm_cw.unit_tests()

  • destroy() -> 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]

API generated with Flint · Rendered from reStructuredText