PLM_functions module reference

Piecewise linear reconstruction functions

Functions/Subroutines

PLM_slope_wa

Returns a limited PLM slope following White and Adcroft, 2008, in the same arbitrary units [A] as the input values. Note that this is not the same as the Colella and Woodward method.

PLM_slope_cw

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

PLM_monotonized_slope

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

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.

PLM_reconstruction

Reconstruction by linear polynomials within each cell

PLM_boundary_extrapolation

Reconstruction by linear polynomials within boundary cells

Detailed Description

Date of creation: 2008.06.06 L. White

This module contains routines that handle one-dimensional finite volume reconstruction using the piecewise linear method (PLM).

Functions/Subroutine Documentation

real elemental pure function PLM_slope_wa(h_l, h_c, h_r, h_neglect, u_l, u_c, u_r)

Returns a limited PLM slope following White and Adcroft, 2008, in the same arbitrary units [A] as the input values. Note that this is not the same as the Colella and Woodward method.

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_r [in]

    Thickness of right 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]

  • u_r [in]

    Value of right cell in arbitrary units [A]

Callers call graph
Callers of plm_functions::plm_slope_wa calls cluster_mom_ale MOM_ALE cluster_plm_functions PLM_functions mom_ale::ale_plm_edge_values ALE_PLM_edge_values plm_functions::plm_slope_wa PLM_slope_wa mom_ale::ale_plm_edge_values->plm_functions::plm_slope_wa plm_functions::plm_reconstruction PLM_reconstruction plm_functions::plm_reconstruction->plm_functions::plm_slope_wa
Text view
real elemental pure function PLM_slope_cw(h_l, h_c, h_r, h_neglect, u_l, u_c, u_r)

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

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_r [in]

    Thickness of right 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]

  • u_r [in]

    Value of right cell in arbitrary units [A]

real elemental pure function PLM_monotonized_slope(u_l, u_c, u_r, s_l, s_c, s_r)

Returns a limited PLM slope following Colella and Woodward 1984, in the same arbitrary units as the input values [A].

Parameters
  • u_l [in]

    Value of left cell in arbitrary units [A]

  • u_c [in]

    Value of center cell in arbitrary units [A]

  • u_r [in]

    Value of right cell in arbitrary units [A]

  • s_l [in]

    PLM slope of left cell [A]

  • s_c [in]

    PLM slope of center cell [A]

  • s_r [in]

    PLM slope of right cell [A]

Callers call graph
Callers of plm_functions::plm_monotonized_slope calls cluster_mom_ale MOM_ALE cluster_plm_functions PLM_functions mom_ale::ale_plm_edge_values ALE_PLM_edge_values plm_functions::plm_monotonized_slope PLM_monotonized_slope mom_ale::ale_plm_edge_values->plm_functions::plm_monotonized_slope plm_functions::plm_reconstruction PLM_reconstruction plm_functions::plm_reconstruction->plm_functions::plm_monotonized_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 plm_functions::plm_extrapolate_slope calls cluster_mom_ale MOM_ALE cluster_plm_functions PLM_functions mom_ale::ale_plm_edge_values ALE_PLM_edge_values plm_functions::plm_extrapolate_slope PLM_extrapolate_slope mom_ale::ale_plm_edge_values->plm_functions::plm_extrapolate_slope plm_functions::plm_boundary_extrapolation PLM_boundary_extrapolation plm_functions::plm_boundary_extrapolation->plm_functions::plm_extrapolate_slope
Text view
subroutine PLM_reconstruction(N, h, u, edge_values, ppoly_coef, 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 [in]

    Number of cells

  • h [in]

    cell widths (size N) [H]

  • u [in]

    cell averages (size N) in arbitrary units [A]

  • edge_values [inout]

    edge values of piecewise polynomials, with the same units as u [A].

  • ppoly_coef [inout]

    coefficients of piecewise polynomials, mainly with the same units as u [A].

  • h_neglect [in]

    A negligibly small width for the purpose of cell reconstructions in the same units as h [H]

Callees call graph
Callees of plm_functions::plm_reconstruction calls cluster_plm_functions PLM_functions plm_functions::plm_monotonized_slope PLM_monotonized_slope plm_functions::plm_reconstruction PLM_reconstruction plm_functions::plm_reconstruction->plm_functions::plm_monotonized_slope plm_functions::plm_slope_wa PLM_slope_wa plm_functions::plm_reconstruction->plm_functions::plm_slope_wa
Text view
Callers call graph
Callers of plm_functions::plm_reconstruction calls cluster_mom_remapping MOM_remapping cluster_plm_functions PLM_functions cluster_regrid_interp regrid_interp mom_remapping::build_reconstructions_1d build_reconstructions_1d plm_functions::plm_reconstruction PLM_reconstruction mom_remapping::build_reconstructions_1d->plm_functions::plm_reconstruction mom_remapping::remapping_unit_tests remapping_unit_tests mom_remapping::remapping_unit_tests->plm_functions::plm_reconstruction regrid_interp::regridding_set_ppolys regridding_set_ppolys regrid_interp::regridding_set_ppolys->plm_functions::plm_reconstruction
Text view
subroutine PLM_boundary_extrapolation(N, h, u, edge_values, ppoly_coef, 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 [in]

    Number of cells

  • h [in]

    cell widths (size N) [H]

  • u [in]

    cell averages (size N) in arbitrary units [A]

  • edge_values [inout]

    edge values of piecewise polynomials, with the same units as u [A].

  • ppoly_coef [inout]

    coefficients of piecewise polynomials, mainly with the same units as u [A].

  • h_neglect [in]

    A negligibly small width for the purpose of cell reconstructions in the same units as h [H]

Callees call graph
Callees of plm_functions::plm_boundary_extrapolation calls cluster_plm_functions PLM_functions plm_functions::plm_boundary_extrapolation PLM_boundary_extrapolation plm_functions::plm_extrapolate_slope PLM_extrapolate_slope plm_functions::plm_boundary_extrapolation->plm_functions::plm_extrapolate_slope
Text view
Callers call graph
Callers of plm_functions::plm_boundary_extrapolation calls cluster_mom_remapping MOM_remapping cluster_plm_functions PLM_functions cluster_regrid_interp regrid_interp mom_remapping::build_reconstructions_1d build_reconstructions_1d plm_functions::plm_boundary_extrapolation PLM_boundary_extrapolation mom_remapping::build_reconstructions_1d->plm_functions::plm_boundary_extrapolation mom_remapping::remapping_unit_tests remapping_unit_tests mom_remapping::remapping_unit_tests->plm_functions::plm_boundary_extrapolation regrid_interp::regridding_set_ppolys regridding_set_ppolys regrid_interp::regridding_set_ppolys->plm_functions::plm_boundary_extrapolation
Text view
API generated with Flint · Rendered from reStructuredText