quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
quadgrid_t< distributed_vector >::cell_t Class Reference

#include <quadgrid_cpp.h>

Public Member Functions

 cell_t (const grid_properties_t &_gp)
 
double p (idx_t i, idx_t j) const
 
double centroid (idx_t i)
 
idx_t t (idx_t i) const
 
idx_t gt (idx_t i) const
 
idx_t e (idx_t i) const
 
double shp (double x, double y, idx_t inode) const
 
double shg (double x, double y, idx_t idir, idx_t inode) const
 
neighbor_iterator begin_neighbor_sweep ()
 
const neighbor_iterator begin_neighbor_sweep () const
 
neighbor_iterator end_neighbor_sweep ()
 
const neighbor_iterator end_neighbor_sweep () const
 
idx_t get_local_cell_idx () const
 
idx_t get_global_cell_idx () const
 
idx_t end_cell_col () const
 
idx_t end_cell_row () const
 
idx_t start_cell_col () const
 
idx_t start_cell_row () const
 
idx_t num_rows () const
 
idx_t num_cols () const
 
idx_t row_idx () const
 
idx_t col_idx () const
 
idx_t sub2gind (idx_t r, idx_t c) const
 
idx_t gind2row (idx_t idx) const
 
idx_t gind2col (idx_t idx) const
 
void reset ()
 

Static Public Attributes

static constexpr idx_t nodes_per_cell = 4
 
static constexpr idx_t edges_per_cell = 4
 
static constexpr idx_t NOT_ON_BOUNDARY = -1
 

Private Attributes

bool is_ghost
 
idx_t rowidx
 
idx_t colidx
 
idx_t local_cell_idx
 
idx_t global_cell_idx
 
const grid_properties_tgrid_properties
 

Friends

class cell_iterator
 

Constructor & Destructor Documentation

◆ cell_t()

template<class distributed_vector >
quadgrid_t< distributed_vector >::cell_t::cell_t ( const grid_properties_t _gp)
inline

Member Function Documentation

◆ begin_neighbor_sweep() [1/2]

template<class distributed_vector >
neighbor_iterator quadgrid_t< distributed_vector >::cell_t::begin_neighbor_sweep ( )

◆ begin_neighbor_sweep() [2/2]

template<class distributed_vector >
const neighbor_iterator quadgrid_t< distributed_vector >::cell_t::begin_neighbor_sweep ( ) const

◆ centroid()

template<class distributed_vector >
double quadgrid_t< distributed_vector >::cell_t::centroid ( idx_t  i)

◆ col_idx()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::col_idx ( ) const
inline

◆ e()

template<class distributed_vector >
quadgrid_t< T >::idx_t quadgrid_t< T >::cell_t::e ( idx_t  i) const

◆ end_cell_col()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::end_cell_col ( ) const
inline

◆ end_cell_row()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::end_cell_row ( ) const
inline

◆ end_neighbor_sweep() [1/2]

template<class distributed_vector >
neighbor_iterator quadgrid_t< distributed_vector >::cell_t::end_neighbor_sweep ( )
inline

◆ end_neighbor_sweep() [2/2]

template<class distributed_vector >
const neighbor_iterator quadgrid_t< distributed_vector >::cell_t::end_neighbor_sweep ( ) const
inline

◆ get_global_cell_idx()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::get_global_cell_idx ( ) const
inline

◆ get_local_cell_idx()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::get_local_cell_idx ( ) const
inline

◆ gind2col()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::gind2col ( idx_t  idx) const
inline

◆ gind2row()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::gind2row ( idx_t  idx) const
inline

◆ gt()

template<class distributed_vector >
quadgrid_t< T >::idx_t quadgrid_t< T >::cell_t::gt ( idx_t  i) const

◆ num_cols()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::num_cols ( ) const
inline

◆ num_rows()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::num_rows ( ) const
inline

◆ p()

template<class distributed_vector >
double quadgrid_t< T >::cell_t::p ( idx_t  i,
idx_t  j 
) const

◆ reset()

template<class distributed_vector >
void quadgrid_t< distributed_vector >::cell_t::reset ( )
inline

◆ row_idx()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::row_idx ( ) const
inline

◆ shg()

template<class T >
double quadgrid_t< T >::cell_t::shg ( double  x,
double  y,
idx_t  idir,
idx_t  inode 
) const

◆ shp()

template<class T >
double quadgrid_t< T >::cell_t::shp ( double  x,
double  y,
idx_t  inode 
) const

◆ start_cell_col()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::start_cell_col ( ) const
inline

◆ start_cell_row()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::start_cell_row ( ) const
inline

◆ sub2gind()

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::sub2gind ( idx_t  r,
idx_t  c 
) const
inline

◆ t()

template<class distributed_vector >
quadgrid_t< T >::idx_t quadgrid_t< T >::cell_t::t ( idx_t  i) const

Friends And Related Function Documentation

◆ cell_iterator

template<class distributed_vector >
friend class cell_iterator
friend

Member Data Documentation

◆ colidx

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::colidx
private

◆ edges_per_cell

template<class distributed_vector >
constexpr idx_t quadgrid_t< distributed_vector >::cell_t::edges_per_cell = 4
staticconstexpr

◆ global_cell_idx

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::global_cell_idx
private

◆ grid_properties

template<class distributed_vector >
const grid_properties_t& quadgrid_t< distributed_vector >::cell_t::grid_properties
private

◆ is_ghost

template<class distributed_vector >
bool quadgrid_t< distributed_vector >::cell_t::is_ghost
private

◆ local_cell_idx

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::local_cell_idx
private

◆ nodes_per_cell

template<class distributed_vector >
constexpr idx_t quadgrid_t< distributed_vector >::cell_t::nodes_per_cell = 4
staticconstexpr

◆ NOT_ON_BOUNDARY

template<class distributed_vector >
constexpr idx_t quadgrid_t< distributed_vector >::cell_t::NOT_ON_BOUNDARY = -1
staticconstexpr

◆ rowidx

template<class distributed_vector >
idx_t quadgrid_t< distributed_vector >::cell_t::rowidx
private

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