mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 06:25:30 -04:00
23 lines
615 B
C++
23 lines
615 B
C++
#ifndef OPENMC_COLLISION_TRACK_H
|
|
#define OPENMC_COLLISION_TRACK_H
|
|
|
|
#include <string>
|
|
|
|
namespace openmc {
|
|
|
|
class Particle;
|
|
|
|
//! Reserve space in the collision track bank according to user settings.
|
|
void collision_track_reserve_bank();
|
|
|
|
//! Write collision track data to disk when the bank is full or the batch ends.
|
|
void collision_track_flush_bank();
|
|
|
|
//! Record the current particle as a collision-track entry when applicable.
|
|
//!
|
|
//! \param particle Particle whose collision should be recorded if eligible
|
|
void collision_track_record(Particle& particle);
|
|
|
|
} // namespace openmc
|
|
|
|
#endif // OPENMC_COLLISION_TRACK_H
|