Fixed Source Random Ray (#2988)

Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
John Tramm 2024-06-17 11:02:20 -05:00 committed by GitHub
parent b1b8a4c328
commit 5222b343a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 2064 additions and 369 deletions

View file

@ -15,6 +15,7 @@
#include "openmc/material.h"
#include "openmc/math_functions.h"
#include "openmc/nuclide.h"
#include "openmc/search.h"
#include "openmc/settings.h"
namespace openmc {
@ -183,6 +184,15 @@ vector<vector<double>> MgxsInterface::get_mat_kTs()
//==============================================================================
int MgxsInterface::get_group_index(double E)
{
int g =
lower_bound_index(rev_energy_bins_.begin(), rev_energy_bins_.end(), E);
return num_energy_groups_ - g - 1.;
}
//==============================================================================
void MgxsInterface::read_header(const std::string& path_cross_sections)
{
// Save name of HDF5 file to be read to struct data