2005 · 15 citations · 1 references
EngineeringComputer ScienceNuclear EngineeringComputational PhysicsReactor PhysicsScientific ComputingDeterministic Transport MethodsMatrix ComputationNeutron TransportNeutron Transport TheoryNumerical AnalysisNumerical Linear AlgebraAbstractionAbstraction MechanismsNeutron Transport AnalysisNeutron Transport EquationNeutron Transport ModelingNuclear Matrix ElementsSn Transport EquationSource Codes
The paper aims to implement neutron transport codes using generic programming techniques. The authors build a Generic Linear Algebra Solver System (GLASS) that separates linear‑algebra operations from the rest of the code, enabling shared, high‑level algorithms for Sn and SPn transport methods. The implementation shows that generic programming allows Sn and SPn Boltzmann solvers to share a large portion of code, improving maintainability and readability without sacrificing performance.
This paper discusses the implementation of neutron transport codes via generic programming techniques. Two different Boltzmann equation approximations have been implemented, namely the Sn and SPn methods. This implementation experiment shows that generic programming allows to improve maintainability and readability of source codes with no performance penalties compared to classical approaches. In the present implementation, matrices and vectors as well as linear algebra algorithms are treated separately from the r est of source code and gathered in a tool library called “Generic Linear Algebra Solver System” (GLASS). Such a code architecture, based on a linear algebra library, allows to separate the three dif ferent scientific fields involved in transport codes design: numerical analysis, reactor physi cs and computer science. Our library handles matrices with optional storage policies and thus applies both to Sn code, where the matrix elements are computed on the fly, and to SPn code where stored m atrices are used. Thus, using GLASS allows to share a large fraction of source code between Sn and SPn implementations. Moreover, the GLASS high level of abstraction allows to write numerical algorithms in a form which is very close to their textbook descriptions. Hence the GLASS algorithms collection, disconnected from computer science considerations (e.g. storage policy), is very easy to read, to maintain and to extend.
1