#include <thermodynamicoutput.h>
Writes the thermodynamic quantities at a specified point versus time.
This class is a temporary solution to write thermodynamic quantities out. Calculations are called directly inside the output functions. In future it should be substituted by some more general output.
Definition at line 37 of file thermodynamicoutput.h.
Public Member Functions | |
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 of output. More... | |
~ThermodynamicOutput () | |
Default destructor. More... | |
void | at_eventstart (const Particles &particles, const int event_number) override |
writes the event header More... | |
void | at_eventend (const Particles &particles, const int event_number, double impact_parameter) override |
only flushes the output the file More... | |
void | at_intermediate_time (const Particles &particles, const Clock &clock, const DensityParameters &dens_param) override |
Writes thermodynamics every fixed time interval. More... | |
void | density_along_line (const char *file_name, const ParticleList &plist, const DensityParameters ¶m, DensityType dens_type, const ThreeVector &line_start, const ThreeVector &line_end, int n_points) |
Prints density along the specified line. More... | |
![]() | |
OutputInterface (std::string name) | |
Construct output interface. More... | |
virtual | ~OutputInterface ()=default |
virtual void | at_interaction (const Action &action, const double density) |
Called whenever an action modified one or more particles. More... | |
virtual void | thermodynamics_output (const ThermodynamicQuantity tq, const DensityType dt, RectangularLattice< DensityOnLattice > &lattice) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_output (const ThermodynamicQuantity tq, const DensityType dt, RectangularLattice< EnergyMomentumTensor > &lattice) |
Output to write energy-momentum tensor and related quantities from the lattice. More... | |
virtual void | thermodynamics_output (const GrandCanThermalizer &gct) |
Output to write energy-momentum tensor and related quantities from the thermalizer class. More... | |
bool | is_dilepton_output () const |
Get, whether this is the dilepton output? More... | |
bool | is_photon_output () const |
Get, whether this is the photon output? More... | |
const char * | to_string (const ThermodynamicQuantity tq) |
Convert thermodynamic quantities to strings. More... | |
const char * | to_string (const DensityType dens_type) |
Convert density types to strings. More... | |
Private Attributes | |
RenamingFilePtr | file_ |
Pointer to output file. More... | |
const OutputParameters | out_par_ |
Structure that holds all the information about what to printout. More... | |
Additional Inherited Members | |
![]() | |
const bool | is_dilepton_output_ |
Is this the dilepton output? More... | |
const bool | is_photon_output_ |
Is this the photon output? More... | |
smash::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 of output.
Definition at line 109 of file thermodynamicoutput.cc.
smash::ThermodynamicOutput::~ThermodynamicOutput | ( | ) |
|
overridevirtual |
writes the event header
[in] | particles | Dummy, is just here to satisfy inheritance |
[in] | event_number | Current event number, that will be written to the header |
Implements smash::OutputInterface.
Definition at line 163 of file thermodynamicoutput.cc.
|
overridevirtual |
only flushes the output the file
[in] | particles | Dummy, is just here to satisfy inheritance |
[in] | event_number | Dummy, is just here to satisfy inheritance |
[in] | impact_parameter | Dummy, is just here to satisfy inheritance |
Implements smash::OutputInterface.
Definition at line 168 of file thermodynamicoutput.cc.
|
overridevirtual |
Writes thermodynamics every fixed time interval.
For configuring the output see ASCII Thermodynamics Output.
[in] | particles | Particles, from which thermodynamic variables are computed |
[in] | clock | Clock, needed to get current time |
[in] | dens_param | set of parameters, defining smearing. For more info about smearing see ASCII Thermodynamics Output. |
Reimplemented from smash::OutputInterface.
Definition at line 174 of file thermodynamicoutput.cc.
void smash::ThermodynamicOutput::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.
Useful to make 1D plots of density profiles.
[in] | file_name | name of the file to print out |
[in] | param | Parameters for density calculation |
[in] | plist | particles, from which density is computed |
[in] | dens_type | type of density, see DensityType |
[in] | line_start | starting point of the line |
[in] | line_end | ending point of the line |
[in] | n_points | number of points along the line, where density is printed out |
Definition at line 244 of file thermodynamicoutput.cc.
|
private |
Pointer to output file.
Definition at line 98 of file thermodynamicoutput.h.
|
private |
Structure that holds all the information about what to printout.
Definition at line 100 of file thermodynamicoutput.h.