mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Merge pull request #1525 from gridley/some_accessors
Add some accessors and update XTL (small)
This commit is contained in:
commit
59a7d293f8
4 changed files with 32 additions and 1 deletions
|
|
@ -43,6 +43,11 @@ public:
|
|||
//! \param seed Pseudorandom number seed pointer
|
||||
//! \return Direction sampled
|
||||
Direction sample(uint64_t* seed) const;
|
||||
|
||||
// Observing pointers
|
||||
Distribution* mu() const { return mu_.get(); }
|
||||
Distribution* phi() const { return phi_.get(); }
|
||||
|
||||
private:
|
||||
UPtrDist mu_; //!< Distribution of polar angle
|
||||
UPtrDist phi_; //!< Distribution of azimuthal angle
|
||||
|
|
|
|||
|
|
@ -32,6 +32,11 @@ public:
|
|||
//! \param seed Pseudorandom number seed pointer
|
||||
//! \return Sampled position
|
||||
Position sample(uint64_t* seed) const;
|
||||
|
||||
// Observer pointers
|
||||
Distribution* x() const { return x_.get(); }
|
||||
Distribution* y() const { return x_.get(); }
|
||||
Distribution* z() const { return x_.get(); }
|
||||
private:
|
||||
UPtrDist x_; //!< Distribution of x coordinates
|
||||
UPtrDist y_; //!< Distribution of y coordinates
|
||||
|
|
@ -50,6 +55,11 @@ public:
|
|||
//! \param seed Pseudorandom number seed pointer
|
||||
//! \return Sampled position
|
||||
Position sample(uint64_t* seed) const;
|
||||
|
||||
Distribution* r() const { return r_.get(); }
|
||||
Distribution* phi() const { return phi_.get(); }
|
||||
Distribution* z() const { return z_.get(); }
|
||||
Position origin() const { return origin_; }
|
||||
private:
|
||||
UPtrDist r_; //!< Distribution of r coordinates
|
||||
UPtrDist phi_; //!< Distribution of phi coordinates
|
||||
|
|
@ -70,6 +80,11 @@ public:
|
|||
//! \param seed Pseudorandom number seed pointer
|
||||
//! \return Sampled position
|
||||
Position sample(uint64_t* seed) const;
|
||||
|
||||
Distribution* r() const { return r_.get(); }
|
||||
Distribution* theta() const { return theta_.get(); }
|
||||
Distribution* phi() const { return phi_.get(); }
|
||||
Position origin () const { return origin_; }
|
||||
private:
|
||||
UPtrDist r_; //!< Distribution of r coordinates
|
||||
UPtrDist theta_; //!< Distribution of theta coordinates
|
||||
|
|
@ -92,6 +107,8 @@ public:
|
|||
|
||||
// Properties
|
||||
bool only_fissionable() const { return only_fissionable_; }
|
||||
Position lower_left() const { return lower_left_; }
|
||||
Position upper_right() const { return upper_right_; }
|
||||
private:
|
||||
Position lower_left_; //!< Lower-left coordinates of box
|
||||
Position upper_right_; //!< Upper-right coordinates of box
|
||||
|
|
@ -112,6 +129,8 @@ public:
|
|||
//! \param seed Pseudorandom number seed pointer
|
||||
//! \return Sampled position
|
||||
Position sample(uint64_t* seed) const;
|
||||
|
||||
Position r() const { return r_; }
|
||||
private:
|
||||
Position r_; //!< Single position at which sites are generated
|
||||
};
|
||||
|
|
|
|||
|
|
@ -43,7 +43,14 @@ public:
|
|||
Particle::Bank sample(uint64_t* seed) const;
|
||||
|
||||
// Properties
|
||||
Particle::Type particle_type() const { return particle_; }
|
||||
double strength() const { return strength_; }
|
||||
|
||||
// Make observing pointers available
|
||||
SpatialDistribution* space() const { return space_.get(); }
|
||||
UnitSphereDistribution* angle() const { return angle_.get(); }
|
||||
Distribution* energy() const { return energy_.get(); }
|
||||
|
||||
private:
|
||||
Particle::Type particle_ {Particle::Type::neutron}; //!< Type of particle emitted
|
||||
double strength_ {1.0}; //!< Source strength
|
||||
|
|
|
|||
2
vendor/xtl
vendored
2
vendor/xtl
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 0024346605bd92bcc4009caad7f4be88687e063a
|
||||
Subproject commit c19750fb1488369dc41f6069bc2b8446fc093e75
|
||||
Loading…
Add table
Add a link
Reference in a new issue