The new software FEniCS-preCICE is a middle software layer, sitting in between the existing finite-element library FEniCS and the coupling library preCICE. The middle layer simplifies coupling (existing) FEniCS application codes to other simulation software via preCICE. To this end, FEniCS-preCICE converts between FEniCS and preCICE mesh and data structures, provides easy-to-use coupling conditions, and manages data checkpointing for implicit coupling. The new software is a library itself and follows a FEniCS-native style. Only a few lines of additional code are necessary to prepare a FEniCS application code for coupling. We illustrate the functionality of FEniCS-preCICE by two examples: a FEniCS heat conduction code coupled to OpenFOAM and a FEniCS linear elasticity code coupled to SU2. The results of both scenarios are compared with other simulation software showing good agreement.
翻译:新的软件FENICS-preCICE是一个中间软件层,位于现有的有限元素图书馆FENICS和混合图书馆PreCICE之间。中层简化了通过预先CICE与其他模拟软件的连接(现有)FENICS应用代码。为此,FENICS-preCICE转换了FENICS和预CICE网和数据结构,提供了容易使用的连接条件,并管理了隐性连接的数据检查。新软件本身是一个图书馆,采用了FENICS-native风格。只有几行其他代码才能编制FENICS的连接应用代码。我们通过两个例子说明了FECS-preCICE的功能:一种FENICS热导导码,加上OpenFOAM和FU2的FENICS线性弹性代码。两种情景的结果都与显示良好协议的其他模拟软件进行了比较。