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.1

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.1
File Size Uploaded Provenance Actions
ccp_performance-0.5.1.tar.gz 10.2 MB Without provenance Details for ccp_performance-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 20.6 MB

Release files / ccp_performance-0.5.1.tar.gz

Download URL ccp_performance-0.5.1.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a87b9c98edf80c92dc8133b27df72f4f75b42d4b11f92cfe68911799f5bf8128
BLAKE2b-256 checksum
How to use checksums
57c3b88359d90f0a4fe1973ebc1ea6f638890b5f9909eed99e4bc96c197cceea
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.1-py3-none-any.whl

Download URL ccp_performance-0.5.1-py3-none-any.whl
Size 10.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bddacc2ca78e146c54a9f43e3afd01778d04b8894659b57c0a5c0fadabe0cfaa
BLAKE2b-256 checksum
How to use checksums
8d9ac7b172a78ba25c36a2a0a0302aaff27a566054f051b3082c3f6871cf0f41
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.1

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.1 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