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

@ -137,7 +137,11 @@ int openmc_simulation_init()
// Display header
if (mpi::master) {
if (settings::run_mode == RunMode::FIXED_SOURCE) {
header("FIXED SOURCE TRANSPORT SIMULATION", 3);
if (settings::solver_type == SolverType::MONTE_CARLO) {
header("FIXED SOURCE TRANSPORT SIMULATION", 3);
} else if (settings::solver_type == SolverType::RANDOM_RAY) {
header("FIXED SOURCE TRANSPORT SIMULATION (RANDOM RAY SOLVER)", 3);
}
} else if (settings::run_mode == RunMode::EIGENVALUE) {
if (settings::solver_type == SolverType::MONTE_CARLO) {
header("K EIGENVALUE SIMULATION", 3);
@ -343,7 +347,13 @@ void initialize_batch()
++simulation::current_batch;
if (settings::run_mode == RunMode::FIXED_SOURCE) {
write_message(6, "Simulating batch {}", simulation::current_batch);
if (settings::solver_type == SolverType::RANDOM_RAY &&
simulation::current_batch < settings::n_inactive + 1) {
write_message(
6, "Simulating batch {:<4} (inactive)", simulation::current_batch);
} else {
write_message(6, "Simulating batch {}", simulation::current_batch);
}
}
// Reset total starting particle weight used for normalizing tallies