Skip to main content

CHP models implemented in tespy (for WWNW)

Project description

TESpy-based CHP

Important: This model is still unfinished and under active development! Use it with caution.

This project contains a CHP implemetation using TESpy. To install the package run

pip install tes-chp

The CHP is implemented as TESpy subsystem. A simple usage could look like:

from tes_chp import CHP
from tespy.networks import Network

net = Network(fluids=["H2O", "CH4", "H2", "O2", "CO2", "Ar", "N2"], p_unit='bar', T_unit='C', iterinfo=False)
chp = CHP("CHP")
net.add_subsys(chp)

chp.set_attr(P=-1e6)

mode= "design"
net.solve(mode=mode, design_path=".")
net.save("tmp")
net.print_results()

chp.set_attr(P=-5e5)

mode= "offdesign"
net.solve(mode=mode, design_path="tmp")
net.print_results()

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

tes_chp-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

tes_chp-0.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file tes_chp-0.2.0.tar.gz.

File metadata

  • Download URL: tes_chp-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tes_chp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d568fe57b312d7539d1f4c5d8a58f742284a47bc4e8891b286351099d99bcf35
MD5 2a9e8734c42fdaf3cf263abad63fb5b2
BLAKE2b-256 58557e15ca8e97ff4f2c15c7b099aa6ad0d6ece3fe034f49a73be1b0e50dc7a8

See more details on using hashes here.

File details

Details for the file tes_chp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tes_chp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tes_chp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0be8d48ee3dcccb9bc028033e7011d6ea9ea44b2fd4a6ff886aa7089ed62f781
MD5 64767c10fe17d140732e7d1352c1d23f
BLAKE2b-256 1002a44f09d09505fbcd86cb34a1c4a00aa04d424b498e95e2534651fa8805f0

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