|
MatlabTransportPack
|
Sweep over a 2D mesh. More...


Public Member Functions | |
| function | Sweep2D_mod (in input, in mesh, in mat, in quadrature, in boundary, in equation) |
| Class constructor. | |
| function | sweep (in obj, in s, in g) |
| Sweep the mesh for all angles. | |
Public Attributes | |
| Property | d_input |
| Property | d_mesh |
| Property | d_mat |
| Property | d_quadrature |
| Property | d_equation |
| Property | d_alpha |
| Property | d_psi_horizontal |
| Property | d_boundary |
| Property | d_nx |
| Property | d_ny |
Private Member Functions | |
| function | x_bounds (in obj, in o) |
| function | y_bounds (in obj, in o) |
Sweep over a 2D mesh.
The within-group transport equation is
where
is the streaming and collision operator and
is a discrete representation of all source contributions.
To invert the operator
, 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.
| function Sweep2D_mod | ( | in | input, |
| in | mesh, | ||
| in | mat, | ||
| in | quadrature, | ||
| in | boundary, | ||
| in | equation | ||
| ) |
Class constructor.
| input | Number of fine mesh per x coarse mesh. |
| mesh | Number of fine mesh per y coarse mesh. |
| mat | Coarse mesh edges along x axis. |
| quadrature | Coarse mesh edges along y axis. |
| boundary | Coarse mesh material map. |
| function sweep | ( | in | obj, |
| in | s, | ||
| in | g | ||
| ) |
Sweep the mesh for all angles.
This performs the action of
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.
| source | Discrete sweep source. |
| g | Group of this problem. |
| function x_bounds | ( | in | obj, |
| in | o | ||
| ) | [private] |
| function y_bounds | ( | in | obj, |
| in | o | ||
| ) | [private] |
| Property d_alpha |
| Property d_boundary |
| Property d_equation |
| Property d_input |
| Property d_mat |
| Property d_mesh |
| Property d_nx |
| Property d_ny |
| Property d_psi_horizontal |
| Property d_quadrature |
1.7.3