Graphnics: Combining FEniCS and NetworkX to simulate flow in complex networks

by   Ingeborg G. Gjerde, et al.

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.


page 1

page 2

page 3

page 4


Simulation of thin film flows with a moving mesh mixed finite element method

We present an efficient mixed finite element method to solve the fourth-...

Parameter-Conditioned Sequential Generative Modeling of Fluid Flows

The computational cost associated with simulating fluid flows can make i...

MAgNET: A Graph U-Net Architecture for Mesh-Based Simulations

In many cutting-edge applications, high-fidelity computational models pr...

Permanent charge effects on ionic flow: a numerical study of flux ratios and their bifurcation

Ionic flow carries electrical signals for cells to communicate with each...

Please sign up or login with your details

Forgot password? Click here to reset