BioCMAMC-ST
|
General-purpose Monte Carlo unit to carry out simulations. More...
#include <unit.hpp>
Public Member Functions | |
MonteCarloUnit (const MonteCarloUnit &)=delete | |
Prevent copying of the MonteCarloUnit. | |
MonteCarloUnit & | operator= (const MonteCarloUnit &)=delete |
Prevent copying of the MonteCarloUnit. | |
MonteCarloUnit & | operator= (MonteCarloUnit &&) noexcept=default |
Allow moving of the MonteCarloUn. | |
MonteCarloUnit (MonteCarloUnit &&) noexcept=default | |
Allow moving of the MonteCarloUn. | |
MonteCarloUnit ()=default | |
~MonteCarloUnit ()=default | |
uint64_t | n_particle () const |
std::vector< uint64_t > | getRepartition () const |
template<class Archive > | |
void | serialize (Archive &ar) |
Public Attributes | |
EventContainer | events |
Container to manage and store simulation events. | |
ReactorDomain | domain |
Represents the domain within which the simulation occurs. | |
AutoGenerated::ContainerVariant | container |
KPRNG | rng |
Random number generator used for Monte Carlo methods. | |
double | init_weight {} |
Initial weight or factor used in the simulation. | |
General-purpose Monte Carlo unit to carry out simulations.
The MonteCarloUnit struct encapsulates the components necessary for running Monte Carlo simulations. The MonteCarloUnit is non-copyable but movable, ensuring that only one instance manages its resources at any time.
|
delete |
Prevent copying of the MonteCarloUnit.
|
defaultnoexcept |
Allow moving of the MonteCarloUn.
|
default |
|
default |
|
nodiscard |
|
nodiscard |
|
delete |
Prevent copying of the MonteCarloUnit.
|
defaultnoexcept |
Allow moving of the MonteCarloUn.
|
inline |
AutoGenerated::ContainerVariant MC::MonteCarloUnit::container |
ReactorDomain MC::MonteCarloUnit::domain |
Represents the domain within which the simulation occurs.
EventContainer MC::MonteCarloUnit::events |
Container to manage and store simulation events.
double MC::MonteCarloUnit::init_weight {} |
Initial weight or factor used in the simulation.
KPRNG MC::MonteCarloUnit::rng |
Random number generator used for Monte Carlo methods.