namespace plm_functions¶
Overview¶
Piecewise linear reconstruction functions. More…
namespace plm_functions { // global functions subroutine, public plm_reconstruction( N N, h h, u u, ppoly_E ppoly_E, ppoly_coef ppoly_coef, h_neglect h_neglect ); subroutine, public plm_boundary_extrapolation( N N, h h, u u, ppoly_E ppoly_E, ppoly_coef ppoly_coef, h_neglect h_neglect ); } // namespace plm_functions
Detailed Documentation¶
Piecewise linear reconstruction functions.
Date of creation: 2008.06.06 L. White
This module contains routines that handle one-dimensionnal finite volume reconstruction using the piecewise linear method (PLM).
Global Functions¶
subroutine, public plm_reconstruction( N N, h h, u u, ppoly_E ppoly_E, ppoly_coef ppoly_coef, h_neglect h_neglect )
Reconstruction by linear polynomials within each cell.
It is assumed that the size of the array ‘u’ is equal to the number of cells defining ‘grid’ and ‘ppoly’. No consistency check is performed here.
Parameters:
n |
Number of cells |
h |
cell widths (size N) |
u |
cell averages (size N) |
ppoly_e |
edge values of piecewise polynomials, with the same units as u. |
ppoly_coef |
coefficients of piecewise polynomials, mainly with the same units as u. |
h_neglect |
A negligibly small width for the purpose of cell reconstructions in the same units as h |
subroutine, public plm_boundary_extrapolation( N N, h h, u u, ppoly_E ppoly_E, ppoly_coef ppoly_coef, h_neglect h_neglect )
Reconstruction by linear polynomials within boundary cells.
The left and right edge values in the left and right boundary cells, respectively, are estimated using a linear extrapolation within the cells.
This extrapolation is EXACT when the underlying profile is linear.
It is assumed that the size of the array ‘u’ is equal to the number of cells defining ‘grid’ and ‘ppoly’. No consistency check is performed here.
Parameters:
n |
Number of cells |
h |
cell widths (size N) |
u |
cell averages (size N) |
ppoly_e |
edge values of piecewise polynomials, with the same units as u. |
ppoly_coef |
coefficients of piecewise polynomials, mainly with the same units as u. |
h_neglect |
A negligibly small width for the purpose of cell reconstructions in the same units as h |