An open source method of characteristics neutron transport code.
Solver.h File Reference

The Solver class. More...

Go to the source code of this file.

Classes

class  Solver
 This is an abstract base class which different Solver subclasses implement for different architectures or source iteration algorithms. More...
 

Macros

#define _scalar_flux(r, e)   (_scalar_flux[(r)*_num_groups + (e)])
 
#define _old_scalar_flux(r, e)   (_old_scalar_flux[(r)*_num_groups + (e)])
 
#define _reference_flux(r, e)   (_reference_flux[(r)*_num_groups + (e)])
 
#define reference_flux(r, e)   (reference_flux[(r)*_num_groups + (e)])
 
#define _stabilizing_flux(r, e)   (_stabilizing_flux[(r)*_num_groups + (e)])
 
#define _reduced_sources(r, e)   (_reduced_sources[(r)*_num_groups + (e)])
 
#define _boundary_flux(i, j, pe)
 
#define _start_flux(i, j, pe)
 
#define _fixed_sources(r, e)   (_fixed_sources[(r)*_num_groups + (e)])
 
#define fission_sources(r, e)   (fission_sources[(r)*_num_groups + (e)])
 
#define scatter_sources(r, e)   (scatter_sources[(r)*_num_groups + (e)])
 

Enumerations

enum  solverMode { FORWARD, ADJOINT }
 The solution mode used by the MOC solver. More...
 
enum  residualType { SCALAR_FLUX, FISSION_SOURCE, TOTAL_SOURCE }
 The type of residual used for the convergence criterion. More...
 
enum  stabilizationType { DIAGONAL, YAMAMOTO, GLOBAL }
 The type of stabilization to use on source iteration. More...
 

Detailed Description

The Solver class.

Date
February 7, 2012
Author
William Boyd, MIT, Course 22 (wboyd.nosp@m.@mit.nosp@m..edu)

Macro Definition Documentation

◆ _boundary_flux

#define _boundary_flux (   i,
  j,
  pe 
)
Value:
(_boundary_flux[(i)*2*_fluxes_per_track \
+ (j)*_fluxes_per_track \
+ (pe)])
#define _boundary_flux(i, j, pe)
Definition: Solver.h:49

Indexing macro for the angular fluxes for each polar angle and energy group for the outgoing reflective track for both the forward and reverse direction for a given track

◆ _fixed_sources

#define _fixed_sources (   r,
 
)    (_fixed_sources[(r)*_num_groups + (e)])

Indexing scheme for fixed sources for each FSR and energy group

◆ _old_scalar_flux

#define _old_scalar_flux (   r,
 
)    (_old_scalar_flux[(r)*_num_groups + (e)])

Indexing macro for the old scalar flux in each FSR and energy group

◆ _reduced_sources

#define _reduced_sources (   r,
 
)    (_reduced_sources[(r)*_num_groups + (e)])

Indexing macro for the total source divided by the total cross-section ( $ \frac{Q}{\Sigma_t} $) in each FSR and energy group

◆ _reference_flux

#define _reference_flux (   r,
 
)    (_reference_flux[(r)*_num_groups + (e)])

Indexing macro for the reference scalar flux in each FSR and energy group

◆ _scalar_flux

#define _scalar_flux (   r,
 
)    (_scalar_flux[(r)*_num_groups + (e)])

Indexing macro for the scalar flux in each FSR and energy group

◆ _stabilizing_flux

#define _stabilizing_flux (   r,
 
)    (_stabilizing_flux[(r)*_num_groups + (e)])

Indexing macro for the stabilizing flux in each FSR and energy group

◆ _start_flux

#define _start_flux (   i,
  j,
  pe 
)
Value:
(_start_flux[(i)*2*_fluxes_per_track \
+ (j)*_fluxes_per_track \
+ (pe)])

◆ fission_sources

#define fission_sources (   r,
 
)    (fission_sources[(r)*_num_groups + (e)])

Indexing scheme for the total fission source ( $ \nu\Sigma_f\Phi $) for each FSR and energy group

◆ reference_flux

#define reference_flux (   r,
 
)    (reference_flux[(r)*_num_groups + (e)])

Indexing macro for the reference scalar flux in each FSR and energy group

◆ scatter_sources

#define scatter_sources (   r,
 
)    (scatter_sources[(r)*_num_groups + (e)])

Indexing scheme for the total in-scatter source ( $ \Sigma_s\Phi $) for each FSR and energy group

Enumeration Type Documentation

◆ residualType

The type of residual used for the convergence criterion.

Enumerator
SCALAR_FLUX 

A residual on the scalar flux distribution

FISSION_SOURCE 

A residual on the fission source distribution

TOTAL_SOURCE 

A residual on the total source distribution

◆ solverMode

enum solverMode

The solution mode used by the MOC solver.

Enumerator
FORWARD 

The forward flux distribution

ADJOINT 

The adjoint flux distribution

◆ stabilizationType

The type of stabilization to use on source iteration.

Enumerator
DIAGONAL 

General diagonal stabilization

YAMAMOTO 

Yamamoto's groupwise stabilization

GLOBAL 

Global damping on the scalar flux update