Flow123d
release_2.1.2-337-g6b7a56b
|
Base class for Output mesh. More...
#include <output_mesh.hh>
Public Member Functions | |
OutputMeshBase (Mesh &mesh) | |
Constructor. Takes computational mesh as a parameter. More... | |
OutputMeshBase (Mesh &mesh, const Input::Record &in_rec) | |
Constructor. Takes computational mesh and input record as a parameters. More... | |
virtual | ~OutputMeshBase () |
OutputElementIterator | begin () |
Gives iterator to the FIRST element of the output mesh. More... | |
OutputElementIterator | end () |
Gives iterator to the LAST element of the output mesh. More... | |
virtual void | create_refined_mesh ()=0 |
Creates refined mesh. More... | |
std::string | error_control_field_name () |
Returns error_control_field_name_ . More... | |
unsigned int | n_nodes () |
Returns number of nodes. More... | |
unsigned int | n_elements () |
Returns number of element. More... | |
Static Public Member Functions | |
static const Input::Type::Record & | get_input_type () |
The specification of output mesh. More... | |
Public Attributes | |
std::shared_ptr< std::vector< unsigned int > > | orig_element_indices_ |
Vector of element indices in the computational mesh. (Important when refining.) More... | |
std::shared_ptr< ElementDataCache< double > > | nodes_ |
Vector of node coordinates. [spacedim x n_nodes]. More... | |
std::shared_ptr< ElementDataCache< unsigned int > > | connectivity_ |
Vector maps the nodes to their coordinates in vector nodes_ . More... | |
std::shared_ptr< ElementDataCache< unsigned int > > | offsets_ |
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_. More... | |
Static Public Attributes | |
static const unsigned int | spacedim = 3 |
Shortcut instead of spacedim template. We suppose only spacedim=3 at the moment. More... | |
Protected Attributes | |
Input::Record | input_record_ |
Input record for output mesh. More... | |
Mesh * | orig_mesh_ |
Pointer to the computational mesh. More... | |
const unsigned int | max_level_ |
Maximal level of refinement. More... | |
std::string | error_control_field_name_ |
Refinement error control field name. More... | |
Friends | |
class | OutputElement |
Friend provides access to vectors for element accessor class. More... | |
Base class for Output mesh.
Defines common members for Output mesh classes:
Making of output meshes and calling of their initialization methods must be execute in correct order, see example:
Definition at line 62 of file output_mesh.hh.
OutputMeshBase::OutputMeshBase | ( | Mesh & | mesh | ) |
Constructor. Takes computational mesh as a parameter.
Definition at line 35 of file output_mesh.cc.
OutputMeshBase::OutputMeshBase | ( | Mesh & | mesh, |
const Input::Record & | in_rec | ||
) |
Constructor. Takes computational mesh and input record as a parameters.
Definition at line 47 of file output_mesh.cc.
|
virtual |
Definition at line 65 of file output_mesh.cc.
OutputElementIterator OutputMeshBase::begin | ( | ) |
Gives iterator to the FIRST element of the output mesh.
Definition at line 69 of file output_mesh.cc.
|
pure virtual |
Creates refined mesh.
Implemented in OutputMeshDiscontinuous, and OutputMesh.
OutputElementIterator OutputMeshBase::end | ( | ) |
Gives iterator to the LAST element of the output mesh.
Definition at line 75 of file output_mesh.cc.
|
inline |
Returns error_control_field_name_
.
Definition at line 89 of file output_mesh.hh.
|
static |
The specification of output mesh.
Definition at line 24 of file output_mesh.cc.
unsigned int OutputMeshBase::n_elements | ( | ) |
Returns number of element.
Definition at line 81 of file output_mesh.cc.
unsigned int OutputMeshBase::n_nodes | ( | ) |
Returns number of nodes.
Definition at line 87 of file output_mesh.cc.
|
friend |
Friend provides access to vectors for element accessor class.
Definition at line 122 of file output_mesh.hh.
std::shared_ptr<ElementDataCache<unsigned int> > OutputMeshBase::connectivity_ |
Vector maps the nodes to their coordinates in vector nodes_
.
Definition at line 99 of file output_mesh.hh.
|
protected |
Refinement error control field name.
Definition at line 119 of file output_mesh.hh.
|
protected |
Input record for output mesh.
Definition at line 110 of file output_mesh.hh.
|
protected |
Maximal level of refinement.
Definition at line 116 of file output_mesh.hh.
std::shared_ptr<ElementDataCache<double> > OutputMeshBase::nodes_ |
Vector of node coordinates. [spacedim x n_nodes].
Definition at line 97 of file output_mesh.hh.
std::shared_ptr<ElementDataCache<unsigned int> > OutputMeshBase::offsets_ |
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.
Definition at line 101 of file output_mesh.hh.
std::shared_ptr<std::vector<unsigned int> > OutputMeshBase::orig_element_indices_ |
Vector of element indices in the computational mesh. (Important when refining.)
Definition at line 94 of file output_mesh.hh.
|
protected |
Pointer to the computational mesh.
Definition at line 113 of file output_mesh.hh.
|
static |
Shortcut instead of spacedim template. We suppose only spacedim=3 at the moment.
Definition at line 66 of file output_mesh.hh.