Recon1d_PPM_H4_2018 module reference

Piecewise Parabolic Method 1D reconstruction with h4 interpolation for edges (2018 version)

This implementation of PPM follows White and Adcroft 2008 [91], with cells resorting to PCM for extrema including first and last cells in column. This scheme differs from Colella and Woodward, 1984 [18], in the method of first estimating the fourth-order accurate edge values. This uses numerical expressions that predate a 2019 refactoring. The first and last cells are always limited to PCM.

Data Types

PPM_H4_2018

PPM reconstruction following White and Adcroft, 2008

Functions/Subroutines

reconstruct

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

unit_tests

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

Detailed Description

Type Documentation

type, extends(PPM_H4_2019) :: PPM_H4_2018

PPM reconstruction following White and Adcroft, 2008

Implemented by extending recon1d_ppm_h4_2019.

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

  • init() -> recon1d_ppm_h4_2019.init()

  • reconstruct() *locally defined

  • average() -> recon1d_ppm_h4_2019.average()

  • f() -> recon1d_ppm_h4_2019.f()

  • dfdx() -> recon1d_ppm_h4_2019.dfdx()

  • check_reconstruction() -> recon1d_ppm_h4_2019.check_reconstruction()

  • unit_tests() *locally defined

  • destroy() -> recon1d_ppm_h4_2019.destroy()

  • remap_to_sub_grid() -> recon1d_type.remap_to_sub_grid()

  • init_parent() -> recon1d_ppm_h4_2019.init()

  • reconstruct_parent() -> recon1d_ppm_h4_2019.reconstruct()

Functions/Subroutine Documentation

subroutine reconstruct(this, h, u)

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

Parameters
  • this [inout]

    This reconstruction

  • h [in]

    Grid spacing (thickness) [typically H]

  • u [in]

    Cell mean values [A]

  • hMinFrac

    A minimum fraction for min(h)/sum(h) [nondim]

Callees call graph
Callees of recon1d_ppm_h4_2018::reconstruct calls cluster_recon1d_ppm_h4_2018 Recon1d_PPM_H4_2018 cluster_regrid_edge_values regrid_edge_values cluster_regrid_solvers regrid_solvers recon1d_ppm_h4_2018::reconstruct reconstruct [private/internal] regrid_edge_values::bound_edge_values bound_edge_values recon1d_ppm_h4_2018::reconstruct->regrid_edge_values::bound_edge_values regrid_edge_values::check_discontinuous_edge_values check_discontinuous_edge_values recon1d_ppm_h4_2018::reconstruct->regrid_edge_values::check_discontinuous_edge_values regrid_solvers::solve_linear_system solve_linear_system recon1d_ppm_h4_2018::reconstruct->regrid_solvers::solve_linear_system
Text view
logical function unit_tests(this, verbose, stdout, stderr)

Runs PPM_H4_2018 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