mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
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:
parent
b1b8a4c328
commit
5222b343a4
21 changed files with 2064 additions and 369 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue