Recon1d_MPLM_WA module reference

Monotonized Piecewise Linear Method 1D reconstruction

This implementation of PLM follows White and Adcroft, 2008 [91]. The PLM slopes are first limited following Colella and Woodward, 1984, but are then further limited to ensure the edge values moving across cell boundaries are monotone. The first and last cells are always limited to PCM.

This differs from recon1d_mplm_wa_poly in the internally not polynomial representations are referred to.

Data Types

MPLM_WA

Limited Monotonic PLM reconstruction following White and Adcroft, 2008

Functions/Subroutines

reconstruct

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

PLM_slope_wa

Returns a limited PLM slope following White and Adcroft, 2008, in the same arbitrary units [A] as the input values. Note that this is not the same as the Colella and Woodward method.

PLM_monotonized_slope

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

check_reconstruction

Checks the MPLM_WA 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_CW) :: MPLM_WA

Limited Monotonic PLM reconstruction following White and Adcroft, 2008

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()

  • check_reconstruction() *locally defined

  • unit_tests() *locally defined

  • destroy() -> recon1d_plm_cw.destroy()

  • remap_to_sub_grid() -> recon1d_plm_cw -> recon1d_type.remap_to_sub_grid()

  • init_parent() -> recon1d_plm_cw.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]

Callees call graph
Callees of recon1d_mplm_wa::reconstruct calls cluster_recon1d_mplm_wa Recon1d_MPLM_WA recon1d_mplm_wa::plm_monotonized_slope PLM_monotonized_slope [private/internal] recon1d_mplm_wa::plm_slope_wa PLM_slope_wa [private/internal] recon1d_mplm_wa::reconstruct reconstruct [private/internal] recon1d_mplm_wa::reconstruct->recon1d_mplm_wa::plm_monotonized_slope recon1d_mplm_wa::reconstruct->recon1d_mplm_wa::plm_slope_wa
Text view
real elemental pure function PLM_slope_wa(h_l, h_c, h_r, h_neglect, u_l, u_c, u_r)

Returns a limited PLM slope following White and Adcroft, 2008, in the same arbitrary units [A] as the input values. Note that this is not the same as the Colella and Woodward method.

Parameters
  • h_l [in]

    Thickness of left cell in arbitrary grid thickness units [H]

  • h_c [in]

    Thickness of center cell in arbitrary grid thickness units [H]

  • h_r [in]

    Thickness of right cell in arbitrary grid thickness units [H]

  • h_neglect [in]

    A negligible thickness [H]

  • u_l [in]

    Value of left cell in arbitrary units [A]

  • u_c [in]

    Value of center cell in arbitrary units [A]

  • u_r [in]

    Value of right cell in arbitrary units [A]

Callers call graph
Callers of recon1d_mplm_wa::plm_slope_wa calls cluster_recon1d_mplm_wa Recon1d_MPLM_WA recon1d_mplm_wa::plm_slope_wa PLM_slope_wa [private/internal] recon1d_mplm_wa::reconstruct reconstruct [private/internal] recon1d_mplm_wa::reconstruct->recon1d_mplm_wa::plm_slope_wa
Text view
real elemental pure function PLM_monotonized_slope(u_l, u_c, u_r, s_l, s_c, s_r)

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

Parameters
  • u_l [in]

    Value of left cell in arbitrary units [A]

  • u_c [in]

    Value of center cell in arbitrary units [A]

  • u_r [in]

    Value of right cell in arbitrary units [A]

  • s_l [in]

    PLM slope of left cell [A]

  • s_c [in]

    PLM slope of center cell [A]

  • s_r [in]

    PLM slope of right cell [A]

Callers call graph
Callers of recon1d_mplm_wa::plm_monotonized_slope calls cluster_recon1d_mplm_wa Recon1d_MPLM_WA recon1d_mplm_wa::plm_monotonized_slope PLM_monotonized_slope [private/internal] recon1d_mplm_wa::reconstruct reconstruct [private/internal] recon1d_mplm_wa::reconstruct->recon1d_mplm_wa::plm_monotonized_slope
Text view
logical function check_reconstruction(this, h, u)

Checks the MPLM_WA 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