|
chombo-discharge
|
Class which computes a bi/tri-linear stencil in cut-cells. This class makes appropriate modifications if one of the cells don't exist, and even if there are multivalued cells present. More...
#include <CD_LinearStencil.H>
Static Public Member Functions | |
| static bool | getLinearInterpStencil (VoFStencil &a_stencil, const RealVect &a_pos, const VolIndex &a_vof, const ProblemDomain &a_domain, const EBISBox &a_ebisbox) |
| Get a bi(tri)linear interpolation stencil in 2D(3D) | |
Static Protected Member Functions | |
| static bool | computeInterpStencil1D (VoFStencil &a_stencil, const RealVect &a_pos, const VolIndex &a_vof, const ProblemDomain &a_domain, const EBISBox &a_ebisbox, const int a_interpDir) |
| Compute a linear interpolation stencil. | |
| static bool | computeInterpStencil2D (VoFStencil &a_stencil, const RealVect &a_pos, const VolIndex &a_vof, const ProblemDomain &a_domain, const EBISBox &a_ebisbox, const int a_noInterpDir=2) |
| Compute a bilinear interpolation stencil. | |
Static Protected Attributes | |
| static constexpr Real | tolerance = 1.E-6 |
| Tolerance for when we switch between 1D/2D/3D stencils. | |
Class which computes a bi/tri-linear stencil in cut-cells. This class makes appropriate modifications if one of the cells don't exist, and even if there are multivalued cells present.
|
staticprotected |
Compute a linear interpolation stencil.
This only does interpolation along the input coordinate. The other coordinates are ignored.
| [out] | a_stencil | Interpolation stencil |
| [in] | a_pos | Relative position inside cell |
| [in] | a_vof | Cut-cell |
| [in] | a_domain | Domain |
| [in] | a_ebisBox | EBISBox |
| [in] | a_interpDir | Interpolation coordinate |
|
staticprotected |
Compute a bilinear interpolation stencil.
This ignores interpolation along the input coordinate.
| [out] | a_stencil | Interpolation stencil |
| [in] | a_pos | Relative position inside cell |
| [in] | a_vof | Cut-cell |
| [in] | a_domain | Domain |
| [in] | a_ebisBox | EBISBox |
| [in] | a_interpDir | Interpolation coordinate |
|
static |
Get a bi(tri)linear interpolation stencil in 2D(3D)
| [out] | a_stencil | Interpolation stencil |
| [in] | a_pos | Relative position inside cell |
| [in] | a_vof | Cut-cell |
| [in] | a_domain | Domain |
| [in] | a_ebisBox | EBISBox |