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

Ingeborg G. Gjerde
12/6/2022
math.NA

Official code: IngeborgGjerde/graphnics (9 stars, Python, GPL-3.0, last commit 2025-03-26).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Data structures and models for solving flow equations on networks

91Python, DockerfileOct 19, 20221 years agoGPL-3.0
fenicsgraphsnetworksnetworkx

Similar Papers

Cite this paper

@article{gjerde2022graphnics,
  title  = {Graphnics: Combining FEniCS and NetworkX to simulate flow in complex networks},
  author = {Ingeborg G. Gjerde},
  year   = {2022},
  eprint = {2212.02916},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.02916}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.02916.svg)](https://codeofpaper.com/paper/2212.02916)

Discussion