|
|
| Particle (const Point &position, const Direction &direction, const Energy &energy, const Type type, RNG::result_type seed, const Cell *cell=nullptr) noexcept |
| | Member constructor. Explicitly assigns phase-space members.
|
| |
| Bank | Transport (EstimatorSetProxy &e, const World &w) noexcept |
| | Use Particle::transport_method to update Particle state until it dies. More...
|
| |
|
void | Stream (const Real distance) noexcept |
| | Moves the particle along its current direction a given distance.
|
| |
|
void | SampleReaction () noexcept |
| |
| void | Scatter (const Real &mu, const Energy &e) noexcept |
| | Scatters the Particle with an outgoing direction and energy. More...
|
| |
|
Real | GetIndirectEffect (const Perturbation *perturbation) const noexcept |
| | Returns a reference to the indirect effects of this Particle.
|
| |
|
void | SetPerturbations (const PerturbationSet &perturbations) noexcept |
| | Sets the indirect effects of the Particle.
|
| |
|
const Point & | GetPosition () const noexcept |
| | Return the current position of the Particle.
|
| |
|
const Direction & | GetDirection () const noexcept |
| | Return the current direction of the Particle.
|
| |
| void | SetDirectionIsotropic () noexcept |
| | Sets the direction to a random isotropic direction. More...
|
| |
|
const Energy & | GetEnergy () const noexcept |
| | Returns the current energy of the Particle.
|
| |
|
void | SetEnergy (const Energy &e) noexcept |
| | Updates the current energy of the Particle.
|
| |
|
Type | GetType () const noexcept |
| | Returns the Type of the Particle.
|
| |
|
const Cell & | GetCell () const |
| | Returns a reference to the current Cell the Particle is within.
|
| |
|
void | SetCell (const Cell &c) noexcept |
| | Sets the current Cell occupied by the Particle.
|
| |
|
void | BankSecondaries (const Direction &direction, const Energy &energy) noexcept |
| | Banks secondaries produced during transport using an outgoing Direction and outgoing Energy.
|
| |
| void | MoveSecondariesTo (Bank &bank) noexcept |
| | Transfers secondaries produced by this Particle to the front of a given Bank. More...
|
| |
| Real | Sample () noexcept |
| | Sample a random number uniformly in \( [0, 1) \). More...
|
| |
|
const Nuclide & | SampleNuclide () noexcept |
| | Sample a Nuclide given that the Particle has collided inside its Cell.
|
| |
|
bool | IsAlive () const noexcept |
| | Returns true if the Particle should continue to be transported.
|
| |
The primary entity performing random walks in a World.
Particles are characterized by their position, direction, energy, type, and an alive flag. The awkward declaration order of member variables is meant to improve alignment.
- Note
- Users of this class should assume that Direction is normalized to avoid extra computation.