Skip to content

Commit bda7712

Browse files
committed
parametrize openmc_run_random_ray()
1 parent 859fbec commit bda7712

2 files changed

Lines changed: 193 additions & 206 deletions

File tree

include/openmc/random_ray/random_ray_simulation.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ class RandomRaySimulation {
1919

2020
//----------------------------------------------------------------------------
2121
// Methods
22-
void compute_segment_correction_factors();
2322
void apply_fixed_sources_and_mesh_domains();
2423
void prepare_fixed_sources_adjoint();
24+
void print_random_ray_headers();
25+
void run_single_simulation();
26+
void random_ray_adjoint();
27+
void kinetic_initial_condition();
28+
void kinetic_single_time_step(int i);
2529
void simulate();
2630
void output_simulation_results() const;
2731
void instability_check(
@@ -52,9 +56,16 @@ class RandomRaySimulation {
5256
// Number of delay groups
5357
int ndgroups_;
5458

59+
// Toggle for first simulation
60+
bool is_first_simulation_;
61+
62+
// Flag for adjoint simulation;
63+
bool adjoint_needed_;
64+
5565
//----------------------------------------------------------------------------
5666
// Data Members for kinetic simulations
5767

68+
double static_avg_k_eff_;
5869
vector<double> static_k_eff_;
5970
vector<double> static_fission_rate_;
6071

0 commit comments

Comments
 (0)