Function opensn::ComputeAngularSource(const SweepChunk::GroupsetMoments&, std::size_t, std::size_t, unsigned int, std::size_t, const double *, double *)

Function Documentation

inline void opensn::ComputeAngularSource(const SweepChunk::GroupsetMoments &moments, std::size_t first_node, std::size_t num_nodes, unsigned int num_moments, std::size_t gs_size, const double *m2d_row, double *nodal_source)

Adds the angular source of direction m2d_row at every node of a cell to nodal_source.

Entry i * gs_size + g receives the source of group g at node i, from the groupset’s source moments. This is ComputeAngularSource with the moments located by moments instead of the cell’s transport view.