#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... | |
![]() | |
OutputInterface (std::string name) | |
Construct output interface. More... | |
virtual | ~OutputInterface ()=default |
virtual void | at_eventstart (const std::vector< Particles > &ensembles, int event_number) |
Output launched at event start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventstart (const int event_number, const ThermodynamicQuantity tq, const DensityType dens_type, RectangularLattice< DensityOnLattice > lattice) |
Output launched at event start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventstart (const int event_number, const ThermodynamicQuantity tq, const DensityType dens_type, RectangularLattice< EnergyMomentumTensor > lattice) |
Output launched atevent start after initialization, when particles are generated but not yet propagated. More... | |
virtual void | at_eventend (const int event_number, const ThermodynamicQuantity tq, const DensityType dens_type) |
Output launched at event end. More... | |
virtual void | at_eventend (const ThermodynamicQuantity tq) |
Output launched at event end. More... | |
virtual void | at_eventend (const std::vector< Particles > &ensembles, const int event_number) |
Output launched at event end. More... | |
virtual void | at_intermediate_time (const std::vector< Particles > &ensembles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) |
Output launched after every N'th timestep. 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_lattice_output (RectangularLattice< DensityOnLattice > &lattice, const double current_time) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_lattice_output (RectangularLattice< DensityOnLattice > &lattice, const double current_time, const std::vector< Particles > &ensembles, const DensityParameters &dens_param) |
Output to write thermodynamics from the lattice. More... | |
virtual void | thermodynamics_lattice_output (const ThermodynamicQuantity tq, RectangularLattice< EnergyMomentumTensor > &lattice, const double current_time) |
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... | |
virtual void | fields_output (const std::string name1, const std::string name2, RectangularLattice< std::pair< ThreeVector, ThreeVector >> &lat) |
Write fields in vtk output. 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 | |
![]() | |
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.