13 for (
auto i = 0; i <
node_ids_.size(); i++) {
19 throw std::runtime_error(
20 std::format(
"ID {} not found in current element.", prev_id));
31 source_bank, angular_quadrature);
void SetNodeSourceFluxes(Mesh &mesh, const MaterialBank &material_bank, const SourceBank &source_bank, const QuadratureBase< Ordinate > &angular_quadrature)
Compute and set the source flux values on this element's nodes using this element's material and sour...
int material_id() const
Get Material ID.
std::vector< size_t > node_ids_
IDs of nodes defining the element.
int material_id_
Material ID to access Material Bank. Auto initialized to -1. Value must be set to a positive value (i...
Element(const int material_id, const int source_id)
Construct a new Element object.
int source_id() const
Get Source ID.
int source_id_
Source ID to access Source Bank. ID of 0 is always NONE, meaning the element has no external source.
void SetNewNodeID(const size_t prev_id, const size_t new_id)
Set the new Node ID.
Bank holding the materials defined in the input file.
const Node & GetNode(const size_t id) const
Get Node by ID.
void SetNodeSourceFluxes(const size_t node_id, const std::vector< double > &source_fluxes)
Set the Node's source flux values.
Base class for defining a quadrature set.
Bank holding the volumetric sources defined in the input file.
std::vector< double > ComputeNodeSourceFluxes(const Node &node, const int material_id, const int source_id, const MaterialBank &material_bank, const SourceBank &source_bank, const QuadratureBase< Ordinate > &angular_quadrature)
Compute the node source flux values.
A point in the mesh holding its coordinates, boundary info, and flux solution values.