Centrifugal Compressor Performance
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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ccp_performance-0.5.2.tar.gz | 10.2 MB | Without provenance | Details for ccp_performance-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccp_performance-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for ccp_performance-0.5.2-py3-none-any.whl |
Total release size: 20.6 MB
Release files / ccp_performance-0.5.2.tar.gz
| Download URL | ccp_performance-0.5.2.tar.gz |
|---|---|
| Size | 10.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea1d08cc688f96fe83c0138c6a09bed1e56d04329520ae653742801d46b1f24c
|
|
BLAKE2b-256 checksum How to use checksums |
8870ab5ec87013e92b6e73b3f043cb35d8ce90adb159817195b1d378a9c71ef6
|
| 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.2-py3-none-any.whl
| Download URL | ccp_performance-0.5.2-py3-none-any.whl |
|---|---|
| Size | 10.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86c1cd8d77fd69c1bb86fa1fbe32d02f60c5d39e92d1a6e7bed7b5dbeb371ca0
|
|
BLAKE2b-256 checksum How to use checksums |
3ab433a2fdbd5d6df4dbe91804a921d83be66383ff52940ba9fa74c1c1834b13
|
| 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.2
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.