Version: SMASH-1.8
thermodynamicoutput.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2019
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_THERMODYNAMICOUTPUT_H_
11 #define SRC_INCLUDE_THERMODYNAMICOUTPUT_H_
12 
13 #include <set>
14 #include <string>
15 
16 #include "density.h"
17 #include "experimentparameters.h"
18 #include "file.h"
19 #include "forwarddeclarations.h"
20 #include "outputinterface.h"
21 #include "outputparameters.h"
22 #include "threevector.h"
23 
24 namespace smash {
25 
38  public:
45  ThermodynamicOutput(const bf::path &path, const std::string &name,
46  const OutputParameters &out_par);
49 
56  void at_eventstart(const Particles &particles,
57  const int event_number) override;
58 
66  void at_eventend(const Particles &particles, const int event_number,
67  double impact_parameter, bool empty_event) override;
68 
77  void at_intermediate_time(const Particles &particles,
78  const std::unique_ptr<Clock> &clock,
79  const DensityParameters &dens_param) override;
80 
93  void density_along_line(const char *file_name, const ParticleList &plist,
94  const DensityParameters &param, DensityType dens_type,
95  const ThreeVector &line_start,
96  const ThreeVector &line_end, int n_points);
97 
98  private:
103 };
104 
105 } // namespace smash
106 
107 #endif // SRC_INCLUDE_THERMODYNAMICOUTPUT_H_
smash
Definition: action.h:24
smash::ThermodynamicOutput::density_along_line
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.
Definition: thermodynamicoutput.cc:252
smash::ThermodynamicOutput::ThermodynamicOutput
ThermodynamicOutput(const bf::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...
Definition: thermodynamicoutput.cc:116
outputparameters.h
smash::ThermodynamicOutput::file_
RenamingFilePtr file_
Pointer to output file.
Definition: thermodynamicoutput.h:100
smash::DensityParameters
A class to pre-calculate and store parameters relevant for density calculation.
Definition: density.h:107
smash::ThermodynamicOutput
Writes the thermodynamic quantities at a specified point versus time.
Definition: thermodynamicoutput.h:37
experimentparameters.h
smash::ThermodynamicOutput::out_par_
const OutputParameters out_par_
Structure that holds all the information about what to printout.
Definition: thermodynamicoutput.h:102
forwarddeclarations.h
smash::ThreeVector
Definition: threevector.h:31
outputinterface.h
smash::OutputParameters
Helper structure for Experiment to hold output options and parameters.
Definition: outputparameters.h:25
smash::ThermodynamicOutput::at_eventend
void at_eventend(const Particles &particles, const int event_number, double impact_parameter, bool empty_event) override
only flushes the output the file
Definition: thermodynamicoutput.cc:175
threevector.h
smash::OutputInterface
Abstraction of generic output.
Definition: outputinterface.h:35
smash::ThermodynamicOutput::at_intermediate_time
void at_intermediate_time(const Particles &particles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) override
Writes thermodynamics every fixed time interval.
Definition: thermodynamicoutput.cc:182
density.h
smash::Particles
Definition: particles.h:33
smash::DensityType
DensityType
Allows to choose which kind of density to calculate.
Definition: density.h:35
smash::ThermodynamicOutput::~ThermodynamicOutput
~ThermodynamicOutput()
Default destructor.
Definition: thermodynamicoutput.cc:168
smash::RenamingFilePtr
A RAII type to replace std::FILE *.
Definition: file.h:73
smash::ThermodynamicOutput::at_eventstart
void at_eventstart(const Particles &particles, const int event_number) override
writes the event header
Definition: thermodynamicoutput.cc:170
file.h