ndiffusion.make_adjoint_materials¶
- ndiffusion.make_adjoint_materials(mats)[source]¶
Return a new
Materialsfor 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
matsis 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, andvelocityare copied unchanged.- Return type:
Notes
Boundary conditions are unchanged - pass the same
bcarrays 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.