OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
AmrTrilinearInterpolater< Level > Class Template Reference

#include <AmrTrilinearInterpolater.h>

Inheritance diagram for AmrTrilinearInterpolater< Level >:
Collaboration diagram for AmrTrilinearInterpolater< Level >:

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

Public Member Functions

 AmrTrilinearInterpolater ()
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)
const lo_tgetNumberOfPoints () const
virtual void fine (const AmrIntVect_t &, umap_t &, const scalar_t &, lo_t, lo_t, Level *)

Protected Attributes

const lo_t nPoints_m
 Number of points used for interpolation.

Detailed Description

template<class Level>
class AmrTrilinearInterpolater< Level >

Definition at line 30 of file AmrTrilinearInterpolater.h.

Member Typedef Documentation

◆ AmrIntVect_t

template<class Level>
typedef amr::AmrIntVect_t AmrTrilinearInterpolater< Level >::AmrIntVect_t

Definition at line 38 of file AmrTrilinearInterpolater.h.

◆ basefab_t

template<class Level>
typedef Level::basefab_t AmrTrilinearInterpolater< Level >::basefab_t

Definition at line 37 of file AmrTrilinearInterpolater.h.

◆ go_t

template<class Level>
typedef Level::go_t AmrTrilinearInterpolater< Level >::go_t

Definition at line 33 of file AmrTrilinearInterpolater.h.

◆ lo_t

template<class Level>
typedef Level::lo_t AmrTrilinearInterpolater< Level >::lo_t

Definition at line 34 of file AmrTrilinearInterpolater.h.

◆ scalar_t

template<class Level>
typedef Level::scalar_t AmrTrilinearInterpolater< Level >::scalar_t

Definition at line 35 of file AmrTrilinearInterpolater.h.

◆ umap_t

template<class Level>
typedef Level::umap_t AmrTrilinearInterpolater< Level >::umap_t

Definition at line 36 of file AmrTrilinearInterpolater.h.

Constructor & Destructor Documentation

◆ AmrTrilinearInterpolater()

template<class Level>
AmrTrilinearInterpolater< Level >::AmrTrilinearInterpolater ( )

Definition at line 22 of file AmrTrilinearInterpolater.hpp.

References AmrInterpolater< Level >::AmrInterpolater().

Here is the call graph for this function:

Member Function Documentation

◆ coarse()

template<class Level>
void AmrTrilinearInterpolater< Level >::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 )
virtual

Coarse-Fine-Interface Get stencil of coarse side

Parameters
ivis the coarse cell at the interface (center cell of Laplacian)
mapwith global matrix indices of coarse level cells and matrix entries of coarse level cells (coefficients)
scaleof matrix values
dirdirection of interface (0 "horizontal", 1 "vertical", 2 "longitudinal")
shiftis 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.
rfabcontains all coarse cells that got refined
rivis the fine cell at the interface
mglevelused 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 118 of file AmrTrilinearInterpolater.hpp.

◆ fine() [1/2]

template<class Level>
virtual void AmrInterpolater< Level >::fine ( const AmrIntVect_t & ,
umap_t & ,
const scalar_t & ,
lo_t ,
lo_t ,
Level *  )
inlinevirtualinherited

Coarse-Fine-Interface Get stencil of fine side

Parameters
ivis the fine ghost cell at the interface (on coarse cell that is not refined)
mapwith global matrix indices of fine level cells and matrix entries of fine level cells (coefficients)
scaleof matrix values
dirdirection of interface (0 "horizontal", 1 "vertical", 2 "longitudinal")
shiftis 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.
mglevelused to get the global indices and refinement ratio among levels, and boundary avlues at physical domain, e.g. Dirichlet, open BC

Reimplemented in AmrLagrangeInterpolater< Level >.

Definition at line 128 of file AmrInterpolater.h.

◆ fine() [2/2]

template<class Level>
void AmrTrilinearInterpolater< Level >::fine ( const AmrIntVect_t & ,
umap_t & ,
const scalar_t & ,
lo_t ,
lo_t ,
const basefab_t & ,
Level *  )
virtual

Coarse-Fine-Interface Get stencil of fine side

Parameters
ivis the fine ghost cell at the interface (on coarse cell that is not refined)
mapwith global matrix indices of fine level cells and matrix entries of fine level cells (coefficients)
scaleof matrix values
dirdirection of interface (0 "horizontal", 1 "vertical", 2 "longitudinal")
shiftis 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.
fabcontains all coarse cells that got refined
mglevelused 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 131 of file AmrTrilinearInterpolater.hpp.

References stencil().

Here is the call graph for this function:

◆ getNumberOfPoints()

template<class Level>
const lo_t & AmrInterpolater< Level >::getNumberOfPoints ( ) const
inlineinherited

Number of cell points used for interpolation.

Definition at line 47 of file AmrInterpolater.h.

References nPoints_m.

◆ stencil()

template<class Level>
void AmrTrilinearInterpolater< Level >::stencil ( const AmrIntVect_t & iv,
const basefab_t & fab,
umap_t & map,
const scalar_t & scale,
Level * mglevel )
virtual

Get the stencil to interpolate a value from coarse to fine level

Parameters
ivis the fine cell where we want to have the interpolated value
fabcells
mapwith global matrix indices of coarse level cells and matrix entries of coarse level cells (coefficients)
scaleto apply to matrix values
mglevelused 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 28 of file AmrTrilinearInterpolater.hpp.

Referenced by fine().

Member Data Documentation

◆ nPoints_m

template<class Level>
const lo_t AmrInterpolater< Level >::nPoints_m
protectedinherited

Number of points used for interpolation.

Definition at line 136 of file AmrInterpolater.h.

Referenced by AmrInterpolater(), AmrLagrangeInterpolater< Level >::coarse(), AmrLagrangeInterpolater< Level >::fine(), and getNumberOfPoints().


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