|
Flow123d
jenkins-Flow123d-windows-release-multijob-285
|
This class is used for output data to VTK file format. More...
#include <output_vtk.hh>


Public Member Functions | |
| OutputVTK (const Input::Record &in_rec) | |
| The constructor of this class. The head of file is written, when constructor is called. More... | |
| OutputVTK () | |
| The constructor of this class. The head of file is written, when constructor is called. More... | |
| ~OutputVTK () | |
| The destructor of this class. It writes tail of the file too. More... | |
| int | write_data (void) |
| This function write data to VTK (.pvd) file format for curent time. More... | |
| int | write_head (void) |
| This function writes header of VTK (.pvd) file format. More... | |
| int | write_tail (void) |
| This function writes tail of VTK (.pvd) file format. More... | |
Public Member Functions inherited from OutputTime | |
| OutputTime () | |
| Default constructor. Only for testing. More... | |
| OutputTime (const Input::Record &in_rec) | |
| Constructor of OutputTime object. It opens base file for writing. More... | |
| virtual | ~OutputTime () |
| Destructor of OutputTime. It doesn't do anything, because all necessary destructors will be called in destructor of Output. More... | |
| template<int spacedim, class Value > | |
| void | register_data (const DiscreteSpace type, MultiField< spacedim, Value > &multi_field) |
| Generic method for registering output data stored in MultiField. More... | |
| template<int spacedim, class Value > | |
| void | register_data (const DiscreteSpace ref_type, Field< spacedim, Value > &field) |
| Generic method for registering of output data stored in Field. More... | |
| void | write_time_frame () |
| void | add_admissible_field_names (const Input::Array &in_array) |
| Registers names of output fields that can be written using this stream. More... | |
| void | clear_data (void) |
Clear data for output computed by method compute_field_data. More... | |
| void | mark_output_times (const TimeGovernor &tg) |
| TYPEDEF_ERR_INFO (EI_FieldName, std::string) | |
| DECLARE_EXCEPTION (ExcOutputVariableVector,<< "Can not output field "<< EI_FieldName::qval<< " returning variable size vectors. Try convert to MultiField.\n") | |
Static Public Attributes | |
| static Input::Type::Record | input_type |
| The definition of input record for vtk file format. More... | |
| static Input::Type::Selection | input_type_variant |
| The definition of input record for selection of variant of file format. More... | |
| static Input::Type::Selection | input_type_compression |
| The definition of input record for selection of compression type. More... | |
Static Public Attributes inherited from OutputTime | |
| static Input::Type::Record | input_type |
| The specification of output stream. More... | |
| static Input::Type::AbstractRecord | input_format_type |
| The specification of output file format. More... | |
| static const unsigned int | N_DISCRETE_SPACES = 3 |
Protected Types | |
| enum | Variant { VARIANT_ASCII = 1, VARIANT_BINARY = 2 } |
| The declaration enumeration used for variant of file VTK format. More... | |
| enum | Compression { COMPRESSION_NONE = 1, COMPRESSION_GZIP = 2 } |
| The declaration of enumeration used for type of compression used in file format. More... | |
| enum | VTKElemType { VTK_VERTEX = 1, VTK_POLY_VERTEX = 2, VTK_LINE = 3, VTK_POLY_LINE = 4, VTK_TRIANGLE = 5, VTK_TRIANGLE_STRIP = 6, VTK_POLYGON = 7, VTK_PIXEL = 8, VTK_QUAD = 9, VTK_TETRA = 10, VTK_VOXEL = 11, VTK_HEXAHEDRON = 12, VTK_WEDGE = 13, VTK_PYRAMID = 14, VTK_QUADRIC_EDGE = 21, VTK_QUADRIC_TRIANGLE = 22, VTK_QUADRIC_QUAD = 23, VTK_QUADRIC_TETRA = 24, VTK_QUADRIC_HEXAHEDRON = 25 } |
| enum | VTKElemSize { VTK_LINE_SIZE = 2, VTK_TRIANGLE_SIZE = 3, VTK_TETRA_SIZE = 4 } |
| typedef enum OutputVTK::Variant | Variant |
| The declaration enumeration used for variant of file VTK format. More... | |
| typedef enum OutputVTK::Compression | Compression |
| The declaration of enumeration used for type of compression used in file format. More... | |
Protected Types inherited from OutputTime | |
| typedef std::shared_ptr< OutputDataBase > | OutputDataPtr |
| typedef std::vector< OutputDataPtr > | OutputDataFieldVec |
| typedef unsigned int | DiscreteSpaceFlags |
Protected Member Functions | |
| void | write_vtk_vtu_head (void) |
| Write header of VTK file (.vtu) More... | |
| void | write_vtk_geometry (void) |
| Write geometry (position of nodes) to the VTK file (.vtu) More... | |
| void | write_vtk_topology (void) |
| Write topology (connection of nodes) to the VTK file (.vtu) More... | |
| void | write_vtk_discont_geometry (void) |
| Write geometry (position of nodes) to the VTK file (.vtu) More... | |
| void | write_vtk_discont_topology (void) |
| Write topology (connection of nodes) to the VTK file (.vtu) More... | |
| void | write_vtk_data_ascii (OutputDataFieldVec &output_data_map) |
| void | write_vtk_data_names (ofstream &file, OutputDataFieldVec &output_data_map) |
Write names of data sets in output_data vector that have value type equal to type. Output is done into stream file. More... | |
| void | write_vtk_node_data (void) |
| Write data on nodes to the VTK file (.vtu) More... | |
| void | write_vtk_element_data (void) |
| Write data on elements to the VTK file (.vtu) More... | |
| void | write_vtk_vtu_tail (void) |
| Write tail of VTK file (.vtu) More... | |
| void | write_vtk_vtu (void) |
| This function write all scalar and vector data on nodes and elements to the VTK file (.vtu) More... | |
| void | make_subdirectory () |
Protected Member Functions inherited from OutputTime | |
| template<int spacedim, class Value > | |
| void | compute_field_data (DiscreteSpace type, Field< spacedim, Value > &field) |
| void | fix_main_file_extension (std::string extension) |
Protected Attributes | |
| ofstream | _data_file |
| string | subdir_name_ |
| string | main_output_basename_ |
| string | main_output_dir_ |
Protected Attributes inherited from OutputTime | |
| int | rank |
| OutputDataFieldVec | output_data_vec_ [N_DISCRETE_SPACES] |
| int | current_step |
| double | time |
| double | write_time |
| std::map< std::string, DiscreteSpaceFlags > | output_names |
| Input::Record | input_record_ |
| ofstream | _base_file |
| string | _base_filename |
| Mesh * | _mesh |
Additional Inherited Members | |
Public Types inherited from OutputTime | |
| enum | DiscreteSpace { NODE_DATA = 0, CORNER_DATA = 1, ELEM_DATA = 2 } |
Static Public Member Functions inherited from OutputTime | |
| static OutputTime * | create_output_stream (const Input::Record &in_rec) |
| This method delete all object instances of class OutputTime stored in output_streams vector. More... | |
Public Attributes inherited from OutputTime | |
| Input::AbstractRecord | format_record_ |
This class is used for output data to VTK file format.
Definition at line 41 of file output_vtk.hh.
|
protected |
The declaration of enumeration used for type of compression used in file format.
|
protected |
The declaration enumeration used for variant of file VTK format.
|
protected |
The declaration of enumeration used for type of compression used in file format.
| Enumerator | |
|---|---|
| COMPRESSION_NONE | |
| COMPRESSION_GZIP | |
Definition at line 107 of file output_vtk.hh.
|
protected |
The declaration enumeration used for variant of file VTK format.
| Enumerator | |
|---|---|
| VARIANT_ASCII | |
| VARIANT_BINARY | |
Definition at line 98 of file output_vtk.hh.
|
protected |
| Enumerator | |
|---|---|
| VTK_LINE_SIZE | |
| VTK_TRIANGLE_SIZE | |
| VTK_TETRA_SIZE | |
Definition at line 136 of file output_vtk.hh.
|
protected |
Definition at line 113 of file output_vtk.hh.
| OutputVTK::OutputVTK | ( | const Input::Record & | in_rec | ) |
The constructor of this class. The head of file is written, when constructor is called.
Definition at line 68 of file output_vtk.cc.
| OutputVTK::OutputVTK | ( | ) |
The constructor of this class. The head of file is written, when constructor is called.
Definition at line 84 of file output_vtk.cc.
| OutputVTK::~OutputVTK | ( | ) |
The destructor of this class. It writes tail of the file too.
Definition at line 89 of file output_vtk.cc.
|
protected |
Set appropriate file path substrings. Make subdirectory for VTU time frames.
Definition at line 157 of file output_vtk.cc.

|
virtual |
This function write data to VTK (.pvd) file format for curent time.
Implements OutputTime.
Definition at line 97 of file output_vtk.cc.
| int OutputVTK::write_head | ( | void | ) |
This function writes header of VTK (.pvd) file format.
Definition at line 544 of file output_vtk.cc.

| int OutputVTK::write_tail | ( | void | ) |
This function writes tail of VTK (.pvd) file format.
Definition at line 565 of file output_vtk.cc.

|
protected |
Write registered data to output stream using ascii format
Definition at line 383 of file output_vtk.cc.

|
protected |
Write names of data sets in output_data vector that have value type equal to type. Output is done into stream file.
Definition at line 411 of file output_vtk.cc.

|
protected |
Write geometry (position of nodes) to the VTK file (.vtu)
This method is used, when discontinuous data are saved to the .vtu file
Definition at line 283 of file output_vtk.cc.

|
protected |
Write topology (connection of nodes) to the VTK file (.vtu)
This method is used, when discontinuous data are saved to the .vtu file
Definition at line 312 of file output_vtk.cc.

|
protected |
Write data on elements to the VTK file (.vtu)
Definition at line 460 of file output_vtk.cc.

|
protected |
Write geometry (position of nodes) to the VTK file (.vtu)
Definition at line 185 of file output_vtk.cc.

|
protected |
Write data on nodes to the VTK file (.vtu)
Definition at line 433 of file output_vtk.cc.

|
protected |
Write topology (connection of nodes) to the VTK file (.vtu)
Definition at line 215 of file output_vtk.cc.

|
protected |
This function write all scalar and vector data on nodes and elements to the VTK file (.vtu)
Definition at line 489 of file output_vtk.cc.

|
protected |
Write header of VTK file (.vtu)
Definition at line 174 of file output_vtk.cc.

|
protected |
Write tail of VTK file (.vtu)
Definition at line 480 of file output_vtk.cc.

|
protected |
Data output stream (could be same as base_file)
Definition at line 214 of file output_vtk.hh.
|
static |
The definition of input record for vtk file format.
Definition at line 65 of file output_vtk.hh.
|
static |
The definition of input record for selection of compression type.
Definition at line 75 of file output_vtk.hh.
|
static |
The definition of input record for selection of variant of file format.
Definition at line 70 of file output_vtk.hh.
|
protected |
Definition at line 221 of file output_vtk.hh.
|
protected |
Definition at line 223 of file output_vtk.hh.
|
protected |
Path to time frame VTU data subdirectory
Definition at line 219 of file output_vtk.hh.
1.8.9.1