mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
17 lines
502 B
C++
17 lines
502 B
C++
//! \file physics_common.h
|
|
//! A collection of physics methods common to MG, CE, photon, etc.
|
|
|
|
#ifndef OPENMC_PHYSICS_COMMON_H
|
|
#define OPENMC_PHYSICS_COMMON_H
|
|
|
|
#include "openmc/particle.h"
|
|
|
|
namespace openmc {
|
|
|
|
//! \brief Performs the russian roulette operation for a particle
|
|
//! \param[in,out] p Particle object
|
|
//! \param[in] weight_survive Weight assigned to particles that survive
|
|
void russian_roulette(Particle& p, double weight_survive);
|
|
|
|
} // namespace openmc
|
|
#endif // OPENMC_PHYSICS_COMMON_H
|