|
Flow123d
release_1.8.2-1603-g0109a2b
|
The class for outputting data during time. More...
#include <output_time.hh>


Public Types | |
| enum | DiscreteSpace { NODE_DATA = 0, CORNER_DATA = 1, ELEM_DATA = 2 } |
Public Member Functions | |
| 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 Member Functions | |
| static const Input::Type::Record & | get_input_type () |
| The specification of output stream. More... | |
| static Input::Type::Abstract & | get_input_format_type () |
| The specification of output file format. More... | |
| static std::shared_ptr< 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 | |
| Input::AbstractRecord | format_record_ |
Static Public Attributes | |
| static const unsigned int | N_DISCRETE_SPACES = 3 |
Protected Types | |
| typedef std::shared_ptr< OutputDataBase > | OutputDataPtr |
| typedef std::vector< OutputDataPtr > | OutputDataFieldVec |
| typedef unsigned int | DiscreteSpaceFlags |
Protected Member Functions | |
| template<int spacedim, class Value > | |
| void | compute_field_data (DiscreteSpace type, Field< spacedim, Value > &field) |
| void | fix_main_file_extension (std::string extension) |
| virtual int | write_data (void)=0 |
| Virtual method for writing data to output file. More... | |
Protected Attributes | |
| 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 |
The class for outputting data during time.
This class is descendant of Output class. This class is used for outputting data varying in time. Own output to specific file formats is done at other places to. See output_vtk.cc and output_msh.cc.
Definition at line 42 of file output_time.hh.
|
protected |
Maps names of output fields required by user to their indices in output_data_vec_.
Definition at line 211 of file output_time.hh.
|
protected |
Definition at line 184 of file output_time.hh.
|
protected |
Map field name to its OutputData object.
Definition at line 183 of file output_time.hh.
| Enumerator | |
|---|---|
| NODE_DATA | |
| CORNER_DATA | |
| ELEM_DATA | |
Definition at line 78 of file output_time.hh.
| OutputTime::OutputTime | ( | ) |
Default constructor. Only for testing.
Definition at line 61 of file output_time.cc.

| OutputTime::OutputTime | ( | const Input::Record & | in_rec | ) |
Constructor of OutputTime object. It opens base file for writing.
| [in] | in_rec | The reference on the input record |
Definition at line 67 of file output_time.cc.
|
virtual |
Destructor of OutputTime. It doesn't do anything, because all necessary destructors will be called in destructor of Output.
Definition at line 84 of file output_time.cc.
| void OutputTime::add_admissible_field_names | ( | const Input::Array & | in_array | ) |
Registers names of output fields that can be written using this stream.
| in_array | Array of admissible fields (array of selections). |
Definition at line 151 of file output_time.cc.
| void OutputTime::clear_data | ( | void | ) |
Clear data for output computed by method compute_field_data.
Definition at line 223 of file output_time.cc.

|
protected |
Interpolate given field into output discrete space and store the values into private storage for postponed output.
Definition at line 282 of file output_time.impl.hh.
|
static |
This method delete all object instances of class OutputTime stored in output_streams vector.
This method tries to create new instance of OutputTime according record in configuration file.
Definition at line 134 of file output_time.cc.

| OutputTime::DECLARE_EXCEPTION | ( | ExcOutputVariableVector | , |
| << "Can not output field "<< EI_FieldName::qval<< " returning variable size vectors. Try convert to MultiField.\n" | |||
| ) |
Declaration of exception
|
protected |
Change main filename to have prescribed extension.
Definition at line 103 of file output_time.cc.

|
static |
The specification of output file format.
Definition at line 55 of file output_time.cc.

|
static |
The specification of output stream.
Definition at line 34 of file output_time.cc.

| void OutputTime::mark_output_times | ( | const TimeGovernor & | tg | ) |
Add time marks matching given tg.output_mark_type as well as general output type TimeMarks::type_output(). The time marks denotes times when output should be performed according to the input record of the output stream, namely keys: time_step, time_list, and include_input_times.
Definition at line 168 of file output_time.cc.
| void OutputTime::register_data | ( | const DiscreteSpace | type, |
| MultiField< spacedim, Value > & | multi_field | ||
| ) |
Generic method for registering output data stored in MultiField.
| ref_type | Type of output (element, node, corner data). |
| multi_field | The actual field for output. |
Definition at line 249 of file output_time.impl.hh.
| void OutputTime::register_data | ( | const DiscreteSpace | ref_type, |
| Field< spacedim, Value > & | field | ||
| ) |
Generic method for registering of output data stored in Field.
| ref_type | Type of output (element, node, corner data). |
| field | The actual field for output. |
Definition at line 266 of file output_time.impl.hh.
| OutputTime::TYPEDEF_ERR_INFO | ( | EI_FieldName | , |
| std::string | |||
| ) |
Declaration of new exception info used in following exception
|
protectedpure virtual |
| void OutputTime::write_time_frame | ( | ) |
Write all data registered as a new time frame.
Definition at line 201 of file output_time.cc.
|
protected |
Base output stream
Definition at line 222 of file output_time.hh.
|
protected |
Name of base output file
Definition at line 227 of file output_time.hh.
|
protected |
Cached pointer at mesh used by this output stream
Definition at line 232 of file output_time.hh.
|
protected |
Current step
Definition at line 195 of file output_time.hh.
| Input::AbstractRecord OutputTime::format_record_ |
Record for current output stream
Definition at line 153 of file output_time.hh.
|
protected |
Record for current output stream
Definition at line 217 of file output_time.hh.
|
static |
Types of reference data
Definition at line 77 of file output_time.hh.
|
protected |
Registered output data. Single map for every value of DiscreteSpace corresponding to nodes, elements and corners.
Definition at line 190 of file output_time.hh.
|
protected |
Definition at line 212 of file output_time.hh.
|
protected |
Cached MPI rank of process (is tested in methods)
Definition at line 178 of file output_time.hh.
|
protected |
The newest time of registered data
Definition at line 200 of file output_time.hh.
|
protected |
The last time, when data was wrote to this stream
Definition at line 205 of file output_time.hh.
1.8.11