ndiffusion.unstructured_operator¶
- ndiffusion.unstructured_operator(mats, mesh, bc)[source]¶
Assemble the sparse operator of the unstructured FVM solvers.
- Parameters:
mats (Materials)
mesh (UnstructuredMesh2D)
bc (list of BoundaryCondition) – Tag-indexed,
bc[tag * G + g], as passed to the solver.
- Returns:
loss(M),production(F),correction(C),area. A fixed-source solution satisfiesloss @ phi.ravel() = (q * area[:, None]).ravel()and a k-eigenvalue oneloss @ phi.ravel() = production @ phi.ravel() / k, both to the solver’s tolerance.- Return type: