ndiffusion.FixedSourceSolver¶
- class ndiffusion.FixedSourceSolver¶
Matrix-free 1-D multigroup neutron diffusion fixed-source solver.
Solves A phi = q where q is a user-supplied external source. No fission or power iteration is performed.
source: (n_cells, n_groups), or flat in the same row-major order. bc and bc_left are the right and left Robin BCs, as for KEigenSolver.
- __init__(self: ndiffusion._core.FixedSourceSolver, mats: ndiffusion._core.Materials, medium_map: numpy.ndarray[int32], edges_x: numpy.ndarray[float64], geom: ndiffusion._core.Geometry, bc: collections.abc.Sequence[ndiffusion._core.BoundaryCondition], epsilon: SupportsFloat | SupportsIndex = 1e-08, max_inner: SupportsInt | SupportsIndex = 200, verbose: bool = False, bc_left: collections.abc.Sequence[ndiffusion._core.BoundaryCondition] = []) None¶
Methods
__init__(self, mats, medium_map, edges_x, ...)solve(self, source)Solve A*phi = source and return a FixedSourceResult.
Attributes
- property n_cells¶
- property n_groups¶
- solve(self: ndiffusion._core.FixedSourceSolver, source: object) ndiffusion._core.FixedSourceResult¶
Solve A*phi = source and return a FixedSourceResult.
source is flat or shaped (n_cells, n_groups), per unit volume.