ndiffusion.make_adjoint_materials

ndiffusion.make_adjoint_materials(mats)[source]

Return a new Materials for the adjoint diffusion problem.

Running any existing solver (k-eigenvalue, fixed-source, or time-dependent, in any geometry) on the returned materials solves the corresponding adjoint equation. The original mats is not modified.

Parameters:

mats (ndiffusion.Materials) – Forward-problem cross sections.

Returns:

Adjoint cross sections: scatter transposed over the group indices and, for fission, chi/nusigf swapped (standard mode) or the nusigf matrix transposed (fission-matrix mode). D, removal, and velocity are copied unchanged.

Return type:

ndiffusion.Materials

Notes

Boundary conditions are unchanged - pass the same bc arrays to the solver. For fixed-source adjoint problems the source is the adjoint source (e.g. a detector response cross section), which the caller supplies.