  | 
  
     Version: SMASH-1.8 
   | 
           
 | 
 
 
 
 
Go to the documentation of this file.
   10 #ifndef SRC_INCLUDE_VTKOUTPUT_H_ 
   11 #define SRC_INCLUDE_VTKOUTPUT_H_ 
   15 #include <boost/filesystem.hpp> 
   37   VtkOutput(
const bf::path &path, 
const std::string &name,
 
   49                      const int event_number) 
override;
 
   63                    double impact_parameter, 
bool empty_event) 
override;
 
   73                             const std::unique_ptr<Clock> &clock,
 
  122   std::string 
make_filename(
const std::string &description, 
int counter);
 
  140   template <
typename T>
 
  142                         const std::string &description);
 
  152   template <
typename T, 
typename F>
 
  154                         const std::string &varname, F &&
function);
 
  164   template <
typename T, 
typename F>
 
  166                         const std::string &varname, F &&
function);
 
  192 #endif  // SRC_INCLUDE_VTKOUTPUT_H_ 
  
 
int vtk_v_landau_output_counter_
Number of Landau rest frame velocity vtk output in current event.
 
void thermodynamics_output(const ThermodynamicQuantity tq, const DensityType dt, RectangularLattice< DensityOnLattice > &lattice) override
Prints the density lattice in VTK format on a grid.
 
A class to pre-calculate and store parameters relevant for density calculation.
 
std::string make_varname(const ThermodynamicQuantity tq, const DensityType dens_type)
Make a variable name given quantity and density type.
 
void write_vtk_vector(std::ofstream &file, RectangularLattice< T > &lat, const std::string &varname, F &&function)
Write a VTK vector.
 
void write_vtk_scalar(std::ofstream &file, RectangularLattice< T > &lat, const std::string &varname, F &&function)
Write a VTK scalar.
 
const bf::path base_path_
filesystem path for output
 
int vtk_density_output_counter_
Number of density lattice vtk output in current event.
 
bool is_thermodynamics_output_
Is the VTK output a thermodynamics output.
 
int vtk_tmn_output_counter_
Number of energy-momentum tensor lattice vtk output in current event.
 
VtkOutput(const bf::path &path, const std::string &name, const OutputParameters &out_par)
Create a new VTK output.
 
void write_vtk_header(std::ofstream &file, RectangularLattice< T > &lat, const std::string &description)
Write the VTK header.
 
Helper structure for Experiment to hold output options and parameters.
 
A container class to hold all the arrays on the lattice and access them.
 
int vtk_fluidization_counter_
Number of fluidization output.
 
Abstraction of generic output.
 
int vtk_tmn_landau_output_counter_
Number of Landau frame energy-momentum tensor vtk output in current event.
 
int vtk_output_counter_
Number of vtk output in current event.
 
void write(const Particles &particles)
Write the given particles to the output.
 
void at_eventend(const Particles &particles, const int event_number, double impact_parameter, bool empty_event) override
Writes the final particle information list of an event to the VTK output.
 
DensityType
Allows to choose which kind of density to calculate.
 
std::string make_filename(const std::string &description, int counter)
Make a file name given a description and a counter.
 
int current_event_
Event number.
 
void at_eventstart(const Particles &particles, const int event_number) override
Writes the initial particle information list of an event to the VTK output.
 
ThermodynamicQuantity
Represents thermodynamic quantities that can be printed out.
 
The GrandCanThermalizer class implements the following functionality:
 
void at_intermediate_time(const Particles &particles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) override
Writes out all current particles.