recon1d_emplm_cwk module reference
Piecewise Linear Method 1D reconstruction in index space and boundary extrapolation.
Data Types
PLM reconstruction following Colella and Woodward, 1984. |
Functions/Subroutines
Calculate a 1D PLM reconstructions based on h(:) and u(:) |
|
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 slope of the first and last cells are set so that the first interior edge values match the interior cell (i.e. extrapolates from the interior).
Type Documentation
Function/Subroutine Documentation
- subroutine recon1d_emplm_cwk/reconstruct(this, h, u)
Calculate a 1D PLM reconstructions based on h(:) and u(:)
- Parameters:
this ::
this[inout] This reconstructionh ::
h[in] Grid spacing (thickness) [typically H]u ::
u[in] Cell mean values [A]
- function recon1d_emplm_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 reconstructionverbose ::
verbose[in] True, if verbosestdout ::
stdout[in] I/O channel for stdoutstderr ::
stderr[in] I/O channel for stderr