Peano
Loading...
Searching...
No Matches
api.InterpolateHangingFaces.InterpolateHangingFaces.Scheme Class Reference

Interpolation schemes. More...

Inheritance diagram for api.InterpolateHangingFaces.InterpolateHangingFaces.Scheme:
Collaboration diagram for api.InterpolateHangingFaces.InterpolateHangingFaces.Scheme:

Static Public Attributes

str PiecewiseConstant = "piecewise_constant"
 
str Linear = "linear_with_constant_extrapolation"
 

Detailed Description

Interpolation schemes.

The value of each entry is the suffix of the C++ routine toolbox::blockstructured::interpolateHaloLayer_AoS_<suffix>().

  • PiecewiseConstant copies the coarse value into all fine volumes which it covers.
  • Linear interpolates linearly along the face. As the coarse face does not hold the coarse volumes beyond its two ends, the scheme extrapolates constantly there. Linear extrapolation would be more accurate, but it can produce unphysical values such as negative densities next to steep gradients (toolbox::blockstructured::internal::createLinearInterpolationMatrix()).

Definition at line 31 of file InterpolateHangingFaces.py.

Field Documentation

◆ Linear

str api.InterpolateHangingFaces.InterpolateHangingFaces.Scheme.Linear = "linear_with_constant_extrapolation"
static

Definition at line 51 of file InterpolateHangingFaces.py.

◆ PiecewiseConstant

str api.InterpolateHangingFaces.InterpolateHangingFaces.Scheme.PiecewiseConstant = "piecewise_constant"
static

Definition at line 50 of file InterpolateHangingFaces.py.


The documentation for this class was generated from the following file: