Flow123d  release_3.0.0-903-ge56fc7d
Public Types | Public Member Functions | Static Public Attributes | Private 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 (unsigned int ele_idx, std::shared_ptr< OutputMeshBase > output_mesh)
 Constructor. More...
 
void inc ()
 
bool operator== (const OutputElement &other)
 
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...
 
Original Mesh Getters.
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...
 

Static Public Attributes

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

Private Attributes

unsigned int ele_idx_
 index of the output element More...
 
std::shared_ptr< OutputMeshBaseoutput_mesh_
 pointer to the output mesh More...
 

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

Definition at line 44 of file output_element.hh.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 88 of file output_element.hh.

Member Function Documentation

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

Computes the barycenter.

Definition at line 187 of file output_element.hh.

unsigned int OutputElement::dim ( ) const
inline

Returns dim of the output element.

Definition at line 132 of file output_element.hh.

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

Gets ElementAccessor of this element.

Definition at line 113 of file output_element.hh.

unsigned int OutputElement::idx ( ) const
inline

Returns index of the output element.

Definition at line 119 of file output_element.hh.

void OutputElement::inc ( )
inline

Definition at line 92 of file output_element.hh.

unsigned int OutputElement::n_nodes ( ) const
inline

Returns number of nodes.

Definition at line 124 of file output_element.hh.

Here is the caller graph for this function:

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

Returns global index of the node.

Definition at line 138 of file output_element.hh.

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

Returns global indices of the nodes.

Definition at line 175 of file output_element.hh.

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

Definition at line 97 of file output_element.hh.

unsigned int OutputElement::orig_element_idx ( ) const
inline

Returns index of the master element in the computational mesh.

Definition at line 108 of file output_element.hh.

Here is the caller graph for this function:

Mesh * OutputElement::orig_mesh ( ) const
inline

Returns pointer to the computational mesh.

Definition at line 103 of file output_element.hh.

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

Returns coordinates of node loc_idx.

Definition at line 147 of file output_element.hh.

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

Returns vector of nodes coordinates.

Definition at line 159 of file output_element.hh.

Here is the caller graph for this function:

Member Data Documentation

unsigned int OutputElement::ele_idx_
private

index of the output element

Definition at line 81 of file output_element.hh.

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

pointer to the output mesh

Definition at line 83 of file output_element.hh.

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: