Implementation of time distribution for the source

This commit is contained in:
Olaf Schumann 2021-12-28 12:30:15 +01:00
parent d12e390f1a
commit d93df33dfb
3 changed files with 48 additions and 8 deletions

View file

@ -42,13 +42,13 @@ public:
};
//==============================================================================
//! Source composed of independent spatial, angle, and energy distributions
//! Source composed of independent spatial, angle, energy, and time distributions
//==============================================================================
class IndependentSource : public Source {
public:
// Constructors
IndependentSource(UPtrSpace space, UPtrAngle angle, UPtrDist energy);
IndependentSource(UPtrSpace space, UPtrAngle angle, UPtrDist energy, UPtrDist time);
explicit IndependentSource(pugi::xml_node node);
//! Sample from the external source distribution
@ -64,6 +64,7 @@ public:
SpatialDistribution* space() const { return space_.get(); }
UnitSphereDistribution* angle() const { return angle_.get(); }
Distribution* energy() const { return energy_.get(); }
Distribution* time() const { return time_.get(); }
private:
ParticleType particle_ {ParticleType::neutron}; //!< Type of particle emitted
@ -71,6 +72,7 @@ private:
UPtrSpace space_; //!< Spatial distribution
UPtrAngle angle_; //!< Angular distribution
UPtrDist energy_; //!< Energy distribution
UPtrDist time_; //!< Time distribution
};
//==============================================================================