Skip to main content

Erweiterung für pandapipes zur einfachen Modellierung von VDI3803-Mouldings und Raumstrukturen.

Project description

pandapipes_extended – Anleitung und Beispiel

Dieses Repository erweitert pandapipes um komfortable Funktionen für die Modellierung von Formstücken (Mouldings) nach VDI 3803 und deren einfache Zuordnung zu Räumen.

Installation

  1. Repository klonen
git clone <REPO-URL>
cd pandapipes-vdi3803-extension
  1. Virtuelle Umgebung anlegen und aktivieren

Windows (CMD):

python -m venv venv
venv\Scripts\activate.bat

Windows (PowerShell):

python -m venv venv
.\venv\Scripts\Activate.ps1

macOS / Linux (Bash):

python3 -m venv venv
source venv/bin/activate
  1. Abhängigkeiten installieren
pip install -e .`

Nutzung

Beispiel: Anwendung im eigenen Python-Skript

import pandapipes as pp
from pandapipes_extended import Room, Moulding

# Netz und Knoten anlegen
net = pp.create_empty_network(fluid="air")
junction0 = pp.create_junction(net, pn_bar=1.05, tfluid_k=293.15, type="p", name="Junction 0")
junction1 = pp.create_junction(net, pn_bar=1.0, tfluid_k=293.15, name="Junction 1")
# ...weitere Junctions...

# Rohre anlegen
pipe0 = pp.create_pipe_from_parameters(net, from_junction=junction0, to_junction=junction1, length_km=0.002, diameter_m=0.2022, name="Pipe 0")
# ...weitere Pipes...

# Quelle und Sinks
pp.create_ext_grid(net, junction=junction0, p_bar=1.05, t_k=293.15)
sink0 = pp.create_sink(net, junction=junction1, mdot_kg_per_s=0.0855, name="Sink 0", loss_coefficient=1.2)

# Netz berechnen
pp.pipeflow(net)

# Moulding anlegen und VDI-Berechnung durchführen
moulding = Moulding(net, pipe_idx=pipe0, name="Main-T-Stueck 1")
moulding.A22_T_Stueck_Stromtrennung_rechtwinkligem_Abgang_Abzweig_wA(0)
moulding.create()

# Raum anlegen und Moulding zuordnen
room = Room(net, name="Room 0", sink=sink0)
room.add_moulding(moulding)

# Zeta-Werte ausgeben
print("Room0 Total_Lost_Coefficient:", room.calculate_total_loss_coefficient())

Weitere Beispiele

Siehe den Ordner examples/ für komplexere Anwendungsfälle, z.B. Netzbeispiel1.0.py.

Features

  • Komfortable Erstellung und Verwaltung von Mouldings nach VDI 3803
  • Automatische Berechnung der Verlustbeiwerte (loss_coefficient)
  • Einfache Zuordnung von Mouldings zu Räumen (Room)
  • Summierung der Zeta-Werte pro Raum

Hinweise

  • Das Paket pandapipes_extended muss im Python-Importpfad liegen (Standard nach Installation mit pip install -e .).
  • Die VDI-Berechnungen sind als Methoden in der Klasse Moulding implementiert.
  • Für eigene Erweiterungen siehe die Dateien im Ordner pandapipes_extended/.

Tipp: Für eigene VDI-Berechnungen siehe die Methoden in pandapipes_extended/moulding_class.py und passe sie nach Bedarf an.

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

pandapipes_extended-1.0.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

pandapipes_extended-1.0.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pandapipes_extended-1.0.0.tar.gz.

File metadata

  • Download URL: pandapipes_extended-1.0.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for pandapipes_extended-1.0.0.tar.gz
Algorithm Hash digest
SHA256 24c06ecab4d31689bd6e1ac55e1641368b9528d744fb9c111af5761df009fef9
MD5 2862a2202a8ad7d55650bd0609f67cd0
BLAKE2b-256 bc2eb5116405f16f47cdb6f1ed7007c3707e1974cc8fb773047708ebda7ccc23

See more details on using hashes here.

File details

Details for the file pandapipes_extended-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pandapipes_extended-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26dd2a710c82a3d38c5761bf7ffe8e0a6ecbf14eeb6ff71c9000d691d06b0ce3
MD5 ade7a1a3fd700c390cc36e48bc67eceb
BLAKE2b-256 842d31fc1687f1d2691bebac5fdb923ffd1fd96bc1cd3a9f7c59edf474910286

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