 |
Version: SMASH-2.0
|
|
Go to the documentation of this file.
10 #ifndef SRC_INCLUDE_SMASH_VTKOUTPUT_H_
11 #define SRC_INCLUDE_SMASH_VTKOUTPUT_H_
16 #include <boost/filesystem.hpp>
38 VtkOutput(
const bf::path &path,
const std::string &name,
74 const std::unique_ptr<Clock> &clock,
124 std::string
make_filename(
const std::string &description,
int counter);
142 template <
typename T>
144 const std::string &description);
154 template <
typename T,
typename F>
156 const std::string &varname, F &&
function);
166 template <
typename T,
typename F>
168 const std::string &varname, F &&
function);
194 #endif // SRC_INCLUDE_SMASH_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 at_eventstart(const Particles &particles, const int event_number, const EventInfo &event) override
Writes the initial particle information list of an event to the VTK output.
void at_eventend(const Particles &particles, const int event_number, const EventInfo &event) override
Writes the final particle information list of an event to the VTK output.
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
Structure to contain custom data 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.
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.
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, const EventInfo &event) override
Writes out all current particles.