Skip to content

Runtime Parameters: Interpolation

Hsi-Yu Schive edited this page Jun 10, 2022 · 14 revisions

This page describes the supported interpolation schemes for (i) grid refinement and (ii) preparing the ghost zones around any coarse-fine boundaries.

Compilation Options

Related options: None

Runtime Parameters

Parameters described on this page: OPT__INT_TIME,   OPT__FLU_INT_SCHEME,   OPT__REF_FLU_INT_SCHEME,   OPT__MAG_INT_SCHEME,   OPT__REF_MAG_INT_SCHEME,   OPT__POT_INT_SCHEME,   OPT__RHO_INT_SCHEME,   OPT__GRA_INT_SCHEME,   OPT__REF_POT_INT_SCHEME,   INT_MONO_COEFF,   MONO_MAX_ITER,   INT_OPP_SIGN_0TH_ORDER  

Other related parameters: None

Supported interpolation schemes:

ID Interpolation Scheme
-1 Set to default
1 3D MinMod limiter
2 1D MinMod limiter
3 vanLeer limiter
4 Conservative quadratic
5 Non-conservative quadratic
6 Conservative quartic
7 Non-conservative quartic

Parameters below are shown in the format:   Name   (Valid Values)   [Default Value]

  • OPT__INT_TIME   (0=off, 1=on)   [1]

    • Description: Enable temporal interpolation when preparing ghost zones.
    • Restriction: Only applicable when adopting the adaptive timestep integration (i.e., OPT__DT_LEVEL=2/3).

  • OPT__FLU_INT_SCHEME   (see "Supported interpolation schemes")   [-1]

    • Description: Interpolation scheme for preparing the ghost zones of the fluid solver.
    • Restriction:

  • OPT__REF_FLU_INT_SCHEME   (see "Supported interpolation schemes")   [-1]

    • Description: Interpolation scheme for computing the fluid variables on the newly refined patches.
    • Restriction:

  • OPT__MAG_INT_SCHEME   (only 2, 3, 4, 6 in "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for preparing the ghost-zone magnetic field of the fluid solver.
    • Restriction: For MHD only.

  • OPT__REF_MAG_INT_SCHEME   (only 2, 3, 4, 6 in "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for computing the magnetic field on the newly refined patches.
    • Restriction: For MHD only.

  • OPT__POT_INT_SCHEME   (only 4 & 5 in "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for preparing the ghost-zone potential for the Poisson solver.
    • Restriction:

  • OPT__RHO_INT_SCHEME   (see "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for preparing the ghost-zone mass density for the Poisson solver.
    • Restriction:

  • OPT__GRA_INT_SCHEME   (see "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for preparing the ghost-zone potential for computing the gravitational acceleration.
    • Restriction:

  • OPT__REF_POT_INT_SCHEME   (see "Supported interpolation schemes")   [4]

    • Description: Interpolation scheme for computing the gravitational potential on the newly refined patches.
    • Restriction:

  • INT_MONO_COEFF   (1.0 ≤ input ≤ 4.0)   [2.0]

    • Description: Slope limiter coefficient for ensuring monotonicity in interpolation. The interpolation results become more diffusive (and presumably also more stable) when adopting a smaller value.
    • Restriction:

  • MONO_MAX_ITER   (0=off, ≥0=on)   [0]

    • Description: Maximum number of iterations to reduce INT_MONO_COEFF when interpolation fails. It improves code stability.
    • Restriction:

  • INT_OPP_SIGN_0TH_ORDER   (0=off, 1=on)   [1]

    • Description: Apply 0th-order interpolation if the values to be interpolated change signs in adjacent cells. This helps avoid introducing unphysically large velocity in low-density valleys.
    • Restriction:

Remarks


Links

Clone this wiki locally