openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | List of all members
SF::element_view< T, S > Class Template Reference

Comfort class. Provides getter functions to access the mesh member variables more comfortably. More...

#include <SF_fem_utils.h>

Collaboration diagram for SF::element_view< T, S >:

Public Member Functions

 element_view (const meshdata< T, S > &mesh, const SF_nbr nbr)
 Constructor. Initializes to element index 0. More...
 
void set_elem (size_t eidx)
 Set the view to a new element. More...
 
bool next ()
 Select next element if possible. More...
 
num_nodes () const
 Getter function for the number of nodes. More...
 
elem_t type () const
 Getter function for the element type. More...
 
tag () const
 Getter function for the element tag. More...
 
const T & node (short nidx) const
 Access the connectivity information. More...
 
const T & global_node (short nidx) const
 Access the connectivity information. More...
 
const T & global_node (short nidx, SF_nbr nbr) const
 Access the connectivity information. More...
 
const T * nodes () const
 Access the connectivity information. More...
 
Point coord (short nidx) const
 Access vertex coordinates. More...
 
Point coord_upd (short nidx) const
 Access updated vertex coordinates. More...
 
void upd_coords (short nidx, double *pos_upd)
 ACHTUNG: Update der Koordinaten durch const Qualifier des meshes hier nicht möglich. More...
 
Point fiber () const
 Get element fiber direction. More...
 
Point sheet () const
 Get element sheet direction. More...
 
bool has_sheet () const
 Check if a sheet direction is present. More...
 
size_t element_index () const
 Get currently selected element index. More...
 
size_t global_element_index () const
 Get currently selected element index. More...
 
size_t global_element_index (SF_nbr nbr) const
 Get currently selected element index. More...
 
short num_dof (short order) const
 
void integration_points (const short order, Point *ip, double *w, int &nint) const
 
short dimension () const
 

Detailed Description

template<class T, class S>
class SF::element_view< T, S >

Comfort class. Provides getter functions to access the mesh member variables more comfortably.

Template Parameters
TInteger type.
SFloating point type.

Definition at line 704 of file SF_fem_utils.h.

Constructor & Destructor Documentation

◆ element_view()

template<class T , class S >
SF::element_view< T, S >::element_view ( const meshdata< T, S > &  mesh,
const SF_nbr  nbr 
)
inline

Constructor. Initializes to element index 0.

Parameters
[in]meshThe mesh which should be linked to the element view.

Definition at line 721 of file SF_fem_utils.h.

Member Function Documentation

◆ coord()

template<class T , class S >
Point SF::element_view< T, S >::coord ( short  nidx) const
inline

Access vertex coordinates.

Parameters
[in]nidxConnectivity index w.r.t. the current element (e.g. 0-3 for a Tetra).
Returns
Vertex coordinate.

Definition at line 842 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ coord_upd()

template<class T , class S >
Point SF::element_view< T, S >::coord_upd ( short  nidx) const
inline

Access updated vertex coordinates.

Parameters
[in]nidxConnectivity index w.r.t. the current element (e.g. 0-3 for a Tetra).
Returns
Updated Vertex coordinate.

Definition at line 854 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ dimension()

template<class T , class S >
short SF::element_view< T, S >::dimension ( ) const
inline

Definition at line 942 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ element_index()

template<class T , class S >
size_t SF::element_view< T, S >::element_index ( ) const
inline

Get currently selected element index.

Returns
Element index.

Definition at line 906 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ fiber()

template<class T , class S >
Point SF::element_view< T, S >::fiber ( ) const
inline

Get element fiber direction.

Returns
Fiber direction.

Definition at line 874 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ global_element_index() [1/2]

template<class T , class S >
size_t SF::element_view< T, S >::global_element_index ( ) const
inline

Get currently selected element index.

Returns
Element index.

Definition at line 916 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ global_element_index() [2/2]

template<class T , class S >
size_t SF::element_view< T, S >::global_element_index ( SF_nbr  nbr) const
inline

Get currently selected element index.

Parameters
[in]nbrNumbering to use.
Returns
Element index.

Definition at line 926 of file SF_fem_utils.h.

◆ global_node() [1/2]

template<class T , class S >
const T& SF::element_view< T, S >::global_node ( short  nidx) const
inline

Access the connectivity information.

Parameters
[in]nidxConnectivity index w.r.t. the current element (e.g. 0-3 for a Tetra).
Returns
Local index w.r.t. to the local domain. Use the mesh numberings to access global indices.

Definition at line 807 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ global_node() [2/2]

template<class T , class S >
const T& SF::element_view< T, S >::global_node ( short  nidx,
SF_nbr  nbr 
) const
inline

Access the connectivity information.

Parameters
[in]nidxConnectivity index w.r.t. the current element (e.g. 0-3 for a Tetra).
[in]nbrNumbering to use.
Returns
Local index w.r.t. to the local domain. Use the mesh numberings to access global indices.

Definition at line 820 of file SF_fem_utils.h.

◆ has_sheet()

template<class T , class S >
bool SF::element_view< T, S >::has_sheet ( ) const
inline

Check if a sheet direction is present.

Returns
Whether sheet direction is present.

Definition at line 896 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ integration_points()

template<class T , class S >
void SF::element_view< T, S >::integration_points ( const short  order,
Point ip,
double *  w,
int &  nint 
) const
inline

Definition at line 937 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ next()

template<class T , class S >
bool SF::element_view< T, S >::next ( )
inline

Select next element if possible.

Returns
Whether there was a next element.

Definition at line 747 of file SF_fem_utils.h.

◆ node()

template<class T , class S >
const T& SF::element_view< T, S >::node ( short  nidx) const
inline

Access the connectivity information.

Parameters
[in]nidxConnectivity index w.r.t. the current element (e.g. 0-3 for a Tetra).
Returns
Local index w.r.t. to the local domain. Use the mesh numberings to access global indices.

Definition at line 795 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ nodes()

template<class T , class S >
const T* SF::element_view< T, S >::nodes ( ) const
inline

Access the connectivity information.

Returns
Local connectivity indices.

Definition at line 831 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ num_dof()

template<class T , class S >
short SF::element_view< T, S >::num_dof ( short  order) const
inline

Definition at line 932 of file SF_fem_utils.h.

◆ num_nodes()

template<class T , class S >
T SF::element_view< T, S >::num_nodes ( ) const
inline

Getter function for the number of nodes.

Returns
The number of nodes.

Definition at line 763 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ set_elem()

template<class T , class S >
void SF::element_view< T, S >::set_elem ( size_t  eidx)
inline

Set the view to a new element.

Parameters
[in]eidxAn element index.

Definition at line 733 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ sheet()

template<class T , class S >
Point SF::element_view< T, S >::sheet ( ) const
inline

Get element sheet direction.

Returns
Sheet direction.

Definition at line 883 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ tag()

template<class T , class S >
T SF::element_view< T, S >::tag ( ) const
inline

Getter function for the element tag.

Returns
The element tag.

Definition at line 783 of file SF_fem_utils.h.

◆ type()

template<class T , class S >
elem_t SF::element_view< T, S >::type ( ) const
inline

Getter function for the element type.

Returns
The element type.

Definition at line 773 of file SF_fem_utils.h.

Here is the caller graph for this function:

◆ upd_coords()

template<class T , class S >
void SF::element_view< T, S >::upd_coords ( short  nidx,
double *  pos_upd 
)
inline

ACHTUNG: Update der Koordinaten durch const Qualifier des meshes hier nicht möglich.

Definition at line 861 of file SF_fem_utils.h.


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