Flow123d  3.9.1-5cef305
Public Types | Public Member Functions | Static Public Attributes | List of all members
OutputElement Class Reference

Represents an element of the output mesh. Provides element access on the data of the output mesh (nodes, connectivity, offsets etc.). More...

#include <output_element.hh>

Public Types

typedef Space< spacedim >::Point Point
 

Public Member Functions

 OutputElement ()
 Default constructor. More...
 
 OutputElement (unsigned int ele_idx, std::shared_ptr< OutputMeshBase > output_mesh)
 Constructor. More...
 
Output Mesh Getters.
unsigned int idx () const
 Returns index of the output element. More...
 
unsigned int n_nodes () const
 Returns number of nodes. More...
 
unsigned int dim () const
 Returns dim of the output element. More...
 
unsigned int node_index (unsigned int loc_idx) const
 Returns global index of the node. More...
 
std::vector< unsigned int > node_list () const
 Returns global indices of the nodes. More...
 
Point vertex (unsigned int loc_idx) const
 Returns coordinates of node loc_idx. More...
 
std::vector< Pointvertex_list () const
 Returns vector of nodes coordinates. More...
 
Point centre () const
 Computes the barycenter. More...
 

Static Public Attributes

static const unsigned int spacedim = 3
 Element space dimension = 3. More...
 

Original Mesh Getters.

unsigned int ele_idx_
 index of the output element More...
 
std::shared_ptr< OutputMeshBaseoutput_mesh_
 pointer to the output mesh More...
 
Meshorig_mesh () const
 Returns pointer to the computational mesh. More...
 
unsigned int orig_element_idx () const
 Returns index of the master element in the computational mesh. More...
 
ElementAccessor< spacedimelement_accessor () const
 Gets ElementAccessor of this element. More...
 
void inc ()
 
bool operator== (const OutputElement &other)
 

Detailed Description

Represents an element of the output mesh. Provides element access on the data of the output mesh (nodes, connectivity, offsets etc.).

Vertex function suppose spacedim = 3 at the moment, hard coded.

Definition at line 38 of file output_element.hh.

Member Typedef Documentation

◆ Point

Definition at line 44 of file output_element.hh.

Constructor & Destructor Documentation

◆ OutputElement() [1/2]

OutputElement::OutputElement ( )
inline

Default constructor.

Definition at line 91 of file output_element.hh.

◆ OutputElement() [2/2]

OutputElement::OutputElement ( unsigned int  ele_idx,
std::shared_ptr< OutputMeshBase output_mesh 
)
inline

Constructor.

Definition at line 93 of file output_element.hh.

Member Function Documentation

◆ centre()

OutputElement::Point OutputElement::centre ( ) const
inline

Computes the barycenter.

Definition at line 189 of file output_element.hh.

◆ dim()

unsigned int OutputElement::dim ( ) const
inline

Returns dim of the output element.

Definition at line 134 of file output_element.hh.

◆ element_accessor()

ElementAccessor< OutputElement::spacedim > OutputElement::element_accessor ( ) const
inline

Gets ElementAccessor of this element.

Definition at line 118 of file output_element.hh.

◆ idx()

unsigned int OutputElement::idx ( ) const
inline

Returns index of the output element.

Definition at line 124 of file output_element.hh.

◆ inc()

void OutputElement::inc ( )
inline

Definition at line 97 of file output_element.hh.

◆ n_nodes()

unsigned int OutputElement::n_nodes ( ) const
inline

Returns number of nodes.

Definition at line 129 of file output_element.hh.

Here is the caller graph for this function:

◆ node_index()

unsigned int OutputElement::node_index ( unsigned int  loc_idx) const
inline

Returns global index of the node.

Definition at line 140 of file output_element.hh.

◆ node_list()

std::vector< unsigned int > OutputElement::node_list ( ) const
inline

Returns global indices of the nodes.

Definition at line 177 of file output_element.hh.

◆ operator==()

bool OutputElement::operator== ( const OutputElement other)
inline

Definition at line 102 of file output_element.hh.

◆ orig_element_idx()

unsigned int OutputElement::orig_element_idx ( ) const
inline

Returns index of the master element in the computational mesh.

Definition at line 113 of file output_element.hh.

Here is the caller graph for this function:

◆ orig_mesh()

Mesh * OutputElement::orig_mesh ( ) const
inline

Returns pointer to the computational mesh.

Definition at line 108 of file output_element.hh.

◆ vertex()

OutputElement::Point OutputElement::vertex ( unsigned int  loc_idx) const
inline

Returns coordinates of node loc_idx.

Definition at line 149 of file output_element.hh.

◆ vertex_list()

std::vector< OutputElement::Point > OutputElement::vertex_list ( ) const
inline

Returns vector of nodes coordinates.

Definition at line 161 of file output_element.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ ele_idx_

unsigned int OutputElement::ele_idx_
private

index of the output element

Definition at line 84 of file output_element.hh.

◆ output_mesh_

std::shared_ptr<OutputMeshBase> OutputElement::output_mesh_
private

pointer to the output mesh

Definition at line 86 of file output_element.hh.

◆ spacedim

const unsigned int OutputElement::spacedim = 3
static

Element space dimension = 3.

Definition at line 42 of file output_element.hh.


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