hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
simulation.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright (c) 2026, Liam Pohlmann
3
4#ifndef HUMMINGBIRD_SIMULATION_H_
5#define HUMMINGBIRD_SIMULATION_H_
6
7#include <limits>
8
9namespace hummingbird {
10
11/**
12 * @brief Tracks the running state of a simulation across source iterations
13 *
14 */
15struct Simulation {
16 /// @brief Effective multiplication factor
17 double k_eff = 1.0;
18
19 /// @brief L2 norm of the change in scalar flux between the current and
20 /// previous source iteration
21 double flux_error_l2 = 0;
22
23 /// @brief Fission source
24 double fission_source = 0.0;
25
26 /// @brief Relative error in k_eff between the current and previous
27 /// iteration
28 double k_eff_iter_error = std::numeric_limits<double>::infinity();
29
30 /// @brief Relative L2 error in the scalar flux (flux_error_l2 normalized
31 /// by the current iteration's flux L2 norm) between the current and
32 /// previous source iteration
33 double flux_relative_error = std::numeric_limits<double>::infinity();
34};
35
36} // namespace hummingbird
37
38#endif // HUMMINGBIRD_SIMULATION_H_
Tracks the running state of a simulation across source iterations.
Definition simulation.h:15
double flux_relative_error
Relative L2 error in the scalar flux (flux_error_l2 normalized by the current iteration's flux L2 nor...
Definition simulation.h:33
double k_eff_iter_error
Relative error in k_eff between the current and previous iteration.
Definition simulation.h:28
double flux_error_l2
L2 norm of the change in scalar flux between the current and previous source iteration.
Definition simulation.h:21
double fission_source
Fission source.
Definition simulation.h:24
double k_eff
Effective multiplication factor.
Definition simulation.h:17