Recon1d_EMPLM_WA_poly module reference

Extrapolated-Monotonized Piecewise Linear Method 1D reconstruction

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

This stores and evaluates the reconstruction using a polynomial representation which is not preferred but was the form used in OM4.

Data Types

EMPLM_WA_poly

Extrapolation Limited Monotonic PLM reconstruction following 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.

check_reconstruction

Checks the EMPLM_WA_poly reconstruction for consistency

unit_tests

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

Detailed Description

Type Documentation

type, extends(MPLM_WA_poly) :: EMPLM_WA_poly

Extrapolation Limited Monotonic PLM reconstruction following White and Adcroft, 2008

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

  • init() -> recon1d_mplm_wa_poly.init()

  • reconstruct() -> recon1d_mplm_wa_poly.reconstruct()

  • average() -> recon1d_mplm_wa_poly.average()

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

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

  • check_reconstruction() *locally defined

  • unit_tests() *locally defined

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

  • remap_to_sub_grid() *locally defined

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

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

Callees call graph
Callees of recon1d_emplm_wa_poly::reconstruct calls cluster_recon1d_emplm_wa_poly Recon1d_EMPLM_WA_poly recon1d_emplm_wa_poly::plm_extrapolate_slope PLM_extrapolate_slope [private/internal] recon1d_emplm_wa_poly::reconstruct reconstruct [private/internal] recon1d_emplm_wa_poly::reconstruct->recon1d_emplm_wa_poly::plm_extrapolate_slope
Text view
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]

Callers call graph
Callers of recon1d_emplm_wa_poly::plm_extrapolate_slope calls cluster_recon1d_emplm_wa_poly Recon1d_EMPLM_WA_poly recon1d_emplm_wa_poly::plm_extrapolate_slope PLM_extrapolate_slope [private/internal] recon1d_emplm_wa_poly::reconstruct reconstruct [private/internal] recon1d_emplm_wa_poly::reconstruct->recon1d_emplm_wa_poly::plm_extrapolate_slope
Text view
logical function check_reconstruction(this, h, u)

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