This paper discusses the design and implementation of a Python-based toolset to aid in assessing the response of the UK's Advanced Gas Reactor nuclear power stations to earthquakes. The seismic analyses themselves are carried out with a commercial Finite Element solver, but understanding the raw model output this produces requires customised post-processing and visualisation tools. Extending the existing tools had become increasingly difficult and a decision was made to develop a new, Python-based toolset. This comprises of a post-processing framework (aftershock) which includes an embedded Python interpreter, and a plotting package (afterplot) based on numpy and matplotlib. The new toolset had to be significantly more flexible and easier to maintain than the existing code-base, while allowing the majority of development to be carried out by engineers with little training in software development. The resulting architecture will be described with a focus on exploring how the design drivers were met and the successes and challenges arising from the choices made.
翻译:本文讨论了基于Python的基于Python的工具的设计和执行,以帮助评估英国先进气体反应堆核电站对地震的反应。地震分析本身是用商业的有限元素解答器进行的,但了解这种生产的原始模型输出需要定制的后处理和可视化工具。扩展现有工具已变得越来越困难,决定开发一个新的基于Python的工具。这包括一个后处理框架(余震),其中包括一个嵌入的Python解释器,以及一个基于纽金和马特普洛利布的绘图包(草坪 ) 。新工具必须比现有的代码库更加灵活和容易维护,同时允许大多数开发工作由在软件开发方面培训很少的工程师进行。将重点描述由此产生的结构,以探索如何满足设计驱动器,以及从所作选择中产生的成功和挑战。