MatlabTransportPack
Public Member Functions | Public Attributes | Private Member Functions

Sweep1D Class Reference

Sweep over a 1D mesh. More...

Inheritance diagram for Sweep1D:
Inheritance graph
[legend]
Collaboration diagram for Sweep1D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

function Sweep1D (in input, in mesh, in mat, in quadrature, in boundary, in equation)
 Class constructor.
function sweep (in obj, in source, in g)
 Sweep the mesh for all angles.

Public Attributes

Property d_input
 User input.
Property d_mesh
 1-D Cartesian mesh.
Property d_mat
 Materials.
Property d_quadrature
 Angular mesh.
Property d_equation
 Spatial discretization.
Property d_alpha
 Weighted diamond-difference parameters.
Property d_boundary
 Boundary fluxes.
Property d_nx

Private Member Functions

function x_bounds (in obj, in o)
function y_bounds (in obj, in o)

Detailed Description

Sweep over a 1D mesh.

The within-group transport equation is

\[ \mathbf{T}\psi = Q \, , \]

where $ \mathbf{T} $ is the streaming and collision operator and $ Q $ is a discrete representation of all source contributions.

To invert the operator $ \mathbf{T} $, we "sweep" over the mesh for all angles, which gives us updated angular fluxes in each cell. However, we don't store the angular flux, but rather add its contribution to the scalar flux directly since storing the angular flux is too expensive.


Constructor & Destructor Documentation

function Sweep1D ( in  input,
in  mesh,
in  mat,
in  quadrature,
in  boundary,
in  equation 
)

Class constructor.

Parameters:
inputNumber of fine mesh per x coarse mesh.
meshNumber of fine mesh per y coarse mesh.
matCoarse mesh edges along x axis.
quadratureCoarse mesh edges along y axis.
boundaryCoarse mesh material map.
Returns:
Instance of the Mesh class.

Member Function Documentation

function sweep ( in  obj,
in  source,
in  g 
)

Sweep the mesh for all angles.

This performs the action of $ \mathbf{T}^{-1} $ on a given discrete right hand side vector. Currently, a single vector applicable to all angles is provided, since we work only with isotropic sources and scattering.

Parameters:
sourceDiscrete sweep source.
gGroup of this problem.
Returns:
Updated group flux.
function x_bounds ( in  obj,
in  o 
) [private]
function y_bounds ( in  obj,
in  o 
) [private]

Member Data Documentation

Property d_alpha

Weighted diamond-difference parameters.

Property d_boundary

Boundary fluxes.

Property d_equation

Spatial discretization.

Property d_input

User input.

Property d_mat
Property d_mesh

1-D Cartesian mesh.

Property d_nx
Property d_quadrature

Angular mesh.


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