Flow123d  release_2.1.0-84-g6a13a75
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | Friends | List of all members
OutputMeshBase Class Reference

Base class for Output mesh. More...

#include <output_mesh.hh>

Inheritance diagram for OutputMeshBase:
Inheritance graph
[legend]
Collaboration diagram for OutputMeshBase:
Collaboration graph
[legend]

Public Member Functions

 DECLARE_EXCEPTION (ExcFieldNotScalar,<< "Field '"<< FieldCommon::EI_Field::qval<< "' is not scalar in spacedim 3.")
 
 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...
 
void select_error_control_field (FieldSet &output_fields)
 Selects the error control field out of output field set according to input record. 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::Recordget_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< MeshData< double > > nodes_
 Vector of node coordinates. [spacedim x n_nodes]. More...
 
std::shared_ptr< MeshData< unsigned int > > connectivity_
 Vector maps the nodes to their coordinates in vector nodes_. More...
 
std::shared_ptr< MeshData< 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...
 
Meshorig_mesh_
 Pointer to the computational mesh. More...
 
const unsigned int max_level_
 Maximal level of refinement. More...
 
Field< 3, FieldValue< 3 >::Scalar > * error_control_field_
 Refinement error control field. More...
 

Friends

class OutputElement
 Friend provides access to vectors for element accessor class. More...
 

Detailed Description

Base class for Output mesh.

Defines common members for OutputMesh classes.

Definition at line 49 of file output_mesh.hh.

Constructor & Destructor Documentation

OutputMeshBase::OutputMeshBase ( Mesh mesh)

Constructor. Takes computational mesh as a parameter.

Definition at line 37 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 48 of file output_mesh.cc.

OutputMeshBase::~OutputMeshBase ( )
virtual

Definition at line 59 of file output_mesh.cc.

Member Function Documentation

OutputElementIterator OutputMeshBase::begin ( )

Gives iterator to the FIRST element of the output mesh.

Definition at line 63 of file output_mesh.cc.

OutputMeshBase::DECLARE_EXCEPTION ( ExcFieldNotScalar  ,
<< "Field '"<< FieldCommon::EI_Field::qval<< "' is not scalar in spacedim 3."   
)
OutputElementIterator OutputMeshBase::end ( )

Gives iterator to the LAST element of the output mesh.

Definition at line 69 of file output_mesh.cc.

const IT::Record & OutputMeshBase::get_input_type ( )
static

The specification of output mesh.

Returns
record for output mesh

Definition at line 26 of file output_mesh.cc.

Here is the caller graph for this function:

unsigned int OutputMeshBase::n_elements ( )

Returns number of element.

Definition at line 113 of file output_mesh.cc.

Here is the caller graph for this function:

unsigned int OutputMeshBase::n_nodes ( )

Returns number of nodes.

Definition at line 119 of file output_mesh.cc.

Here is the caller graph for this function:

void OutputMeshBase::select_error_control_field ( FieldSet output_fields)

Selects the error control field out of output field set according to input record.

Definition at line 75 of file output_mesh.cc.

Friends And Related Function Documentation

friend class OutputElement
friend

Friend provides access to vectors for element accessor class.

Definition at line 107 of file output_mesh.hh.

Member Data Documentation

std::shared_ptr<MeshData<unsigned int> > OutputMeshBase::connectivity_

Vector maps the nodes to their coordinates in vector nodes_.

Definition at line 84 of file output_mesh.hh.

Field<3, FieldValue<3>::Scalar>* OutputMeshBase::error_control_field_
protected

Refinement error control field.

Definition at line 104 of file output_mesh.hh.

Input::Record OutputMeshBase::input_record_
protected

Input record for output mesh.

Definition at line 95 of file output_mesh.hh.

const unsigned int OutputMeshBase::max_level_
protected

Maximal level of refinement.

Definition at line 101 of file output_mesh.hh.

std::shared_ptr<MeshData<double> > OutputMeshBase::nodes_

Vector of node coordinates. [spacedim x n_nodes].

Definition at line 82 of file output_mesh.hh.

std::shared_ptr<MeshData<unsigned int> > OutputMeshBase::offsets_

Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.

Definition at line 86 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 79 of file output_mesh.hh.

Mesh* OutputMeshBase::orig_mesh_
protected

Pointer to the computational mesh.

Definition at line 98 of file output_mesh.hh.

const unsigned int OutputMeshBase::spacedim = 3
static

Shortcut instead of spacedim template. We suppose only spacedim=3 at the moment.

Definition at line 56 of file output_mesh.hh.


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