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


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) |
Sweep over a 1D 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 Sweep1D | ( | 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 | source, | ||
| 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 |
Weighted diamond-difference parameters.
| Property d_boundary |
Boundary fluxes.
| Property d_equation |
Spatial discretization.
| Property d_input |
User input.
| Property d_mesh |
1-D Cartesian mesh.
| Property d_nx |
| Property d_quadrature |
Angular mesh.
1.7.3