Skip to main content

drawing Centrifugal Compressor Performance

PyPI Version License CI Ruff

ccp is a python library for calculation of centrifugal compressor performance. It uses CoolProp/REFPROP for the gas properties calculations.

import ccp

# ccp uses pint to handle units. Q_ is a pint quantity.
# If a pint quantity is not provided, SI units are assumed.
Q_ = ccp.Q_
ps = Q_(3, 'bar')
Ts = 300

# Define the fluid as a dictionary:
fluid = {
    "CarbonDioxide": 0.8,
    "Nitrogen": 0.2,
}

# Define suction and discharge states:

suc0 = ccp.State(fluid=fluid, p=ps, T=Ts)
disch0 = ccp.State(fluid=fluid, p=Q_(7.255, 'bar'), T=391.1)
disch1 = ccp.State(fluid=fluid, p=Q_(6.754, 'bar'), T=382.1)

# Create performance point(s):

point0 = ccp.Point(
    suc=suc0,
    disch=disch0,
    speed=Q_(7941, 'RPM'),
    flow_m=Q_(34203.6, 'kg/hr'),
    b=0.0285,
    D=0.365,
)
point1 = ccp.Point(
    suc=suc0,
    disch=disch1,
    speed=Q_(7941, 'RPM'),
    flow_m=Q_(36204.8, 'kg/hr'),
    b=0.0285,
    D=0.365,
)

# Create an impeller with those points:

imp = ccp.Impeller([point0, point1])

# Get results from the Impeller with methods such as
imp.head_plot()
imp.disch.T_plot()

Installation

Install ccp with:

pip install ccp-performance

If you work with an AI coding agent (Claude Code, GitHub Copilot, Cursor, Codex), install the ccp agent skill so your agent knows how to build states, points and impellers and run performance analyses:

ccp-install-skill

The skill activates automatically whenever you ask your agent about centrifugal compressor performance with ccp. In Claude Code you can also invoke it explicitly:

/ccp create an impeller from these test points and convert the curves to the new suction condition

Application

ccp includes an application for performance tests (ASME PTC 10, straight-through and back-to-back), curves conversion, curves digitizing and performance evaluation of plant data. It needs Python >= 3.10. Install it with the desktop extra (app in a native window) or the web extra (app in your browser):

pip install "ccp-performance[desktop]"   # or "ccp-performance[web]"

and start it with:

ccp-app

ccp-app (or ccp-web, or python -m ccp_web where console scripts are not on the PATH) opens the app in a desktop window, or in your default browser when the window cannot open: pywebview (the desktop extra) is not installed, there is no graphical display or, on Linux, no Qt or GTK toolkit for pywebview is installed (pip install "pywebview[qt]" adds one). To always use the browser run ccp-web serve (--port 8000 picks the port, --no-browser only prints the URL). Your cases and results are kept in your user data directory (set CCP_DATA_DIR to change it).

REFPROP is optional: without it ccp uses CoolProp. The previous Streamlit app is still available with ccp-app --streamlit (needs the app extra).

Documentation

Access the documentation here.

Questions

If you have any questions, you can use the Discussions area in the repository.

Contributing to ccp

ccp is a community-driven project. If you want to contribute to the project, please check CONTRIBUTING.md.

Metadata

Release files for ccp-performance 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccp-performance 0.5.0
File Size Uploaded Provenance Actions
ccp_performance-0.5.0.tar.gz 10.2 MB Without provenance Details for ccp_performance-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ccp-performance 0.5.0
File Interpreter ABI Platform Actions
ccp_performance-0.5.0-py3-none-any.whl Python 3 none any Details for ccp_performance-0.5.0-py3-none-any.whl

Total release size: 20.5 MB

Release files / ccp_performance-0.5.0.tar.gz

Download URL ccp_performance-0.5.0.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
983fbcf645475183dc15f69a54e908438fe7613ada9b9466c6cb74ae514a57ed
BLAKE2b-256 checksum
How to use checksums
b4b1f61474ff2415bfdb6f472a908e2a438fa06e02948781383eaa56bf3c822b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ccp_performance-0.5.0-py3-none-any.whl

Download URL ccp_performance-0.5.0-py3-none-any.whl
Size 10.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
764152b9feb74c3e71e808fba005ad6c2bcfdebffff30d7601af5958bd8345a5
BLAKE2b-256 checksum
How to use checksums
f84c46d9e72ed420221f44b9c685c39b7079ad496ac2c9fda19ed3d617e2998b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ccp-performance 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page