diagnostics.hpp
Go to the documentation of this file.
1 
6 #ifndef DIAGNOSTICS_HPP
7 #define DIAGNOSTICS_HPP 1
8 
9 #include <iostream>
10 #include <fstream>
11 #include <string>
12 #include <cmath>
13 #include "hdsim2d.hpp"
14 #include "../../misc/utils.hpp"
15 #include "../../tessellation/ConvexHull.hpp"
16 #include "physical_geometry.hpp"
17 
18 using std::string;
19 
37 void BinOutput(string location,
38  hdsim const& sim,
39  Tessellation const& V,
40  bool floatprecision=true);
41 
46 Extensive total_conserved(hdsim const& sim);
47 
53 double total_tracer(const hdsim& sim,
54  const int index);
55 
59 void DisplayError(UniversalError const& eo);
60 
65 void write_error(const string& fname,
66  const UniversalError& eo);
67 
72 void WriteVector2DToFile(vector<Vector2D> const& vec,string filename);
73 
78 vector<Vector2D> ReadVector2DFromFile(string filename);
79 
80 #endif // DIAGNOSTICS_HPP
Extensive variables.
Definition: extensive.hpp:18
void BinOutput(string location, hdsim const &sim, Tessellation const &V, bool floatprecision=true)
Outputs the simulation data into a binary file (float precision) as follows: 1) Int - Number of cells...
Abstract class for tessellation.
Container for error reports.
double total_tracer(const hdsim &sim, const int index)
Calculates the total amount of tracer in computational domain.
Newtonian hydrodynamic simulation.
Definition: hdsim2d.hpp:43
void DisplayError(UniversalError const &eo)
Displays the UniversalError information.
Definition: diagnostics.cpp:9
Two dimensional, newtonian simulation.
vector< Vector2D > ReadVector2DFromFile(string filename)
Reads a vector of Vector2D from a binary file.
Definition: diagnostics.cpp:58
void write_error(const string &fname, const UniversalError &eo)
Writes all the error information to a file.
Definition: diagnostics.cpp:17
void WriteVector2DToFile(vector< Vector2D > const &vec, string filename)
Writes a vector of Vector2D to a binary file.
Definition: diagnostics.cpp:77
Physical geometry of the grid.
Extensive total_conserved(hdsim const &sim)
Calculates the total extensive conserved variables of the entire computational domain.
Definition: diagnostics.cpp:52