|
MatlabTransportPack
|
Diamond difference approximation in one dimension. More...


Public Member Functions | |
| function | SD1D (in mesh, in mat, in quadrature) |
| Class constructor. | |
| function | get_con_x (in obj, in octant) |
| function | setup_group (in obj, in group) |
| Setup the equations for a group. | |
| function | setup_octant (in obj, in octant) |
| Setup the equations for an octant. | |
| function | setup_angle (in obj, in mu) |
| Setup the equations for an angle. | |
| function | solve (in obj, in g, in psi_in, in s, in i) |
| Solve for the cell-center and outgoing edge fluxes. | |
Public Attributes | |
| Property | d_con_x |
| Property | d_beta |
| Property | d_sig |
| Property | d_con_out |
| Constant Property | HORZ = 1 |
| Constant Property | VERT = 2 |
Protected Attributes | |
| Property | d_mesh |
| Problem mesh. | |
| Property | d_mat |
| Material definitions. | |
| Property | d_quadrature |
| Quadrature. | |
| Property | d_mu |
| Current mu value. | |
| Property | d_eta |
| current eta value | |
| Property | d_ksi |
| Current ksi value. | |
| Property | d_alpha |
| Weighted diamond difference parameter. | |
| Property | d_mat_map |
| Material map. | |
Diamond difference approximation in one dimension.
The 1-D discretized transport equation in
To solve this, the cell center flux is related to the incoming and outgoing edge fluxes by a general relation
Solving for the outgoing flux and inserting in the transport equation yields
and
For the step difference approximation,
over all indices.
In general, we define
and
which applies to other discretizations, thus yielding a consistent interface.
| function SD1D | ( | in | mesh, |
| in | mat, | ||
| in | quadrature | ||
| ) |
Class constructor.
Set the mesh and material.
| mesh | Problem mesh. |
| mat | Material definitions. |
| function get_con_x | ( | in | obj, |
| in | octant | ||
| ) |
| function setup_angle | ( | in | obj, |
| in | mu | ||
| ) |
Setup the equations for an angle.
| mu | Cosine with respect to x axis. |
| eta | Cosine with respect to y axis. |
| function setup_group | ( | in | obj, |
| in | group | ||
| ) |
Setup the equations for a group.
Here, we'll go through the grid and produce a fine mesh matrix of total cross-sections. This isn't the best thing for memory, but it cuts down a lot on the time within solve.
| group | Current group. |
| function setup_octant | ( | in | obj, |
| in | octant | ||
| ) |
Setup the equations for an octant.
| octant | Current octant. |
| function solve | ( | in | obj, |
| in | g, | ||
| in | psi_in, | ||
| in | s, | ||
| in | i | ||
| ) |
Solve for the cell-center and outgoing edge fluxes.
| g | Group index |
| psi_in | Incident flux vector |
| s | Cell source |
| i | Cell x index |
Property d_alpha [protected, inherited] |
Weighted diamond difference parameter.
| Property d_beta |
| Property d_con_out |
| Property d_con_x |
Property d_eta [protected, inherited] |
current eta value
Property d_ksi [protected, inherited] |
Current ksi value.
Property d_mat [protected, inherited] |
Material definitions.
Property d_mat_map [protected, inherited] |
Material map.
Property d_mesh [protected, inherited] |
Problem mesh.
Property d_mu [protected, inherited] |
Current mu value.
Property d_quadrature [protected, inherited] |
| Property d_sig |
Constant Property HORZ = 1 [inherited] |
Constant Property VERT = 2 [inherited] |
1.7.3