Finish TTB implementation on C++ side, still a bug somewhere

This commit is contained in:
Paul Romano 2019-01-12 17:04:36 -06:00
parent ea1f2e426d
commit 2eacd5f72c
9 changed files with 133 additions and 95 deletions

View file

@ -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

View file

@ -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

View file

@ -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