mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue