8 #ifndef SRC_IO_OBSERVE_HH_ 9 #define SRC_IO_OBSERVE_HH_ 56 <<
"Failed to find the element containing the initial observe point.\n");
59 <<
"Failed to find the observe element with snap region: " << EI_RegionName::qval
60 <<
" close to the initial observe point. Change maximal distance of observe element." <<
"\n");
68 {
return observe_data_.element_idx_; }
74 {
return observe_data_.global_coords_; }
90 bool have_observe_element();
96 void snap(
Mesh &mesh);
111 void find_observe_point(
Mesh &mesh);
117 void output(ostream &out,
unsigned int indent_spaces,
unsigned int precision);
186 {
return observed_element_indices_;}
191 void output_header();
196 void output_time_frame(
double time);
216 template <
typename T>
217 ElementDataCache<T> & prepare_compute_data(std::string field_name,
double field_time,
unsigned int n_rows,
unsigned int n_cols);
251 bool no_fields_warning=
false;
std::vector< ObservePoint > points_
Full information about observe points.
double max_search_radius_
OutputDataFieldMap observe_field_values_
Stored field values.
std::ofstream observe_file_
Output file stream.
arma::vec3 input_point_
Input coordinates of the initial position of the observation point.
const std::vector< ObservePoint > & points() const
ObservePointData()
Constructor.
unsigned int element_idx_
Final element of the observe point. The index in the mesh.
std::string time_unit_str_
String representation of the time unit.
std::string observe_name_
arma::vec local_coords_
Local (barycentric) coordinates on the element.
Basic time management class.
Input::Record in_rec_
Index in the input array.
unsigned int element_idx() const
arma::vec3 global_coords_
Global coordinates of the observation point.
unsigned int precision_
Precision of float output.
std::string name_
Observation point name.
std::vector< unsigned int > observed_element_indices_
Elements of the o_points.
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
double observe_values_time_
Common evaluation time of the fields for single time frame.
const std::vector< unsigned int > & observed_elements() const
ObservePointData observe_data_
Helper object stored projection data.
#define DECLARE_INPUT_EXCEPTION(ExcName, Format)
Macro for simple definition of input exceptions.
double time_unit_seconds_
Time unit in seconds.
std::map< string, OutputDataPtr > OutputDataFieldMap
std::shared_ptr< ElementDataCacheBase > OutputDataPtr
arma::vec3 global_coords() const