Skip to main content

Framework to create partially automated networks made up of resistors and capacitors.

Project description

PyRC Logo


PyPI - Version PyPI - License DOI Typing

PyRC is a package used to create and simulate resistance-capacity networks.

Installation

pip install pyrc

Notes:

  • PyRC started as research software, built from scientists for scientists. It was initiated at the IGTE at the University of Stuttgart by Joel Kimmich and Tim Jourdan.
  • PyRC becomes software in research.
  • PyRC was initiated at the IGTE at the University of Stuttgart from Joel Kimmich and Tim Jourdan. Its first application was to simulate a dynamic thermal system with a constant mass flow under boundary conditions resulting from weather conditions (sun radiation and ambient temperatures) over a whole year. Parameter studies were also
    conducted as part of this work. PyRC has therefore been tested in this regard. Additional functionality was added subsequently, and its performance was tested in individual cases. Nevertheless, more extensive testing is absolutely necessary.
  • PyRC brings the simplicity of Python. Some people may miss the speed of C code but appreciate the user-friendliness of Python. Python is widely spread across the scientific community and the automation of geometric thermal problems build in PyRC makes it a great tool to easiely combine existing Python scripts with the accuracy of physics based dynamic models that can be represented in ODEs and solved efficiently by numeric algorithms.

When to use PyRC

  • When you have any thermal multidimensional dynamic problem
  • When modeling systems where time scales span nanoseconds to decades
  • When avoiding the complexity of CFD mesh generation
  • When the thermal network has an unstructured topology
  • When extending or customizing solvers directly in Python
  • When parameterizing large-scale RC-networks with up to thousands of elements are required
  • When parameterizing small-scale RC-networks with only a few elements
  • When working with time-dependent system matrices or boundary conditions
  • When creating networks to solve partial differential equations via lumped-parameter models
  • When creating geometric networks with visual aid of VPython
  • ...

Fun Facts

  • In principle, PyRC works not only for thermal problems but also for electrical ones. However, this has not yet been tested, and an Induction class modeling the behavior of an electrical coil is still missing. Contributions are welcome!
  • Even when not interested in solving the ODE you can use PyRC as tool to get the state-space system of even complex system with hundreds and thousands of capacities and resistors.

Publications

First publication:

Kimmich, J. & Jourdan, T.: "Python Package for Generating Dynamic Systems and Simulating Resistance-Capacitance Networks (PyRC)", DaRUS, 2026. https://dx.doi.org/10.18419/darus-5765

Poster presented at the 1st Stuttgart Research Software Day, 2026:

Kimmich, J. & Jourdan, T.: "PyRC", Zenodo, 2026. https://doi.org/10.5281/zenodo.18832971

Further publications are in progress.

Experiences with PyRC:

  • Network with weather data as boundary conditions and 280 radiation source terms; simulating one year with a maximum time step of 0.4 s on a single core at 3.2 GHz:
    • 3'302 capacities, 10'717 resistances
    • Pre-simulation to initialize: 2.5 hours (~7 simulated days)
    • Total simulation time: ~6.5 days
  • Smaller systems (~400 nodes) run 1'000 times faster than simulated time.
  • Largest simulated system: over 6'000 capacitors and 30'000 resistors.

Contributing

See CONTRIBUTING.rst for how to contribute to PyRC.

License

See LICENSE.txt for the license.

Funding

Funded by the Federal Ministry for Economic Affairs and Energy (Bundesministerium für Wirtschaft und Energie), Germany.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrc-0.3.1.tar.gz (152.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrc-0.3.1-py3-none-any.whl (184.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrc-0.3.1.tar.gz.

File metadata

  • Download URL: pyrc-0.3.1.tar.gz
  • Upload date:
  • Size: 152.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for pyrc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b839a7884c26791645271a914d664f8568ec0e5b2b8168e33dd1ab7bf4a286df
MD5 4ff568cb75c72881a076148f14ef70c7
BLAKE2b-256 d551475d83f4fed280460c77d13e6c9cef95277a7e5972f794a65eaf3bea35bb

See more details on using hashes here.

File details

Details for the file pyrc-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyrc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 184.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for pyrc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07f133a3785a431501de84cbcab31d2cd4f8999b659254286c21b16ddf4b1dae
MD5 3da056752e00a452ccac1f2bf299b647
BLAKE2b-256 4b540702523bbf6063047fcbbf61e0b8bc2da06eefaef9ec2040b8c6e2966f4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page