Flow123d  master-c50b6b6
Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
EvalPoints Class Reference

Class holds local coordinations of evaluating points (bulk and sides) specified by element dimension. More...

#include <eval_points.hh>

Inheritance diagram for EvalPoints:
Inheritance graph
[legend]
Collaboration diagram for EvalPoints:
Collaboration graph
[legend]

Classes

class  DimEvalPoints
 Subobject holds evaluation points data of one dimension (0,1,2,3) More...
 

Public Member Functions

 EvalPoints ()
 Constructor. More...
 
unsigned int size (unsigned int dim) const
 Return size of evaluation points object (number of points). More...
 
template<unsigned int dim>
arma::vec::fixed< dim > local_point (unsigned int local_point_idx) const
 Return local coordinates of given local point and appropriate dim. More...
 
int subset_begin (unsigned int dim, unsigned int idx) const
 Return begin index of appropriate subset data. More...
 
int subset_end (unsigned int dim, unsigned int idx) const
 Return end index of appropriate subset data. More...
 
int subset_size (unsigned int dim, unsigned int idx) const
 Return number of local points corresponding to subset. More...
 
unsigned int n_subsets (unsigned int dim) const
 Return number of subsets. More...
 
template<unsigned int dim>
std::shared_ptr< BulkIntegraladd_bulk (const Quadrature &)
 
template<unsigned int dim>
std::shared_ptr< EdgeIntegraladd_edge (const Quadrature &)
 The same as add_bulk but for edge points on sides. More...
 
template<unsigned int dim>
std::shared_ptr< CouplingIntegraladd_coupling (const Quadrature &)
 The same as add_bulk but for points between side points of element of dim and bulk points of element of dim-1. More...
 
template<unsigned int dim>
std::shared_ptr< BoundaryIntegraladd_boundary (const Quadrature &)
 The same as add_bulk but for edge points on boundary sides. More...
 
unsigned int max_size () const
 Return maximal size of evaluation points objects. More...
 
void clear ()
 
template<>
std::shared_ptr< BulkIntegraladd_bulk (const Quadrature &quad)
 

Static Public Attributes

static const unsigned int undefined_dim = 10
 Undefined dimension of new (empty) object. More...
 
static constexpr unsigned int max_subsets = 10
 Maximal number of hold subsets. More...
 
static const unsigned int max_subset_points = 30
 Maximal average number of points hold in subset. More...
 

Private Member Functions

void set_max_size ()
 

Private Attributes

std::array< DimEvalPoints, 4 > dim_eval_points_
 Sub objects of dimensions 0,1,2,3. More...
 
unsigned int max_size_
 Maximal number of used EvalPoints. More...
 

Detailed Description

Class holds local coordinations of evaluating points (bulk and sides) specified by element dimension.

Definition at line 43 of file eval_points.hh.

Constructor & Destructor Documentation

◆ EvalPoints()

EvalPoints::EvalPoints ( )

Constructor.

Definition at line 28 of file eval_points.cc.

Member Function Documentation

◆ add_boundary()

template<unsigned int dim>
template std::shared_ptr< BoundaryIntegral > EvalPoints::add_boundary< 3 > ( const Quadrature )

The same as add_bulk but for edge points on boundary sides.

Definition at line 82 of file eval_points.cc.

◆ add_bulk() [1/2]

template<unsigned int dim>
template std::shared_ptr< BulkIntegral > EvalPoints::add_bulk< 3 > ( const Quadrature )

Registers point set from quadrature. Returns an object referencing to the EvalPoints and list of its points.

Definition at line 33 of file eval_points.cc.

Here is the caller graph for this function:

◆ add_bulk() [2/2]

template<>
std::shared_ptr<BulkIntegral> EvalPoints::add_bulk ( const Quadrature quad)

Definition at line 45 of file eval_points.cc.

◆ add_coupling()

template<unsigned int dim>
template std::shared_ptr< CouplingIntegral > EvalPoints::add_coupling< 3 > ( const Quadrature )

The same as add_bulk but for points between side points of element of dim and bulk points of element of dim-1.

Definition at line 71 of file eval_points.cc.

◆ add_edge()

template<unsigned int dim>
template std::shared_ptr< EdgeIntegral > EvalPoints::add_edge< 3 > ( const Quadrature )

The same as add_bulk but for edge points on sides.

Definition at line 55 of file eval_points.cc.

◆ clear()

void EvalPoints::clear ( )
inline

Definition at line 113 of file eval_points.hh.

◆ local_point()

template<unsigned int dim>
arma::vec::fixed<dim> EvalPoints::local_point ( unsigned int  local_point_idx) const
inline

Return local coordinates of given local point and appropriate dim.

Definition at line 64 of file eval_points.hh.

◆ max_size()

unsigned int EvalPoints::max_size ( ) const
inline

Return maximal size of evaluation points objects.

Definition at line 109 of file eval_points.hh.

◆ n_subsets()

unsigned int EvalPoints::n_subsets ( unsigned int  dim) const
inline

Return number of subsets.

Definition at line 85 of file eval_points.hh.

◆ set_max_size()

void EvalPoints::set_max_size ( )
inlineprivate

Definition at line 179 of file eval_points.hh.

Here is the caller graph for this function:

◆ size()

unsigned int EvalPoints::size ( unsigned int  dim) const
inline

Return size of evaluation points object (number of points).

Definition at line 58 of file eval_points.hh.

Here is the caller graph for this function:

◆ subset_begin()

int EvalPoints::subset_begin ( unsigned int  dim,
unsigned int  idx 
) const
inline

Return begin index of appropriate subset data.

Definition at line 70 of file eval_points.hh.

Here is the caller graph for this function:

◆ subset_end()

int EvalPoints::subset_end ( unsigned int  dim,
unsigned int  idx 
) const
inline

Return end index of appropriate subset data.

Definition at line 75 of file eval_points.hh.

◆ subset_size()

int EvalPoints::subset_size ( unsigned int  dim,
unsigned int  idx 
) const
inline

Return number of local points corresponding to subset.

Definition at line 80 of file eval_points.hh.

Member Data Documentation

◆ dim_eval_points_

std::array<DimEvalPoints, 4> EvalPoints::dim_eval_points_
private

Sub objects of dimensions 0,1,2,3.

Definition at line 184 of file eval_points.hh.

◆ max_size_

unsigned int EvalPoints::max_size_
private

Maximal number of used EvalPoints.

Definition at line 187 of file eval_points.hh.

◆ max_subset_points

const unsigned int EvalPoints::max_subset_points = 30
static

Maximal average number of points hold in subset.

Definition at line 52 of file eval_points.hh.

◆ max_subsets

constexpr unsigned int EvalPoints::max_subsets = 10
staticconstexpr

Maximal number of hold subsets.

Definition at line 49 of file eval_points.hh.

◆ undefined_dim

const unsigned int EvalPoints::undefined_dim = 10
static

Undefined dimension of new (empty) object.

Definition at line 46 of file eval_points.hh.


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