recon1d_mplm_cwk module reference

Piecewise Linear Method 1D reconstruction in index space.

More…

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

This implementation of PLM follows Colella and Woodward, 1984 [17], 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.

Type Documentation

type  recon1d_mplm_cwk/mplm_cwk

PLM reconstruction following Colella and Woodward, 1984.

Type fields:
  • % reconstruct :: procedure, private Implementation of the MPLM_CWK reconstruction.

  • % check_reconstruction :: procedure, private Implementation of check reconstruction for the MPLM_CWK reconstruction.

  • % unit_tests :: procedure, private Implementation of unit tests for the MPLM_CWK reconstruction.

  • % reconstruct_parent :: procedure, private Duplicate interface to

[source]

Function/Subroutine Documentation

subroutine recon1d_mplm_cwk/reconstruct(this, h, u)

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

Parameters:
  • this :: this [inout] This reconstruction

  • h :: h [in] Grid spacing (thickness) [typically H]

  • u :: u [in] Cell mean values [A]

[source]

function  recon1d_mplm_cwk/check_reconstruction(this, h, u)

Checks the MPLM_CWK reconstruction for consistency.

Parameters:
  • this :: this [in] This reconstruction

  • h :: h [in] Grid spacing (thickness) [typically H]

  • u :: u [in] Cell mean values [A]

[source]

function  recon1d_mplm_cwk/unit_tests(this, verbose, stdout, stderr)

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

Parameters:
  • this :: this [inout] This reconstruction

  • verbose :: verbose [in] True, if verbose

  • stdout :: stdout [in] I/O channel for stdout

  • stderr :: stderr [in] I/O channel for stderr

[source]

[source]