An open source method of characteristics neutron transport code.
RecenterSegments Class Reference

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 >
MOCKernelgetKernel ()
 
- Protected Attributes inherited from TraverseSegments
TrackGenerator_track_generator
 
TrackGenerator3D_track_generator_3D
 
double * _global_z_mesh
 
int _mesh_size
 
segmentationType _segment_formation
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RecenterSegments()

RecenterSegments::RecenterSegments ( TrackGenerator track_generator)

Constructor for the RecenterSegments calls the TraverseSegments constructor and sets the track generator.

Parameters
track_generatorTrack generator to obtain and re-center segments.

Member Function Documentation

◆ onTrack()

void RecenterSegments::onTrack ( Track track,
segment segments 
)
virtual

Loops over all segments provided, obtain their region (FSR) centroid and re-center the segment.

Parameters
trackTrack which contains the segments
segmentsarray of segments to re-center

Implements TraverseSegments.


The documentation for this class was generated from the following files: