Flow123d
release_2.2.0-914-gf1a3a4f
|
Class represents output mesh with discontinuous elements. More...
#include <output_mesh.hh>
Classes | |
struct | AuxElement |
Auxiliary structure defining element of refined output mesh. More... | |
Public Member Functions | |
OutputMeshDiscontinuous (Mesh &mesh) | |
OutputMeshDiscontinuous (Mesh &mesh, const Input::Record &in_rec) | |
~OutputMeshDiscontinuous () | |
void | create_mesh () override |
Creates the output mesh identical to the orig mesh. More... | |
void | create_refined_mesh () override |
Creates discontinuous refined mesh. More... | |
void | create_sub_mesh () override |
Creates sub mesh. More... | |
Public Member Functions inherited from OutputMeshBase | |
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 | set_error_control_field (ErrorControlFieldFunc error_control_field_func) |
Selects the error control field computing function 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... | |
bool | is_created () |
Check if nodes_, connectivity_ and offsets_ data caches are created. More... | |
void | create_id_caches () |
Create nodes and elements data caches. More... | |
Protected Member Functions | |
template<int dim> | |
void | refine_aux_element (const AuxElement &aux_element, std::vector< AuxElement > &refinement, const ElementAccessor< spacedim > &ele_acc) |
Performs the actual refinement of AuxElement. Recurrent. More... | |
bool | refinement_criterion (const AuxElement &ele, const ElementAccessor< spacedim > &ele_acc) |
Collects different refinement criteria results. More... | |
bool | refinement_criterion_uniform (const AuxElement &ele) |
Refinement flag - checks only maximal level of refinement. More... | |
bool | refinement_criterion_error (const AuxElement &ele, const Space< spacedim >::Point ¢re, const ElementAccessor< spacedim > &ele_acc) |
Refinement flag - measures discretisation error according to error control field. More... | |
Additional Inherited Members | |
Public Types inherited from OutputMeshBase | |
typedef std::function< void(const std::vector< Space< spacedim >::Point > &, const ElementAccessor< spacedim > &, std::vector< double > &)> | ErrorControlFieldFunc |
Static Public Member Functions inherited from OutputMeshBase | |
static const Input::Type::Record & | get_input_type () |
The specification of output mesh. More... | |
Static Public Attributes inherited from OutputMeshBase | |
static const unsigned int | spacedim = 3 |
Shortcut instead of spacedim template. We suppose only spacedim=3 at the moment. More... | |
Protected Types inherited from OutputMeshBase | |
enum | MeshType { orig, refined, discont } |
Protected Attributes inherited from OutputMeshBase | |
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... | |
ErrorControlFieldFunc | error_control_field_func_ |
Refinement error control field function (hold value_list function of field). More... | |
MeshType | mesh_type_ |
Type of OutputMesh. More... | |
bool | refine_by_error_ |
True, if output mesh is to be refined by error criterion. More... | |
double | refinement_error_tolerance_ |
Tolerance for error criterion refinement. More... | |
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... | |
std::shared_ptr< ElementDataCache< unsigned int > > | node_ids_ |
Vector gets ids of nodes. Data is used in GMSH output. More... | |
std::shared_ptr< ElementDataCache< unsigned int > > | elem_ids_ |
Vector gets ids of elements. Data is used in GMSH output. More... | |
std::shared_ptr< ElementDataCache< unsigned int > > | region_ids_ |
Vector gets ids of regions. Data is used in GMSH output. More... | |
std::shared_ptr< ElementDataCache< int > > | partitions_ |
Vector gets partitions of elements. Data is used in GMSH output. More... | |
Class represents output mesh with discontinuous elements.
Definition at line 197 of file output_mesh.hh.
OutputMeshDiscontinuous::OutputMeshDiscontinuous | ( | Mesh & | mesh | ) |
Definition at line 233 of file output_mesh.cc.
OutputMeshDiscontinuous::OutputMeshDiscontinuous | ( | Mesh & | mesh, |
const Input::Record & | in_rec | ||
) |
Definition at line 238 of file output_mesh.cc.
OutputMeshDiscontinuous::~OutputMeshDiscontinuous | ( | ) |
Definition at line 244 of file output_mesh.cc.
|
overridevirtual |
Creates the output mesh identical to the orig mesh.
Implements OutputMeshBase.
Definition at line 249 of file output_mesh.cc.
|
overridevirtual |
Creates discontinuous refined mesh.
Implements OutputMeshBase.
Definition at line 307 of file output_mesh.cc.
|
overridevirtual |
|
protected |
Performs the actual refinement of AuxElement. Recurrent.
Definition at line 407 of file output_mesh.cc.
|
protected |
Collects different refinement criteria results.
Definition at line 606 of file output_mesh.cc.
|
protected |
Refinement flag - measures discretisation error according to error control field.
Definition at line 632 of file output_mesh.cc.
|
protected |
Refinement flag - checks only maximal level of refinement.
Definition at line 627 of file output_mesh.cc.