Version: SMASH-3.1
thermodynamicoutput.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2020,2022
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_THERMODYNAMICOUTPUT_H_
11 #define SRC_INCLUDE_SMASH_THERMODYNAMICOUTPUT_H_
12 
13 #include <memory>
14 #include <set>
15 #include <string>
16 #include <vector>
17 
18 #include "density.h"
19 #include "experimentparameters.h"
20 #include "file.h"
21 #include "forwarddeclarations.h"
22 #include "outputinterface.h"
23 #include "outputparameters.h"
24 #include "threevector.h"
25 
26 namespace smash {
27 
40  public:
47  ThermodynamicOutput(const std::filesystem::path &path,
48  const std::string &name, const OutputParameters &out_par);
51 
58  void at_eventstart(const std::vector<Particles> &ensembles,
59  const int event_number) override;
60 
66  void at_eventend(const std::vector<Particles> &ensembles,
67  const int event_number) override;
68 
80  void at_intermediate_time(const std::vector<Particles> &ensembles,
81  const std::unique_ptr<Clock> &clock,
82  const DensityParameters &dens_param) override;
83 
96  void density_along_line(const char *file_name, const ParticleList &plist,
97  const DensityParameters &param, DensityType dens_type,
98  const ThreeVector &line_start,
99  const ThreeVector &line_end, int n_points);
100 
101  private:
106 };
107 
108 } // namespace smash
109 
110 #endif // SRC_INCLUDE_SMASH_THERMODYNAMICOUTPUT_H_
A class to pre-calculate and store parameters relevant for density calculation.
Definition: density.h:108
Abstraction of generic output.
A RAII type to replace std::FILE *.
Definition: file.h:72
Writes the thermodynamic quantities at a specified point versus time.
void at_eventend(const std::vector< Particles > &ensembles, const int event_number) override
only flushes the output the file
void density_along_line(const char *file_name, const ParticleList &plist, const DensityParameters &param, DensityType dens_type, const ThreeVector &line_start, const ThreeVector &line_end, int n_points)
Prints density along the specified line.
ThermodynamicOutput(const std::filesystem::path &path, const std::string &name, const OutputParameters &out_par)
Construct Output param[in] path Path to output param[in] name Filename param[in] out_par Parameters o...
void at_intermediate_time(const std::vector< Particles > &ensembles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) override
Writes thermodynamics every fixed time interval.
void at_eventstart(const std::vector< Particles > &ensembles, const int event_number) override
writes the event header
RenamingFilePtr file_
Pointer to output file.
const OutputParameters out_par_
Structure that holds all the information about what to printout.
~ThermodynamicOutput()
Default destructor.
The ThreeVector class represents a physical three-vector with the components .
Definition: threevector.h:31
Definition: action.h:24
DensityType
Allows to choose which kind of density to calculate.
Definition: density.h:36
Helper structure for Experiment to hold output options and parameters.