Recon1d_EMPLM_WA module reference

Extrapolated-Monotonized Piecewise Linear Method 1D reconstruction

This extends MPLM_WA, following White and Adcroft, 2008 [91], by extrapolating for the slopes of the first and last cells. This extrapolation is used by White et al., 2009, during grid-generation.

Data Types

EMPLM_WA

Extraplated Monotonic PLM reconstruction of White and Adcroft, 2008

Functions/Subroutines

reconstruct

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

PLM_extrapolate_slope

Returns a PLM slope using h2 extrapolation from a cell to the left, in the same arbitrary units as the input values [A]. Use the negative to extrapolate from the cell to the right.

unit_tests

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

Detailed Description

Type Documentation

type, extends(MPLM_WA) :: EMPLM_WA

Extraplated Monotonic PLM reconstruction of White and Adcroft, 2008

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

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

  • reconstruct() *locally defined

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

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

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

  • check_reconstruction() -> recon1d_mplm_wa.check_reconstruction()

  • unit_tests() *locally defined

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

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

  • init_parent() -> recon1d_mplm_wa -> recon1d_plm_cw.init()

  • reconstruct_parent() -> recon1d_mplm_wa.reconstruct()

Functions/Subroutine Documentation

subroutine reconstruct(this, h, u)

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

Parameters
  • this [inout]

    This reconstruction

  • h [in]

    Grid spacing (thickness) [typically H]

  • u [in]

    Cell mean values [A]

real elemental pure function PLM_extrapolate_slope(h_l, h_c, h_neglect, u_l, u_c)

Returns a PLM slope using h2 extrapolation from a cell to the left, in the same arbitrary units as the input values [A]. Use the negative to extrapolate from the cell to the right.

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_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]

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