Flow123d  release_2.2.0-914-gf1a3a4f
Public Types | Public Member Functions | Private Attributes | List of all members
FEValueHandler< elemdim, spacedim, Value > Class Template Reference

#include <fe_value_handler.hh>

Collaboration diagram for FEValueHandler< elemdim, spacedim, Value >:
Collaboration graph
[legend]

Public Types

typedef Space< spacedim >::Point Point
 

Public Member Functions

 FEValueHandler ()
 Constructor. More...
 
void initialize (FEValueInitData init_data, MappingP1< elemdim, 3 > *map=nullptr)
 Initialize data members. More...
 
MappingP1< elemdim, 3 > * get_mapping ()
 Return mapping object. More...
 
Value::return_type const & value (const Point &p, const ElementAccessor< spacedim > &elm)
 Returns one value in one given point. More...
 
void value_list (const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
 Returns std::vector of scalar values in several points at once. More...
 
bool contains_point (arma::vec point, Element &elm)
 Test if element contains given point. More...
 
 ~FEValueHandler ()
 Destructor. More...
 

Private Attributes

std::shared_ptr< DOFHandlerMultiDimdh_
 DOF handler object. More...
 
VectorSeqDoubledata_vec_
 Store data of Field. More...
 
std::vector< IdxIntdof_indices
 Array of indexes to data_vec_, used for get/set values. More...
 
Value value_
 Last value, prevents passing large values (vectors) by value. More...
 
Value::return_type r_value_
 
MappingP1< elemdim, 3 > * map_
 Mapping object. More...
 

Detailed Description

template<int elemdim, int spacedim, class Value>
class FEValueHandler< elemdim, spacedim, Value >

Helper class that allows compute finite element values specified by element dimension.

Definition at line 46 of file fe_value_handler.hh.

Member Typedef Documentation

template<int elemdim, int spacedim, class Value>
typedef Space<spacedim>::Point FEValueHandler< elemdim, spacedim, Value >::Point

Definition at line 49 of file fe_value_handler.hh.

Constructor & Destructor Documentation

template<int elemdim, int spacedim, class Value >
FEValueHandler< elemdim, spacedim, Value >::FEValueHandler ( )

Constructor.

Definition at line 71 of file fe_value_handler.cc.

template<int elemdim, int spacedim, class Value >
FEValueHandler< elemdim, spacedim, Value >::~FEValueHandler ( )

Destructor.

Definition at line 148 of file fe_value_handler.cc.

Member Function Documentation

template<int elemdim, int spacedim, class Value >
bool FEValueHandler< elemdim, spacedim, Value >::contains_point ( arma::vec  point,
Element elm 
)

Test if element contains given point.

Definition at line 138 of file fe_value_handler.cc.

Here is the caller graph for this function:

template<int elemdim, int spacedim, class Value>
MappingP1<elemdim,3>* FEValueHandler< elemdim, spacedim, Value >::get_mapping ( )
inline

Return mapping object.

Definition at line 57 of file fe_value_handler.hh.

Here is the caller graph for this function:

template<int elemdim, int spacedim, class Value >
void FEValueHandler< elemdim, spacedim, Value >::initialize ( FEValueInitData  init_data,
MappingP1< elemdim, 3 > *  map = nullptr 
)

Initialize data members.

Definition at line 78 of file fe_value_handler.cc.

Here is the caller graph for this function:

template<int elemdim, int spacedim, class Value >
Value::return_type const & FEValueHandler< elemdim, spacedim, Value >::value ( const Point p,
const ElementAccessor< spacedim > &  elm 
)
inline

Returns one value in one given point.

Definition at line 97 of file fe_value_handler.cc.

Here is the caller graph for this function:

template<int elemdim, int spacedim, class Value>
void FEValueHandler< elemdim, spacedim, Value >::value_list ( const std::vector< Point > &  point_list,
const ElementAccessor< spacedim > &  elm,
std::vector< typename Value::return_type > &  value_list 
)

Returns std::vector of scalar values in several points at once.

Definition at line 110 of file fe_value_handler.cc.

Here is the caller graph for this function:

Member Data Documentation

template<int elemdim, int spacedim, class Value>
VectorSeqDouble* FEValueHandler< elemdim, spacedim, Value >::data_vec_
private

Store data of Field.

Definition at line 74 of file fe_value_handler.hh.

template<int elemdim, int spacedim, class Value>
std::shared_ptr<DOFHandlerMultiDim> FEValueHandler< elemdim, spacedim, Value >::dh_
private

DOF handler object.

Definition at line 72 of file fe_value_handler.hh.

template<int elemdim, int spacedim, class Value>
std::vector<IdxInt> FEValueHandler< elemdim, spacedim, Value >::dof_indices
private

Array of indexes to data_vec_, used for get/set values.

Definition at line 76 of file fe_value_handler.hh.

template<int elemdim, int spacedim, class Value>
MappingP1<elemdim,3>* FEValueHandler< elemdim, spacedim, Value >::map_
private

Mapping object.

Definition at line 81 of file fe_value_handler.hh.

template<int elemdim, int spacedim, class Value>
Value::return_type FEValueHandler< elemdim, spacedim, Value >::r_value_
private

Definition at line 79 of file fe_value_handler.hh.

template<int elemdim, int spacedim, class Value>
Value FEValueHandler< elemdim, spacedim, Value >::value_
private

Last value, prevents passing large values (vectors) by value.

Definition at line 78 of file fe_value_handler.hh.


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