added a data member in particle to track # of secondary particles

This commit is contained in:
liangjg 2019-04-04 11:22:03 -04:00
parent ba05630a08
commit a034fb2e76
4 changed files with 24 additions and 4 deletions

View file

@ -105,9 +105,10 @@ constexpr std::array<const char*, 39> SUBSHELLS = {
"Q1", "Q2", "Q3"
};
// Void material
// Void material and nuclide
// TODO: refactor and remove
constexpr int MATERIAL_VOID {-1};
constexpr int NUCLIDE_VOID {-1};
// ============================================================================
// CROSS SECTION RELATED CONSTANTS
@ -127,6 +128,7 @@ constexpr int TEMPERATURE_INTERPOLATION {2};
// Reaction types
// TODO: Convert to enum
constexpr int NONE_REACTION {0};
constexpr int TOTAL_XS {1};
constexpr int ELASTIC {2};
constexpr int N_NONELASTIC {3};
@ -344,6 +346,7 @@ constexpr int ESTIMATOR_COLLISION {3};
// TODO: Convert to enum
constexpr int EVENT_SURFACE {-2};
constexpr int EVENT_LATTICE {-1};
constexpr int EVENT_KILL {0};
constexpr int EVENT_SCATTER {1};
constexpr int EVENT_ABSORB {2};

View file

@ -184,7 +184,7 @@ public:
//! \param u Direction of the secondary particle
//! \param E Energy of the secondary particle in [eV]
//! \param type Particle type
void create_secondary(Direction u, double E, Type type) const;
void create_secondary(Direction u, double E, Type type);
//! initialize from a source site
//
@ -261,6 +261,7 @@ public:
// Post-collision physical data
int n_bank_ {0}; //!< number of fission sites banked
int n_bank_second_ {0}; //!< number of secondary particles
double wgt_bank_ {0.0}; //!< weight of fission sites banked
int n_delayed_bank_[MAX_DELAYED_GROUPS]; //!< number of delayed fission
//!< sites banked