ndiffusion.unstructured_operator

ndiffusion.unstructured_operator(mats, mesh, bc)[source]

Assemble the sparse operator of the unstructured FVM solvers.

Parameters:
Returns:

loss (M), production (F), correction (C), area. A fixed-source solution satisfies loss @ phi.ravel() = (q * area[:, None]).ravel() and a k-eigenvalue one loss @ phi.ravel() = production @ phi.ravel() / k, both to the solver’s tolerance.

Return type:

UnstructuredOperator