|
chombo-discharge
|
Class for interpolating cell-centered data to the cell centroid. More...
#include <CD_CellCentroidInterpolation.H>
Public Types | |
| enum class | Type { Constant , Linear , Taylor , LeastSquares , PiecewiseLinear , MinMod , MonotonizedCentral , Superbee } |
| Supported interpolation types. | |
Protected Attributes | |
| bool | m_isDefined |
| Defined or not. | |
| EBLevelGrid | m_eblg |
| Grids. | |
| Type | m_interpolationType |
| Interpolation type. | |
| Real | m_dx |
| Grid resolution. | |
| LayoutData< VoFIterator > | m_vofIterator |
| VoF iterator for iterating through the cut-cells. | |
| LayoutData< BaseIVFAB< VoFStencil > > | m_interpStencils |
| Stencils. This is only populated when the interpolation is expressable as a stencil. | |
Class for interpolating cell-centered data to the cell centroid.
Various interpolation methods are supported, where some are supported by explicitly expressable stencils and others through limiters.
This is a per-level class without AMR functionality. On coarse-fine interfaces near the EB the user must fill the ghost cells prior to the interpolation.
|
noexcept |
Defining constructor. This calls the define function.
| [in] | a_eblg | Grids |
| [in] | a_dx | Grid resolution |
| [in] | a_interpolationType | Interpolation type |
|
virtualnoexcept |
Define function. Puts object in usable state.
| [in] | a_eblg | Grids |
| [in] | a_dx | Grid resolution |
| [in] | a_interpolationType | Interpolation type |
|
protectedvirtualnoexcept |
Utility function for fetching a least-squares based interpolation stencil.
| [out] | a_stencil | Stencil |
| [in] | a_vof | VolIndex for cut-cell |
| [in] | a_ebisBox | EB grid box |
| [in] | a_domain | Grid domain |
|
protectedvirtualnoexcept |
Utility function for fetching a bilinear/trilinear stencil.
| [out] | a_stencil | Stencil |
| [in] | a_vof | VolIndex for cut-cell |
| [in] | a_ebisBox | EB grid box |
| [in] | a_domain | Grid domain |
|
protectedvirtualnoexcept |
Utility function for fetching a piecewise linear stencil.
| [out] | a_stencil | Stencil |
| [in] | a_vof | VolIndex for cut-cell |
| [in] | a_ebisBox | EB grid box |
| [in] | a_domain | Grid domain |
|
protectedvirtualnoexcept |
Utility function for fetching a Taylor-extrapolation stencil.
| [out] | a_stencil | Stencil |
| [in] | a_vof | VolIndex for cut-cell |
| [in] | a_ebisBox | EB grid box |
| [in] | a_domain | Grid domain |
|
virtualnoexcept |
Function for interpolating data.
| [out] | a_centroidData | Centroid-centered data. |
| [in] | a_cellData | Cell-centered data. |
|
virtualnoexcept |
Function for interpolating data.
This version will copy the data from the regular cells and interpolate data in the cut-cells.
| [out] | a_centroidData | Centroid-centered data. |
| [in] | a_cellData | Cell-centered data. |
|
virtualnoexcept |
Function for interpolating data.
| [in,out] | a_centroidData | Cell-centered on input and centroid centered on output. |
|
noexcept |
Interpolation function.
| [out] | a_centroidData | Centroid-centered data. |
| [in] | a_cellData | Cell-centered data. |
|
inlineprotectednoexcept |
Minmod slope function.
| [in] | a_dwl | Left slope |
| [in] | a_dwr | Right slope |
|
inlineprotectednoexcept |
Monotonized central difference slope limiter.
| [in] | a_dwl | Left slope |
| [in] | a_dwr | Right slope |
|
inlineprotectednoexcept |
Superbee slope limiter.
| [in] | a_dwl | Left slope |
| [in] | a_dwr | Right slope |