Flow123d  DF_patch_fe_darcy_complete-579fe1e
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< internal_integrals::Bulkadd_bulk_internal (Quadrature *)
 
template<unsigned int dim>
std::shared_ptr< internal_integrals::Edgeadd_edge_internal (Quadrature *)
 The same as add_bulk but for edge points on sides. More...
 
unsigned int max_size () const
 Return maximal size of evaluation points objects. More...
 
void clear ()
 
uint get_max_bulk_quad_size (unsigned int dim) const
 Return maximal size of quadrature of given dimension of bulk integral (Bulk, Coupling /lower-dim/) More...
 
uint get_max_side_quad_size (unsigned int dim) const
 Return maximal size of quadrature of given dimension of side integral (Edge, Coupling /higher-dim/, Boundary) More...
 
template<>
std::shared_ptr< internal_integrals::Bulkadd_bulk_internal (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 ()
 
template<class Integral >
uint get_max_integral_quad_size (IntegralPtrMap< Integral > integrals, unsigned int dim) const
 Common implementation of get_max_bulk_quad_size and get_max_side_quad_size. More...
 

Private Attributes

std::array< DimEvalPoints, 4 > dim_eval_points_
 Sub objects of dimensions 0,1,2,3. More...
 
IntegralPtrMap< internal_integrals::Bulkbulk_integrals_
 Maps of all BulkIntegrals of dimensions 0,1,2,3. More...
 
IntegralPtrMap< internal_integrals::Edgeedge_integrals_
 Maps of all EdgeIntegrals of dimensions 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 54 of file eval_points.hh.

Constructor & Destructor Documentation

◆ EvalPoints()

EvalPoints::EvalPoints ( )

Constructor.

Definition at line 29 of file eval_points.cc.

Member Function Documentation

◆ add_bulk_internal() [1/2]

template<unsigned int dim>
template std::shared_ptr< internal_integrals::Bulk > EvalPoints::add_bulk_internal< 3 > ( Quadrature )

Registers point set from quadrature.

Returns an object referencing to the EvalPoints and list of its points.

Definition at line 35 of file eval_points.cc.

◆ add_bulk_internal() [2/2]

template<>
std::shared_ptr<internal_integrals::Bulk> EvalPoints::add_bulk_internal ( Quadrature quad)

Definition at line 35 of file eval_points.cc.

◆ add_edge_internal()

template<unsigned int dim>
template std::shared_ptr< internal_integrals::Edge > EvalPoints::add_edge_internal< 3 > ( Quadrature )

The same as add_bulk but for edge points on sides.

Definition at line 69 of file eval_points.cc.

◆ clear()

void EvalPoints::clear ( )
inline

Definition at line 117 of file eval_points.hh.

◆ get_max_bulk_quad_size()

uint EvalPoints::get_max_bulk_quad_size ( unsigned int  dim) const

Return maximal size of quadrature of given dimension of bulk integral (Bulk, Coupling /lower-dim/)

Definition at line 89 of file eval_points.cc.

◆ get_max_integral_quad_size()

template<class Integral >
uint EvalPoints::get_max_integral_quad_size ( IntegralPtrMap< Integral >  integrals,
unsigned int  dim 
) const
private

Common implementation of get_max_bulk_quad_size and get_max_side_quad_size.

Definition at line 98 of file eval_points.cc.

◆ get_max_side_quad_size()

uint EvalPoints::get_max_side_quad_size ( unsigned int  dim) const

Return maximal size of quadrature of given dimension of side integral (Edge, Coupling /higher-dim/, Boundary)

Definition at line 93 of file eval_points.cc.

◆ 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 75 of file eval_points.hh.

◆ max_size()

unsigned int EvalPoints::max_size ( ) const
inline

Return maximal size of evaluation points objects.

Definition at line 113 of file eval_points.hh.

◆ n_subsets()

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

Return number of subsets.

Definition at line 96 of file eval_points.hh.

◆ set_max_size()

void EvalPoints::set_max_size ( )
inlineprivate

Definition at line 191 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 69 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 81 of file eval_points.hh.

◆ subset_end()

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

Return end index of appropriate subset data.

Definition at line 86 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 91 of file eval_points.hh.

Member Data Documentation

◆ bulk_integrals_

IntegralPtrMap<internal_integrals::Bulk> EvalPoints::bulk_integrals_
private

Maps of all BulkIntegrals of dimensions 0,1,2,3.

Definition at line 204 of file eval_points.hh.

◆ dim_eval_points_

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

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

Definition at line 201 of file eval_points.hh.

◆ edge_integrals_

IntegralPtrMap<internal_integrals::Edge> EvalPoints::edge_integrals_
private

Maps of all EdgeIntegrals of dimensions 1,2,3.

Definition at line 207 of file eval_points.hh.

◆ max_size_

unsigned int EvalPoints::max_size_
private

Maximal number of used EvalPoints.

Definition at line 210 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 63 of file eval_points.hh.

◆ max_subsets

constexpr unsigned int EvalPoints::max_subsets = 10
staticconstexpr

Maximal number of hold subsets.

Definition at line 60 of file eval_points.hh.

◆ undefined_dim

const unsigned int EvalPoints::undefined_dim = 10
static

Undefined dimension of new (empty) object.

Definition at line 57 of file eval_points.hh.


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