An open source method of characteristics neutron transport code.
|
A class used to recenter Segments once their related FSR centroid is known. More...
#include <TrackTraversingAlgorithms.h>
Public Member Functions | |
RecenterSegments (TrackGenerator *track_generator) | |
Constructor for the RecenterSegments calls the TraverseSegments constructor and sets the track generator. More... | |
void | onTrack (Track *track, segment *segments) |
Loops over all segments provided, obtain their region (FSR) centroid and re-center the segment. More... | |
void | execute () |
When executed, the Kernel loops over all Tracks to recenter their segments. | |
Additional Inherited Members | |
Protected Member Functions inherited from TraverseSegments | |
TraverseSegments (TrackGenerator *track_generator) | |
Constructor for the TraverseSegments class assigns the TrackGenerator and pulls relevant information from it. | |
virtual | ~TraverseSegments () |
Destructor for TraverseSegments. | |
void | loopOverTracks (MOCKernel *kernel) |
Loops over Tracks, applying the provided kernel to all segments and the functionality described in onTrack(...) to all Tracks. More... | |
void | loopOverTracksByStackTwoWay (TransportKernel *kernel) |
Loops over all 3D Tracks using axial on-the-fly ray tracking by z-stack, going forward then backward on each 3D Track. More... | |
template<class KernelType > | |
MOCKernel * | getKernel () |
Protected Attributes inherited from TraverseSegments | |
TrackGenerator * | _track_generator |
TrackGenerator3D * | _track_generator_3D |
double * | _global_z_mesh |
int | _mesh_size |
segmentationType | _segment_formation |
A class used to recenter Segments once their related FSR centroid is known.
"src/TrackTraversingAlgorithms.h"
RecenterSegments imports Track data from the provided TrackGenerator and loops through segments to re-center them once their FSR centroid has been computed. This is important to use the linear source with explicit ray tracing.
RecenterSegments::RecenterSegments | ( | TrackGenerator * | track_generator | ) |
Constructor for the RecenterSegments calls the TraverseSegments constructor and sets the track generator.
track_generator | Track generator to obtain and re-center segments. |
Loops over all segments provided, obtain their region (FSR) centroid and re-center the segment.
track | Track which contains the segments |
segments | array of segments to re-center |
Implements TraverseSegments.