mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Finish TTB implementation on C++ side, still a bug somewhere
This commit is contained in:
parent
ea1f2e426d
commit
2eacd5f72c
9 changed files with 133 additions and 95 deletions
|
|
@ -37,6 +37,10 @@ extern xt::xtensor<double, 1> ttb_k_grid; //! reduced energy W/T of emitted phot
|
|||
|
||||
} // namespace data
|
||||
|
||||
//==============================================================================
|
||||
// Global variables
|
||||
//==============================================================================
|
||||
|
||||
void thick_target_bremsstrahlung(Particle& p, double* E_lost);
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
explicit Material(pugi::xml_node material_node);
|
||||
|
||||
private:
|
||||
//! Initialize bremsstrahlung data
|
||||
void init_bremsstrahlung();
|
||||
};
|
||||
|
||||
|
|
@ -55,6 +55,7 @@ private:
|
|||
// Fortran compatibility
|
||||
//==============================================================================
|
||||
|
||||
extern "C" int* material_element(int i_material);
|
||||
extern "C" bool material_isotropic(int i_material, int i_nuc_mat);
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
|
|
@ -82,8 +82,6 @@ void inelastic_scatter(const Nuclide* nuc, const Reaction* rx, Particle* p);
|
|||
|
||||
void sample_secondary_photons(Particle* p, int i_nuclide);
|
||||
|
||||
extern "C" void thick_target_bremsstrahlung(Particle* p, double* E_lost);
|
||||
|
||||
} // namespace openmc
|
||||
|
||||
#endif // OPENMC_PHYSICS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue