mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Added create_fission_sites and absorption to physics_mg.cpp
This commit is contained in:
parent
960f71e276
commit
ef9908e774
5 changed files with 183 additions and 164 deletions
|
|
@ -149,6 +149,8 @@ extern "C" {
|
|||
extern int32_t n_tallies;
|
||||
extern int32_t n_universes;
|
||||
extern bool openmc_simulation_initialized;
|
||||
extern double global_tally_absorption;
|
||||
#pragma omp threadprivate(global_tally_absorption)
|
||||
|
||||
// Variables that are shared by necessity (can be removed from public header
|
||||
// later)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
#ifndef OPENMC_PHYSICS_MG_H
|
||||
#define OPENMC_PHYSICS_MG_H
|
||||
|
||||
#include "openmc/capi.h"
|
||||
#include "openmc/particle.h"
|
||||
#include "openmc/nuclide.h"
|
||||
|
||||
namespace openmc {
|
||||
|
||||
|
|
@ -16,5 +18,15 @@ namespace openmc {
|
|||
extern "C" void
|
||||
scatter(Particle* p, const double* energy_bin_avg);
|
||||
|
||||
//! \brief Determines the average total, prompt and delayed neutrons produced
|
||||
//! from fission and creates the appropriate bank sites.
|
||||
extern "C" void
|
||||
create_fission_sites(Particle* p, Bank* bank_array, int64_t& size_bank,
|
||||
int64_t& bank_array_size, MaterialMacroXS& material_xs);
|
||||
|
||||
//! \brief Handles an absorption event
|
||||
extern "C" void
|
||||
absorption(Particle* p, MaterialMacroXS& material_xs);
|
||||
|
||||
} // namespace openmc
|
||||
#endif // OPENMC_PHYSICS_MG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue