mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Add particle direction at birth
This commit is contained in:
parent
6eef5f48a7
commit
4c502fee37
2 changed files with 6 additions and 0 deletions
|
|
@ -352,6 +352,10 @@ public:
|
|||
Position& r_born() { return r_born_; }
|
||||
const Position& r_born() const { return r_born_; }
|
||||
|
||||
// Direction at birth
|
||||
Direction& u_born() { return u_born_; }
|
||||
const Direction& u_born() const { return u_born_; }
|
||||
|
||||
// Coordinates of last collision or reflective/periodic surface
|
||||
// crossing for current tallies
|
||||
Position& r_last_current() { return r_last_current_; }
|
||||
|
|
@ -426,6 +430,7 @@ private:
|
|||
vector<int> cell_last_; //!< coordinates for all levels
|
||||
|
||||
Position r_born_; //!< coordinates at birth
|
||||
Position u_born_; //!< direction at birth
|
||||
Position r_last_current_; //!< coordinates of the last collision or
|
||||
//!< reflective/periodic surface crossing for
|
||||
//!< current tallies
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ void Particle::from_source(const SourceSite* src)
|
|||
r() = src->r;
|
||||
u() = src->u;
|
||||
r_born() = src->r;
|
||||
u_born() = src->u;
|
||||
r_last_current() = src->r;
|
||||
r_last() = src->r;
|
||||
u_last() = src->u;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue