OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <AmrPCInterpolater.h>
Public Types | |
typedef Level::go_t | go_t |
typedef Level::lo_t | lo_t |
typedef Level::scalar_t | scalar_t |
typedef Level::umap_t | umap_t |
typedef Level::basefab_t | basefab_t |
typedef amr::AmrIntVect_t | AmrIntVect_t |
![]() | |
typedef Level::go_t | go_t |
typedef Level::lo_t | lo_t |
typedef Level::scalar_t | scalar_t |
typedef Level::umap_t | umap_t |
typedef Level::basefab_t | basefab_t |
typedef amr::AmrIntVect_t | AmrIntVect_t |
Public Member Functions | |
AmrPCInterpolater () | |
void | stencil (const AmrIntVect_t &iv, const basefab_t &fab, umap_t &map, const scalar_t &scale, Level *mglevel) |
void | coarse (const AmrIntVect_t &iv, umap_t &map, const scalar_t &scale, lo_t dir, lo_t shift, const basefab_t &rfab, const AmrIntVect_t &riv, Level *mglevel) |
void | fine (const AmrIntVect_t &iv, umap_t &map, const scalar_t &scale, lo_t dir, lo_t shift, const basefab_t &fab, Level *mglevel) |
![]() | |
AmrInterpolater (lo_t nPoints) | |
const lo_t & | getNumberOfPoints () const |
virtual void | fine (const AmrIntVect_t &iv, umap_t &map, const scalar_t &scale, lo_t dir, lo_t shift, Level *mglevel) |
Additional Inherited Members | |
![]() | |
const lo_t | nPoints_m |
Number of points used for interpolation. More... | |
Definition at line 7 of file AmrPCInterpolater.h.
typedef amr::AmrIntVect_t AmrPCInterpolater< Level >::AmrIntVect_t |
Definition at line 15 of file AmrPCInterpolater.h.
typedef Level::basefab_t AmrPCInterpolater< Level >::basefab_t |
Definition at line 14 of file AmrPCInterpolater.h.
typedef Level::go_t AmrPCInterpolater< Level >::go_t |
Definition at line 10 of file AmrPCInterpolater.h.
typedef Level::lo_t AmrPCInterpolater< Level >::lo_t |
Definition at line 11 of file AmrPCInterpolater.h.
typedef Level::scalar_t AmrPCInterpolater< Level >::scalar_t |
Definition at line 12 of file AmrPCInterpolater.h.
typedef Level::umap_t AmrPCInterpolater< Level >::umap_t |
Definition at line 13 of file AmrPCInterpolater.h.
AmrPCInterpolater< Level >::AmrPCInterpolater | ( | ) |
Definition at line 2 of file AmrPCInterpolater.hpp.
|
virtual |
Coarse-Fine-Interface Get stencil of coarse side
iv | is the coarse cell at the interface (center cell of Laplacian) |
map | with global matrix indices of coarse level cells and matrix entries of coarse level cells (coefficients) |
scale | of matrix values |
dir | direction of interface (0 "horizontal", 1 "vertical", 2 "longitudinal") |
shift | is either -1 or 1. If the refined coarse cell is on the left / lower / front side, shift is equal to -1, otherwise the interface is on the right / upper / back side and the value is 1. |
ba | contains all coarse cells that got refined |
riv | is the fine cell at the interface |
mglevel | used to get the global indices and refinement ratio among levels, and boundary values at physical domain, e.g. Dirichlet, open BC |
Implements AmrInterpolater< Level >.
Definition at line 24 of file AmrPCInterpolater.hpp.
|
virtual |
Coarse-Fine-Interface Get stencil of fine side
iv | is the fine ghost cell at the interface (on coarse cell that is not refined) |
map | with global matrix indices of fine level cells and matrix entries of fine level cells (coefficients) |
scale | of matrix values |
dir | direction of interface (0 "horizontal", 1 "vertical", 2 "longitudinal") |
shift | is either -1 or 1. If the refined coarse cell is on the left / lower / front side, shift is equal to -1, otherwise the interface is on the right / upper / back side and the value is 1. |
ba | contains all coarse cells that got refined |
mglevel | used to get the global indices and refinement ratio among levels, and boundary avlues at physical domain, e.g. Dirichlet, open BC |
Reimplemented from AmrInterpolater< Level >.
Definition at line 37 of file AmrPCInterpolater.hpp.
|
virtual |
Get the stencil to interpolate a value from coarse to fine level
iv | is the fine cell where we want to have the interpolated value |
map | with global matrix indices of coarse level cells and matrix entries of coarse level cells (coefficients) |
scale | to apply to matrix values |
mglevel | used to get the global indices and refinement ratio among levels, and boundary values at physical domain, e.g. Dirichlet, open BC |
Implements AmrInterpolater< Level >.
Definition at line 8 of file AmrPCInterpolater.hpp.