Abstract
MCNP has been widely used worldwide and has become an indispensable code to help solve challenging problems in many areas such as nuclear reactor analysis, medical physics, and criticality safety evaluation. MCNP provides a unique and rich syntax that allows users to model radiation transport problems with its capable geometry descriptors, flexible source definition, arbitrary material and nuclear data selection, and special tally (computation) options. MCNP's modeling flexibility comes from a myriad of cards, keywords, and operators which can be combined to describe geometry, set up physical conditions, or define quantities of interest (tallies). However, such a huge amount of syntax definitions presents challenges to MCNP beginners, or even intermediate-level users, to use them skillfully and correctly for problem definition and solution. Therefore, we have developed a syntactic validation capability for the use of MCNP. Such a capability can assist users to identify any syntax errors on-the-fly while preparing MCNP input files. It can also provide content assist, reference finding, and syntax highlighting functions for an accelerated user experience where error occurrence is proactively mitigated prior to input execution. This capability was implemented by developing a language server which can work with any Language Server Protocol-compatible text editor for MCNP input file development. In this paper, we describe the method development behind the language server and clarify how the syntactic validation works.
Original language | English |
---|---|
Title of host publication | Proceedings of the International Conference on Mathematics and Computational Methods Applied to Nuclear Science and Engineering, M and C 2021 |
Publisher | American Nuclear Society |
Pages | 748-757 |
Number of pages | 10 |
ISBN (Electronic) | 9781713886310 |
DOIs | |
State | Published - 2021 |
Event | 2021 International Conference on Mathematics and Computational Methods Applied to Nuclear Science and Engineering, M and C 2021 - Virtual, Online Duration: Oct 3 2021 → Oct 7 2021 |
Publication series
Name | Proceedings of the International Conference on Mathematics and Computational Methods Applied to Nuclear Science and Engineering, M and C 2021 |
---|
Conference
Conference | 2021 International Conference on Mathematics and Computational Methods Applied to Nuclear Science and Engineering, M and C 2021 |
---|---|
City | Virtual, Online |
Period | 10/3/21 → 10/7/21 |
Funding
This material is based upon work supported by the Department of Energy Office of Nuclear Energy under Award Number DE-NE0008707. This research was performed under appointment of the third author to the Rickover Fellowship Program in Nuclear Engineering sponsored by the Naval Reactors Division of the National Nuclear Security Administration.
Keywords
- API
- Editor Services
- Language Server
- MCNP
- NEAMS Workbench