Applies transport equations to segment data.
More...
#include "src/MOCKernel.h"
|
| TransportKernel (TrackGenerator *track_generator) |
| Constructor for the TransportKernel. More...
|
|
virtual | ~TransportKernel () |
| Destructor for the TransportKernel.
|
|
void | newTrack (Track *track) |
| Create a new track3D from an existing one. More...
|
|
void | setCPUSolver (CPUSolver *cpu_solver) |
| Sets a pointer to the CPUSolver to enable use of transport functions. More...
|
|
void | setTrackFlux (FP_PRECISION *fwd_flux, FP_PRECISION *bwd_flux, int track_id) |
|
void | setTrackIndexes (int azim_index, int polar_index) |
|
void | setDirection (bool direction) |
| Sets the direction of the current track. More...
|
|
bool | getDirection () |
| Returns the direction of the current track. More...
|
|
void | execute (FP_PRECISION length, Material *mat, long fsr_id, int track_idx, int cmfd_surface_fwd, int cmfd_surface_bwd, FP_PRECISION x_start, FP_PRECISION y_start, FP_PRECISION z_start, FP_PRECISION phi, FP_PRECISION theta) |
| Apply MOC equations, tally fluxes and tally CMFD currents. More...
|
|
void | post () |
| Obtain and transfer the boundary track angular fluxes.
|
|
| MOCKernel (TrackGenerator *track_generator) |
| Constructor for the MOCKernel assigns default values. More...
|
|
virtual | ~MOCKernel () |
| Destructor for MOCKernel.
|
|
int | getCount () |
| Reads and returns the current count. More...
|
|
void | setMaxOpticalLength (FP_PRECISION max_tau) |
| Resets the maximum optcal path length for a segment. More...
|
|
Applies transport equations to segment data.
A TransportKernel inherets from MOCKernel and is a kernel which is initialized with a pointer to a CPU Solver. Input data of the "execute" function is used to apply the MOC equations in CPUSolver.
◆ TransportKernel()
◆ execute()
void TransportKernel::execute |
( |
FP_PRECISION |
length, |
|
|
Material * |
mat, |
|
|
long |
fsr_id, |
|
|
int |
track_idx, |
|
|
int |
cmfd_surface_fwd, |
|
|
int |
cmfd_surface_bwd, |
|
|
FP_PRECISION |
x_start, |
|
|
FP_PRECISION |
y_start, |
|
|
FP_PRECISION |
z_start, |
|
|
FP_PRECISION |
phi, |
|
|
FP_PRECISION |
theta |
|
) |
| |
|
virtual |
Apply MOC equations, tally fluxes and tally CMFD currents.
- Parameters
-
length | length of the segment |
mat | pointer to the Material around the segment |
fsr_id | id of the FSR the segment lies in |
track_idx | id of the track |
cmfd_surface_fwd | CMFD surface at the end of the segment in the forward direction |
cmfd_surface_bwd | CMFD surface at the end of the segment in the backward direction |
x_start | x coordinate of the start of the segment |
y_start | y coordinate of the start of the segment |
z_start | z coordinate of the start of the sement |
phi | azimuthal angle of this segment |
theta | polar angle of this segment |
Implements MOCKernel.
◆ getDirection()
bool TransportKernel::getDirection |
( |
| ) |
|
Returns the direction of the current track.
- Returns
- _direction the direction of the track: true = Forward, false = Backward
◆ newTrack()
void TransportKernel::newTrack |
( |
Track * |
track | ) |
|
|
virtual |
Create a new track3D from an existing one.
- Parameters
-
track | track to create the new track from |
Reimplemented from MOCKernel.
◆ setCPUSolver()
void TransportKernel::setCPUSolver |
( |
CPUSolver * |
cpu_solver | ) |
|
Sets a pointer to the CPUSolver to enable use of transport functions.
- Parameters
-
◆ setDirection()
void TransportKernel::setDirection |
( |
bool |
direction | ) |
|
Sets the direction of the current track.
- Parameters
-
direction | the direction of the track: true = Forward, false = Backward |
The documentation for this class was generated from the following files:
- /home/guillaume/Research/OpenMOC/src/MOCKernel.h
- /home/guillaume/Research/OpenMOC/src/MOCKernel.cpp