thermo-process-properties
Skill7 starsChanged 6 months agoApache-2.0View on GitHub
Run Caleb Bell library-backed process property calculations: PR / Translated-PR cubic EOS for LPG and light hydrocarbon mixtures, COSTALD mixture liquid density (saturated and compressed), IAPWS water/steam state, and a transparent property-method recommendation heuristic modeled on DWSIM / Aspen / HYSYS / PRO/II guidance. Use when you need a defensible property method or density for a process calculation. Don't use for full multi-component flash (use vle-flash-calculations), for the EOS decision tree by itself (use equation-of-state-selection), or for steam-only systems (use steam-tables-iapws).
In this repository31 other files it gives its agents.
- absorption-stripping-designSkill
- bayesian-hierarchical-process-modelsSkill
- caustic-merox-extractionSkill
- censored-regressionSkill
- compositional-data-analysisSkill
- control-valve-sizing-isa75Skill
- convective-heat-transfer-correlationsSkill
- design-of-experimentsSkill
- dimensionless-numbersSkill
- distillation-shortcut-designSkill
- distributed-lag-modelsSkill
- engg-skills-commonSkill
- engineering-skill-creatorSkill
- engineering-statisticsSkill
- equation-of-state-selectionSkill
- heat-exchanger-sizingSkill
- literature-search-engineeringSkill
- material-energy-balancesSkill
- pipe-flow-pressure-dropSkill
- process-causal-inference-dagsSkill
- process-units-conversionSkill
- reactor-sizing-and-kineticsSkill
- relief-valve-sizing-api520Skill
- separator-vessel-sizingSkill
- sour-gas-amine-treatingSkill
- statistical-process-controlSkill
- steam-tables-iapwsSkill
- time-series-process-data-analysisSkill
- two-phase-flowSkill
- uvSkill
- vle-flash-calculationsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Run recommend for a property-method check.
- Very specific: line 98
If thermo / chemicals import fails for an exotic component, fall back to built-in LPG defaults via engg_skills_common.property_backends.
- Very specific: line 105
Run the listed script with representative inputs and an --output file when a deterministic calculation is available.
- Distinctive: line 107
Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Thermodynamic Property Calculations
Overview
Caleb Bell library wrapper utilities. Implements:
recommend: property-method recommendation given components and application context.costald-density: COSTALD (saturated) or COSTALD_compressed mixture liquid density for light hydrocarbons.pr-translated-eos: instantiatethermo.eos_mix.PRMIXTranslatedPPJPwith reported molar volumes, Z-factors, and departure functions.iapws-state/iapws-saturation: pure water / steam properties.
Heuristics for method selection are transparent and built from public sources (DWSIM, Carlson, AVEVA / Aspen training material). No proprietary defaults are reproduced.
Prerequisites
uvavailable.- On first use, the script writes
LICENSE_NOTIFICATION.txtlisting the upstream library terms.
When to Use
- Picking a property method for a flowsheet zone.
- Estimating LPG liquid density at storage / vessel conditions (COSTALD).
- Getting a Translated-PR liquid molar volume for an LPG mixture.
- Pure-water / steam state at known T, P.
Don't use for
- Multi-component flash (
vle-flash-calculations). - EOS decision tree by itself (
equation-of-state-selection). - Steam-table-only calculations (
steam-tables-iapws). - Non-LPG hydrocarbon systems where COSTALD is outside its accuracy envelope.
Utility Scripts
uv run scripts/property_methods.py recommend --components propane,n-butane,isobutane --application LPG --pressure-pa 1200000 --output /tmp/method.jsonuv run scripts/property_methods.py costald-density --components propane,n-butane --zs 0.5,0.5 --temperature-k 300 --pressure-pa 1000000 --output /tmp/lpg_density.jsonuv run scripts/property_methods.py iapws-state --temperature-k 373.15 --pressure-pa 101325 --output /tmp/steam.jsonuv run scripts/property_methods.py pr-translated-eos --components propane,n-butane --zs 0.5,0.5 --temperature-k 300 --pressure-pa 1000000 --output /tmp/pr.json
Procedure
- Identify components and the operating envelope (T, P, composition).
- Run
recommendfor a property-method check. - For LPG liquid density at vessel conditions, prefer COSTALD compressed.
- For pure water/steam, prefer IAPWS.
- For full flash, hand off to
vle-flash-calculationswith the selected EOS.
Pitfalls
- Using PR (default) for LPG liquid density at moderate pressure; PR underpredicts liquid density by 5-15%. Use Translated-PR or COSTALD.
- Using COSTALD for a non-light-hydrocarbon (water, alcohol, amine); COSTALD is accurate only for nonpolar light hydrocarbons.
- Using IAPWS for water-in-hydrocarbon systems; IAPWS is pure water only.
- Passing the kij matrix as zeros for a sour LPG mixture; H2S / mercaptan / amine interactions need real kij.
- Confusing mass density (kg/m³) with molar volume (m³/mol).
- Treating the PRMIXTranslatedPPJP molar volume as exact without
providing the per-component translation constants
cs. - Using
recommendoutput as a final decision without doing the second-opinion flash recommended by the decision-tree. - Treating water-content trace as negligible without checking with a hydrate / glycol skill.
Fallback Strategies
- If
thermo/chemicalsimport fails for an exotic component, fall back to built-in LPG defaults viaengg_skills_common.property_backends. - For density that is wildly off, switch from COSTALD to PRMIXTranslatedPPJP (or vice versa) and report both.
Verification
- Run the listed script with representative inputs and an
--outputfile when a deterministic calculation is available. - Confirm the JSON result contains
ok: true, expected units, and no unhandled warnings. - Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.
References
references/property_method_selection.md— full method matrix.references/caleb_bell_libraries.md— library overview and links.thermodocs: https://thermo.readthedocs.io/chemicalsdocs: https://chemicals.readthedocs.io/- DWSIM property package selection wiki.
Anti-Patterns
- Reporting properties without naming the EOS or correlation.
- Using cubic EOS for steam.
- Reporting LPG liquid density without naming whether COSTALD or PR was used.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

