Network models facilitate inexpensive simulations, but require careful handling of bifurcation conditions. We here present the graphnics library, which combines FEniCS with NetworkX to facilitate network simulations using the finite element method. Graphnics features (i) a FenicsGraph class built on top of the NetworkX DiGraph class, that constructs a global mesh for a network and provides FEniCS mesh functions describing how they relate to the graph structure. (ii) Example models showing how the FenicsGraph class can be used to assemble and solve different network flow models. (iii) Demos showing e.g. how to run simulations on complex biological networks. Interestingly, the results show that vasomotion modelled as a travelling sinusoidal wave is capable of driving net perivascular fluid flow through an arterial tree, as has been proposed based on experimental data.
翻译:网络模型有助于低成本的模拟,但需要谨慎地处理两面性条件。 我们在此展示图形库, 该库将FENICS与网络X结合起来, 以便利使用有限元素方法进行网络模拟。 图形特征 (i) 在网络X DiGraph 类之上建起的Fenics Graph 类,为网络建造了一个全球网格, 并提供FENICS网目功能, 描述它们与图形结构的关系。 (ii) 示例模型, 显示如何使用Fenis Graph 类来组装和解决不同的网络流程模型。 (iii) 演示演示显示如何在复杂的生物网络上进行模拟。 有趣的是, 结果表明, 模拟作为流动的正统波模型的血管动能驱动通过动脉图树流。 这是根据实验数据提出的。