#include <icoutput.h>
SMASH output in ASCII format containing initial conditions for hydrodynamic codes.
Formatted such that it can be directly processed by vHLLE Karpenko:2015xea [29].
Definition at line 31 of file icoutput.h.
Public Member Functions | |
ICOutput (const std::filesystem::path &path, const std::string &name, const OutputParameters &out_par) | |
Create a new IC output. More... | |
~ICOutput () | |
void | at_eventstart (const Particles &, const int event_number, const EventInfo &) override |
Write event start line. More... | |
void | at_eventend (const Particles &particles, const int event_number, const EventInfo &event) override |
Write event end line. More... | |
void | at_intermediate_time (const Particles &, const std::unique_ptr< Clock > &, const DensityParameters &, const EventInfo &) override |
Unused, but needed since virtually declared in mother class. More... | |
void | at_interaction (const Action &action, const double) override |
Write particle data at the hypersurface crossing point to the IC output. More... | |
Public Member Functions inherited from smash::OutputInterface | |
OutputInterface (std::string name) | |
Construct output interface. More... | |
virtual | ~OutputInterface ()=0 |
Pure virtual destructor to make class abstract and prevent its instantiation. More... | |
virtual void | at_eventstart (const std::vector< Particles > &, int) |
Output launched at event start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventstart (const int, const ThermodynamicQuantity, const DensityType, RectangularLattice< DensityOnLattice >) |
Output launched at event start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventstart (const int, const ThermodynamicQuantity, const DensityType, RectangularLattice< EnergyMomentumTensor >) |
Output launched at event start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventend (const int, const ThermodynamicQuantity, const DensityType) |
Output launched at event end. More... | |
virtual void | at_eventend (const ThermodynamicQuantity) |
Output launched at event end. More... | |
virtual void | at_eventend (const std::vector< Particles > &, const int) |
Output launched at event end. More... | |
virtual void | at_intermediate_time (const std::vector< Particles > &, const std::unique_ptr< Clock > &, const DensityParameters &) |
Output launched after every N'th timestep. More... | |
virtual void | thermodynamics_output (const ThermodynamicQuantity, const DensityType, RectangularLattice< DensityOnLattice > &) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_output (const ThermodynamicQuantity, const DensityType, RectangularLattice< EnergyMomentumTensor > &) |
Output to write energy-momentum tensor and related quantities from the lattice. More... | |
virtual void | thermodynamics_lattice_output (RectangularLattice< DensityOnLattice > &, const double) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_lattice_output (RectangularLattice< DensityOnLattice > &, const double, const std::vector< Particles > &, const DensityParameters &) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_lattice_output (const ThermodynamicQuantity, RectangularLattice< EnergyMomentumTensor > &, const double) |
Output to write energy-momentum tensor and related quantities from the lattice. More... | |
virtual void | thermodynamics_output (const GrandCanThermalizer &) |
Output to write energy-momentum tensor and related quantities from the thermalizer class. More... | |
virtual void | fields_output (const std::string, const std::string, RectangularLattice< std::pair< ThreeVector, ThreeVector >> &) |
Write fields in vtk output Fields are a pair of threevectors for example electric and magnetic field. 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... | |
bool | is_IC_output () const |
Get, whether this is the IC 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... | |
double | IC_proper_time_ = -1.0 |
Proper time of the particles removed when extracting initial conditions. More... | |
Additional Inherited Members | |
Protected Attributes inherited from smash::OutputInterface | |
const bool | is_dilepton_output_ |
Is this the dilepton output? More... | |
const bool | is_photon_output_ |
Is this the photon output? More... | |
const bool | is_IC_output_ |
Is this the IC output? More... | |
smash::ICOutput::ICOutput | ( | const std::filesystem::path & | path, |
const std::string & | name, | ||
const OutputParameters & | out_par | ||
) |
Create a new IC output.
[in] | path | Path to the output file. |
[in] | name | Name of the output. |
[in] | out_par | Additional information on the configured output. |
Definition at line 101 of file icoutput.cc.
smash::ICOutput::~ICOutput | ( | ) |
Definition at line 118 of file icoutput.cc.
|
overridevirtual |
Write event start line.
[in] | event_number | Number of the current event. |
Reimplemented from smash::OutputInterface.
Definition at line 120 of file icoutput.cc.
|
overridevirtual |
Write event end line.
[in] | particles | Particles at end of event, expected to be empty |
[in] | event_number | Number of the current event. |
[in] | event | Event info, see event_info |
Reimplemented from smash::OutputInterface.
Definition at line 125 of file icoutput.cc.
|
overridevirtual |
Unused, but needed since virtually declared in mother class.
Reimplemented from smash::OutputInterface.
Definition at line 139 of file icoutput.cc.
|
overridevirtual |
Write particle data at the hypersurface crossing point to the IC output.
[in] | action | Details about the action |
Reimplemented from smash::OutputInterface.
Definition at line 146 of file icoutput.cc.
|
private |
Pointer to output file.
Definition at line 75 of file icoutput.h.
|
private |
Structure that holds all the information about what to printout.
Definition at line 77 of file icoutput.h.
|
private |
Proper time of the particles removed when extracting initial conditions.
Parameter used for testing purposes only. Used to verify that the initial proper time remains unchanged during the evolution. Determined from the actually removed particles. By construction, tau > 0. Nevertheless it is initialized with a negative number to easily find the first particle that is removed from the evolution in at_interaction().
Definition at line 88 of file icoutput.h.