18 #ifndef OUTPUT_TIME_HH_ 19 #define OUTPUT_TIME_HH_ 192 template <
typename T>
299 std::shared_ptr<ElementDataCache<double>>
nodes_;
303 std::shared_ptr<ElementDataCache<unsigned int>>
offsets_;
Class represents output mesh with continuous elements.
ElementDataCache< T > & prepare_compute_data(std::string field_name, DiscreteSpace space_type, unsigned int n_rows, unsigned int n_cols)
virtual void set_output_data_caches(std::shared_ptr< OutputMeshBase > mesh_ptr)
Input::Record input_record_
Base class for Output mesh.
void fix_main_file_extension(std::string extension)
static std::shared_ptr< OutputTime > create_output_stream(const std::string &equation_name, const Input::Record &in_rec)
This method delete all object instances of class OutputTime stored in output_streams vector...
std::shared_ptr< ElementDataCache< unsigned int > > connectivity_
Vector maps the nodes to their coordinates in vector nodes_.
std::shared_ptr< OutputMeshBase > output_mesh_
Output mesh.
static const Input::Type::Record & get_input_type()
The specification of output stream.
std::shared_ptr< ElementDataCache< unsigned int > > offsets_
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.
static Input::Type::Abstract & get_input_format_type()
The specification of output file format.
std::shared_ptr< OutputMeshBase > get_output_mesh_ptr()
std::shared_ptr< Observe > observe_
void update_time(double field_time)
std::shared_ptr< ElementDataCacheBase > OutputDataPtr
std::map< DiscreteSpace, std::vector< FieldInterpolationData > > InterpolationMap
void get_output_params(bool ¶llel, int &rank)
OutputTime()
Default constructor. Only for testing.
std::shared_ptr< ElementDataCache< double > > nodes_
Vector of node coordinates. [spacedim x n_nodes].
std::shared_ptr< Observe > observe(Mesh *mesh)
virtual void init_from_input(const std::string &equation_name, const Input::Record &in_rec)
Constructor of OutputTime object. It opens base file for writing.
bool is_output_data_caches_init()
Basic time management functionality for unsteady (and steady) solvers (class Equation).
int get_parallel_current_step()
Return unique value current step for parallel or serial output.
unsigned int DiscreteSpaceFlags
bool parallel_
Parallel or serial version of file format (parallel has effect only for VTK)
virtual void add_dummy_fields()
Complete information about dummy fields, method has effect only for GMSH output.
Class represents output mesh with discontinuous elements.
bool enable_refinement()
Return auxiliary flag enable_refinement_.
static const unsigned int N_DISCRETE_SPACES
virtual ~OutputTime()
Destructor of OutputTime. It doesn't do anything, because all necessary destructors will be called in...
void clear_data(void)
Clear data for output computed by method compute_field_data.
void set_stream_precision(std::ofstream &stream)
std::pair< std::string, unsigned int > FieldInterpolationData
pair of field name and shape (= Scalar 1, Vector 3, Tensor 9)
The class for outputting data during time.
Dedicated class for storing path to input and output files.
Input::Iterator< Input::Array > get_time_set_array()
Input::Iterator< Input::Record > get_output_mesh_record()
virtual int write_data(void)=0
Virtual method for writing data to output file.
OutputDataFieldVec output_data_vec_[N_DISCRETE_SPACES]
bool enable_refinement_
Auxiliary flag for refinement enabling, due to gmsh format.
std::vector< OutputDataPtr > OutputDataFieldVec
std::string equation_name_