Skip to main content
QUICK REVIEW

[Paper Review] Computer-aided modelling of complex physical systems with BondGraphTools

Peter Cudmore, P.J. Gawthrop|arXiv (Cornell University)|Jun 26, 2019
ATP Synthase and ATPases ResearchBiochemistry, Genetics and Molecular Biology15 references6 citations
TL;DR

BondGraphTools is an open-source Python library that enables symbolic, scriptable modeling of complex multi-physics systems using bond graph methodology, integrating seamlessly with the scientific Python ecosystem. It accelerates systems modeling through automation, reproducibility, and support for cross-domain applications—particularly in systems biology and engineering—by providing a standardized, energy-conserving interface for model composition and symbolic manipulation.

ABSTRACT

BondGraphTools is a Python library for scripted modelling of complex multi-physics systems. In contrast to existing modelling solutions, BondGraphTools is based upon the well established bond graph methodology, provides a programming interface for symbolic model composition, and is intended to be used in conjunction with the existing scientific Python toolchain. Here we discuss the design, implementation and use of BondGraphTools, demonstrate how it can be used to accelerate systems modelling with an example from optomechanics, and comment on current and future applications in cross-domain modelling, particularly in systems biology.

Motivation & Objective

  • To address the lack of extensible, automated, and interoperable tools for modeling complex physical systems across multiple domains.
  • To provide a symbolic, programmatic alternative to proprietary graphical modeling tools that are rigid and isolated.
  • To support sustainable, collaborative systems modeling through open-source development, version control, and integration with existing scientific Python workflows.
  • To enable automated model building, simplification, and analysis for systems with multiple time scales and nonlinear dynamics.
  • To foster reproducibility and long-term software sustainability through test-driven development, continuous integration, and containerized deployment.

Proposed method

  • Uses bond graph methodology as a formal framework for modeling energy flow between physical subsystems via effort and flow variables, ensuring energy conservation.
  • Provides a Python-based API for constructing, composing, and manipulating symbolic bond graph models using standard scientific Python libraries (e.g., SymPy, NumPy).
  • Employs symbolic computation to represent and transform system equations, enabling automated derivation of state-space models and simplification.
  • Integrates with Julia for numerical simulation via PyJulia, enabling high-performance solving of derived differential-algebraic equations.
  • Applies test-driven development (TDD) and continuous integration (Travis CI, CodeClimate) to ensure code quality, stability, and backward compatibility.
  • Supports reproducibility through versioned releases, Git tags, and Vagrant containers that encapsulate the full software stack and dependencies.

Experimental results

Research questions

  • RQ1How can bond graph modeling be automated and integrated into scientific Python workflows to improve model development efficiency?
  • RQ2What are the key software engineering practices that ensure long-term sustainability and reproducibility of scientific modeling tools?
  • RQ3Can symbolic model composition and simplification be effectively implemented in an open-source, scriptable library for complex physical systems?
  • RQ4How does the integration of bond graphs with modern computational stacks (e.g., Python, Julia) enhance cross-domain modeling in systems biology and engineering?
  • RQ5What are the limitations of existing graphical modeling tools that a programmatic, open-source alternative can overcome?

Key findings

  • BondGraphTools enables automated, scriptable construction of symbolic models of complex physical systems using a standardized, energy-conserving framework.
  • The library achieves ~80% test coverage through test-driven development, ensuring code quality and stability during active, iterative development.
  • Integration with Julia via PyJulia allows high-performance numerical simulation of derived models, enhancing computational efficiency.
  • The use of Vagrant containers and versioned releases ensures long-term reproducibility of models and software environments.
  • The library supports scalable symbolic model order reduction, with potential for future development of exact and approximate reduction algorithms for nonlinear systems.
  • The open-source, community-driven development model with public source code (GitHub) and documentation (Read the Docs) enhances accessibility and collaboration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.