OpenPyTEA 2.1.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. openpytea-3.1.0/PKG-INFO +456 -0
  2. openpytea-3.1.0/README.md +432 -0
  3. {openpytea-2.1.0 → openpytea-3.1.0}/pyproject.toml +5 -2
  4. openpytea-3.1.0/src/OpenPyTEA.egg-info/PKG-INFO +456 -0
  5. {openpytea-2.1.0 → openpytea-3.1.0}/src/OpenPyTEA.egg-info/SOURCES.txt +4 -0
  6. openpytea-3.1.0/src/OpenPyTEA.egg-info/entry_points.txt +2 -0
  7. {openpytea-2.1.0 → openpytea-3.1.0}/src/OpenPyTEA.egg-info/requires.txt +1 -1
  8. openpytea-3.1.0/src/openpytea/__init__.py +55 -0
  9. openpytea-3.1.0/src/openpytea/analysis.py +1828 -0
  10. openpytea-3.1.0/src/openpytea/cli.py +163 -0
  11. openpytea-3.1.0/src/openpytea/data/cost_correlations.csv +421 -0
  12. openpytea-3.1.0/src/openpytea/equipment.py +1138 -0
  13. openpytea-3.1.0/src/openpytea/helpers.py +1063 -0
  14. {openpytea-2.1.0 → openpytea-3.1.0}/src/openpytea/io.py +251 -149
  15. {openpytea-2.1.0 → openpytea-3.1.0}/src/openpytea/plant.py +1081 -992
  16. openpytea-3.1.0/src/openpytea/plotting.py +1170 -0
  17. openpytea-3.1.0/tests/test_analysis.py +759 -0
  18. openpytea-3.1.0/tests/test_cli.py +111 -0
  19. openpytea-3.1.0/tests/test_composite_equipment.py +220 -0
  20. openpytea-3.1.0/tests/test_equipment.py +101 -0
  21. openpytea-3.1.0/tests/test_plant.py +563 -0
  22. openpytea-3.1.0/tests/test_plotting.py +189 -0
  23. openpytea-3.1.0/tests/test_run_tea.py +288 -0
  24. {openpytea-2.1.0 → openpytea-3.1.0}/tests/test_smoke.py +6 -3
  25. openpytea-2.1.0/PKG-INFO +0 -375
  26. openpytea-2.1.0/README.md +0 -351
  27. openpytea-2.1.0/src/OpenPyTEA.egg-info/PKG-INFO +0 -375
  28. openpytea-2.1.0/src/openpytea/__init__.py +0 -36
  29. openpytea-2.1.0/src/openpytea/analysis.py +0 -910
  30. openpytea-2.1.0/src/openpytea/data/cost_correlations.csv +0 -166
  31. openpytea-2.1.0/src/openpytea/equipment.py +0 -556
  32. openpytea-2.1.0/src/openpytea/helpers.py +0 -753
  33. openpytea-2.1.0/src/openpytea/plotting.py +0 -834
  34. openpytea-2.1.0/tests/test_analysis.py +0 -113
  35. openpytea-2.1.0/tests/test_equipment.py +0 -29
  36. openpytea-2.1.0/tests/test_plant.py +0 -119
  37. openpytea-2.1.0/tests/test_plotting.py +0 -47
  38. openpytea-2.1.0/tests/test_run_tea.py +0 -148
  39. {openpytea-2.1.0 → openpytea-3.1.0}/LICENSE +0 -0
  40. {openpytea-2.1.0 → openpytea-3.1.0}/setup.cfg +0 -0
  41. {openpytea-2.1.0 → openpytea-3.1.0}/src/OpenPyTEA.egg-info/dependency_links.txt +0 -0
  42. {openpytea-2.1.0 → openpytea-3.1.0}/src/OpenPyTEA.egg-info/top_level.txt +0 -0
  43. {openpytea-2.1.0 → openpytea-3.1.0}/src/openpytea/data/cepci_values.csv +0 -0
@@ -0,0 +1,456 @@
1
+ Metadata-Version: 2.4
2
+ Name: OpenPyTEA
3
+ Version: 3.1.0
4
+ Summary: OpenPyTEA: An open-source Python toolkit for techno-economic assessment of process plants with economic sensitivity and uncertainty evaluation
5
+ Maintainer-email: "Panji B. Tamarona" <P.B.Tamarona@tudelft.nl>
6
+ License-Expression: MIT
7
+ Keywords: chemical-engineering,process-design,power-plant,techno-economic-analysis,process-plant
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: matplotlib>=3.8
12
+ Requires-Dist: numpy>=1.24
13
+ Requires-Dist: pandas>=1.5
14
+ Requires-Dist: scienceplots>=2.2.0
15
+ Requires-Dist: scipy>=1.10
16
+ Requires-Dist: tqdm>=4.64
17
+ Requires-Dist: jinja2>=3.1
18
+ Provides-Extra: test
19
+ Requires-Dist: pytest>=8.0; extra == "test"
20
+ Provides-Extra: ipython
21
+ Requires-Dist: ipython>=8.0; extra == "ipython"
22
+ Requires-Dist: ipywidgets>=8.0; extra == "ipython"
23
+ Dynamic: license-file
24
+
25
+ <p align="center">
26
+ <img src="https://raw.githubusercontent.com/pbtamarona/OpenPyTEA/main/docs/logo-white.png" alt="OpenPyTEA" width="400"/>
27
+ </p>
28
+
29
+ **OpenPyTEA** is an open-source Python toolkit for performing **techno-economic assessment (TEA)** of chemical and energy systems. It was created to address a persistent gap in the TEA workflow: while process simulators model mass and energy balances, researchers often lack an equally transparent and flexible way to evaluate the **economic feasibility** of their designs. Commercial tools remain *black-box tools*, and many academic TEA implementations are process-specific, undocumented, or difficult to reproduce.
30
+
31
+ **OpenPyTEA** provides a fully open, modular, and traceable framework that brings TEA into the Python ecosystem. By integrating **equipment cost estimation**, **capital and operating expenditure modeling**, **cash-flow analysis**, **cost breakdowns**, **sensitivity evaluation**, and **Monte Carlo uncertainty propagation**, the toolkit enables users to perform end-to-end TEA with clarity and reproducibility.
32
+
33
+ Beyond its functionality, **OpenPyTEA is designed as a community-driven TEA platform**. Users can contribute new equipment cost correlations, improve economic models, report issues, and expand the toolkit’s capabilities over time. This collaborative approach helps build a shared, transparent, and continually improving TEA resource—similar to the open-source progress seen in the LCA community.
34
+
35
+ Whether used for early-stage process design, technology screening, or teaching, **OpenPyTEA** makes TEA more accessible, consistent, and aligned with FAIR research principles (Findable, Accessible, Interoperable, and Reusable).
36
+
37
+ **For a full walkthrough of the features and usage of OpenPyTEA, refer to the notebooks in the `walkthrough` folder** (five parts, from equipment costing to Monte Carlo analysis):
38
+ https://github.com/pbtamarona/OpenPyTEA/tree/main/walkthrough
39
+
40
+ **For the full documentation of the package, visit the ReadTheDocs page:**
41
+ https://openpytea.readthedocs.io
42
+
43
+ **For some case-study examples, please check the `examples` folder:**
44
+ https://github.com/pbtamarona/OpenPyTEA/tree/main/examples
45
+
46
+ ---
47
+ ## 🎓 Workshop
48
+
49
+ We are hosting a one-day workshop on open-science techno-economic assessment using **OpenPyTEA**!
50
+
51
+ <p align="center">
52
+ <img src="https://raw.githubusercontent.com/pbtamarona/OpenPyTEA/main/workshop-flyer.jpg" alt="OpenPyTEA" width="800"/>
53
+ </p>
54
+
55
+ **Open-Science Techno-Economic Assessment with OpenPyTEA: From Process Design to Economic Insights**
56
+
57
+ The workshop covers the full workflow from process design and simulation to economic evaluation, combining lectures, a hands-on session with OpenPyTEA, and an industry talk by Shell. It closes with a community discussion on establishing shared TEA standards, bringing together students, researchers, engineers, and policymakers across chemical, energy, and sustainability sciences.
58
+
59
+ - 📅 **Date:** November 6, 2026 | 09:30 – 18:00
60
+ - 📍 **Location:** Process & Energy, TU Delft, Delft, The Netherlands
61
+ - 📝 **Registration:** [aanmelder.nl/openpytea2026](https://aanmelder.nl/openpytea2026)
62
+ - ⏰ **Deadline:** $${\color{red}\textbf{Registration closes on October 15, 2026}}$$
63
+
64
+ Lunch, snacks, coffee, and drinks will be provided!
65
+
66
+ ---
67
+ ## ✨ Key Features
68
+ - **Modular architecture:** clean separation of cost correlations, equipment objects, plant economics, and uncertainty analysis.
69
+ - **Transparent and reproducible:** all algorithms, equations, and assumptions are openly available for full traceability.
70
+ - **Cost breakdown visualization:** built-in functions to plot stacked bar charts of equipment costs, fixed capital, operating costs, and levelized cost of production (LCOP).
71
+ - **Cash flow diagrams:** visualize a project's cumulative cash flow over time, including its maximum investment and pay-back point, with support for overlaying multiple plants.
72
+ - **Built-in uncertainty tools:** automatic generation of sensitivity plots and Monte Carlo simulations, covering process quantities (consumption and production rates) as well as prices and financial assumptions.
73
+ - **Parameter dependencies:** declare how quantities depend on one another — cooling water scaling with production, a byproduct's yield tracking the main product, capital cost scaling with capacity — and every analysis honours the same graph.
74
+ - **Workflow using JSON configuration files:** standardized input/output structure via `io.py` for reproducible analyses and multi-scenario evaluation.
75
+ - **Flexible analysis and visualization:** separation of data processing (`analysis.py`) and plotting (`plotting.py`) allows users to apply custom visualization tools.
76
+ - **Interoperable and extensible:** easy integration with process simulators, optimization frameworks, and LCA tools.
77
+ - **Education-friendly:** ideal for teaching TEA and process design without reliance on proprietary software.
78
+ - **Community-driven:** users can contribute new correlations, improve models, request features, and shape the evolution of the platform.
79
+
80
+ ---
81
+ ## 📦 Installation
82
+
83
+ ### 1. **Install from PyPI (recommended)**
84
+
85
+ ```bash
86
+ pip install openpytea
87
+ ```
88
+
89
+ If you work in Jupyter notebooks or want to run the walkthrough and example notebooks, we recommend installing with the `ipython` extra:
90
+
91
+ ```bash
92
+ pip install "openpytea[ipython]"
93
+ ```
94
+
95
+ The difference:
96
+
97
+ - `pip install openpytea` installs the core package. This is enough for Python scripts and the command-line interface.
98
+ - `pip install "openpytea[ipython]"` also installs `ipython` and `ipywidgets`, which OpenPyTEA uses to show a live progress bar in notebooks during Monte Carlo runs. Without them, the progress bar falls back to plain text and Jupyter shows a warning. Jupyter itself is not included; install it separately if needed (e.g. `pip install jupyter`).
99
+
100
+ ### 2. **Install from GitHub (development version)**
101
+
102
+ ```bash
103
+ pip install git+https://github.com/pbtamarona/OpenPyTEA
104
+ ```
105
+
106
+ or, with the `ipython` extra for notebooks:
107
+
108
+ ```bash
109
+ pip install "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA"
110
+ ```
111
+
112
+ or with `uv`:
113
+
114
+ ```bash
115
+ uv add git+https://github.com/pbtamarona/OpenPyTEA
116
+ uv add "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA" # with notebook extras
117
+ ```
118
+
119
+ **OpenPyTEA** requires **Python ≥ 3.10**.
120
+ The main dependencies include:
121
+
122
+ - `matplotlib`
123
+ - `numpy`
124
+ - `pandas`
125
+ - `scienceplots`
126
+ - `scipy`
127
+ - `tqdm`
128
+ - `jinja2`
129
+
130
+ ---
131
+ ## ⚙️ Package (Repository) Structure
132
+ ```
133
+ src/openpytea/
134
+ ├── equipment.py # Equipment-level costing and inflation correction
135
+ ├── plant.py # Plant-level TEA: CAPEX, OPEX, cash flows, financial metrics
136
+ ├── analysis.py # Sensitivity and uncertainty analysis (sensitivity plots, Monte Carlo)
137
+ ├── plotting.py # Visualization functions (plots and figures)
138
+ ├── io.py # JSON-based workflow: load inputs and export results
139
+ ├── helpers.py # Helper functions for data handling and common operations
140
+ └── data/ # Cost correlations database and CEPCI data
141
+ examples/ # Example notebooks and case studies
142
+ walkthrough/ # Walkthrough of the package, split into five notebooks (part_1 ... part_5)
143
+ pyproject.toml
144
+ README.md
145
+ ```
146
+
147
+ ---
148
+ ## 🏗️ Software Architecture
149
+
150
+ ![OpenPyTEA Architecture](https://raw.githubusercontent.com/pbtamarona/OpenPyTEA/main/examples/img/architecture.png)
151
+
152
+ Software architecture and data flow of **OpenPyTEA**, illustrating the progression from user input to TEA output. Users provide economic assumptions, process simulation results, and equipment-sizing parameters. Equipment-sizing information is linked with cost correlations and CEPCI values stored in CSV databases to calculate inflation-adjusted purchased and direct costs. `Equipment` objects are aggregated into a `Plant` object, where CAPEX, OPEX, and financial performance metrics are evaluated. The `analysis.py` module subsequently operates on `Plant` objects to perform sensitivity and uncertainty analyses.
153
+
154
+ ---
155
+ ## 🖥️ Graphical User Interface
156
+
157
+ > **Note:** The GUI is still in development and may not yet offer all the features of the Python package.
158
+
159
+ An optional graphical interface provides the full TEA workflow — equipment costing, plant configuration, results, sensitivity/tornado analysis, Monte Carlo, and multi-plant comparison — without writing Python code. It can be installed as a standalone desktop app — installers for **Windows** (`.exe`/`.msi`) and **macOS** (`.dmg`) are available on the [Releases page](https://github.com/pbtamarona/OpenPyTEA/releases), with no Python or Node.js required — or run from source as a FastAPI + React application.
160
+
161
+ The GUI's source, installer build, setup instructions, and architecture documentation live on the [`standalone-package`](https://github.com/pbtamarona/OpenPyTEA/tree/standalone-package) branch:
162
+
163
+ ```bash
164
+ git fetch origin
165
+ git checkout standalone-package
166
+ ```
167
+
168
+ ---
169
+ ## 🧠 Core Concepts
170
+
171
+ ### 1. **Equipment-level costing**
172
+
173
+ Each process unit (e.g., compressor, heat exchanger, reactor) is represented by an `Equipment` object:
174
+
175
+ ```python
176
+ from openpytea.equipment import Equipment
177
+
178
+ compressor = Equipment(
179
+ name='COMP',
180
+ param=5000, # kW
181
+ process_type='Fluids',
182
+ category='Compressors, fans, & Blowers',
183
+ type='Compressor, centrifugal',
184
+ material='Carbon steel'
185
+ )
186
+
187
+ print(compressor.direct_cost)
188
+ ```
189
+
190
+ Each equipment item retrieves its cost correlation from the internal database in `data/cost_correlations.csv` and adjusts the cost to the desired year using the Chemical Engineering Plant Cost Index (CEPCI).
191
+
192
+ Assemblies such as a PSA skid (vessels plus adsorbent layers) can be built from individually priced sub-components with `CompositeEquipment`; the composite then behaves like any other equipment item in a plant:
193
+
194
+ ```python
195
+ from openpytea.equipment import CompositeEquipment
196
+
197
+ psa = CompositeEquipment(
198
+ name='PSA',
199
+ process_type='Fluids',
200
+ components=[vessel, zeolite, carbon], # ordinary Equipment objects
201
+ )
202
+ print(psa.direct_cost)
203
+ psa.breakdown() # one row per sub-component
204
+ ```
205
+
206
+ ### 2. **Plant-level techno-economic assessment**
207
+
208
+ Multiple equipment objects can be grouped into a `Plant` instance for full TEA
209
+
210
+ ```python
211
+ from openpytea.plant import Plant
212
+
213
+ ammonia_plant = Plant({
214
+ 'plant_name': 'Ammonia Production Plant',
215
+ 'country': 'Netherlands',
216
+ 'process_type': 'Fluids',
217
+ 'equipment': [compressor],
218
+ 'interest_rate': 0.09,
219
+ 'plant_utilization': 0.95,
220
+ 'project_lifetime': 20, # in years
221
+ 'plant_products': { # Here we define the product(s) of the plant
222
+ 'ammonia': {
223
+ 'production': 125_000, # Daily production in kg/day
224
+ }
225
+ },
226
+ 'variable_opex_inputs': {
227
+ 'electricity': {
228
+ 'consumption': 110, # Daily consumption, in MWh
229
+ 'price': 75 # US$/MWh
230
+ },
231
+ 'hydrogen': {
232
+ 'consumption': 22_000, # Daily consumption, in kg/day
233
+ 'price': 2 # US$/kg
234
+ },
235
+ },
236
+ })
237
+
238
+ ammonia_plant.calculate_cash_flow(print_results=True)
239
+ ammonia_plant.calculate_levelized_cost()
240
+ ```
241
+ Main outputs include:
242
+ - Capital expenditures (CAPEX): inside/outside battery limits, engineering, contingency, and location factors
243
+ - Operating expenditures (OPEX): variable and operating expenditures, including utilities, maintenance, labor, and overhead costs
244
+ - Financial metrics: Net Present Value (NPV), Internal Rate of Return (IRR), Return on Investment (ROI), Payback Time (PBT), and Levelized Cost of Product (LCOP)
245
+
246
+ ### 3. **CAPEX and OPEX breakdown plots**
247
+
248
+ Following a `data` + `plot` pattern used throughout the package, OpenPyTEA includes convenience functions for visualizing the economic structure of one or more plants as stacked bar charts:
249
+
250
+ - `direct_costs_data()` + `plot_stacked_bar()`: direct equipment costs (per equipment item; `expand_composites=True` splits composite equipment into its components).
251
+ - `fixed_capital_data()` + `plot_stacked_bar()`: fixed capital components (ISBL, OSBL, design & engineering, contingency).
252
+ - `variable_opex_data()` + `plot_stacked_bar()`: variable operating costs by input mass and energy stream.
253
+ - `fixed_opex_data()` + `plot_stacked_bar()`: fixed operating expenses, including labor, supervision, maintenance, overhead, R&D, and more.
254
+ - `levelized_cost_data()` + `plot_stacked_bar()`: levelized cost of production (LCOP), broken down into discounted CAPEX, OPEX, and side-product revenue.
255
+
256
+ ```python
257
+ from openpytea.analysis import direct_costs_data, levelized_cost_data
258
+ from openpytea.plotting import plot_stacked_bar
259
+
260
+ direct_costs = direct_costs_data(ammonia_plant)
261
+ fig, ax = plot_stacked_bar(direct_costs)
262
+
263
+ lcop = levelized_cost_data(ammonia_plant)
264
+ fig, ax = plot_stacked_bar(lcop)
265
+ ```
266
+
267
+ Each `*_data()` function also accepts a **list of plants**, in which case `plot_stacked_bar` draws one bar per plant side-by-side for direct comparison. Separating data preparation (`analysis.py`) from plotting (`plotting.py`) means you can also feed the returned dictionaries into your own custom visualization code.
268
+
269
+ ### 4. **Cash flow diagram**
270
+
271
+ `cash_flow_data()` and `plot_cash_flow()` visualize a project's cumulative cash flow over time: the dip into debt during construction, the point of maximum investment, the break-even (pay-back) point, and the eventual climb into profit.
272
+
273
+ ```python
274
+ from openpytea.analysis import cash_flow_data
275
+ from openpytea.plotting import plot_cash_flow
276
+
277
+ cash_flow = cash_flow_data(ammonia_plant)
278
+ fig, ax = plot_cash_flow(cash_flow)
279
+ ```
280
+
281
+ As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`) for use outside the plot, e.g. in reports.
282
+
283
+ ### 5. **Sensitivity and uncertainty analysis**
284
+
285
+ **OpenPyTEA** provides integrated tools for visual sensitivity and probabilistic analysis of cost and performance drivers.
286
+
287
+ One-Way Sensitivity Line Plot
288
+ ```python
289
+ from openpytea.analysis import sensitivity_data
290
+ from openpytea.plotting import plot_sensitivity
291
+
292
+ results = sensitivity_data(
293
+ ammonia_plant,
294
+ parameter="electricity",
295
+ plus_minus_value=0.5,
296
+ )
297
+ fig, ax = plot_sensitivity(results)
298
+ ```
299
+ The `plants` input may also be a list of `Plant` objects to generate comparison plots.
300
+
301
+ Besides prices and financial assumptions, `parameter` also accepts a **process quantity** — `"electricity.consumption"` or `"ammonia.production"` — to sweep the physical side of the plant.
302
+
303
+ Tornado Plot (One-at-a-Time Sensitivity)
304
+ ```python
305
+ from openpytea.analysis import tornado_data
306
+ from openpytea.plotting import plot_tornado
307
+
308
+ results = tornado_data(ammonia_plant, plus_minus_value=0.5)
309
+ fig, ax = plot_tornado(results)
310
+ ```
311
+ Pass `include_process_params=True` to rank consumption and production quantities alongside the prices and financial assumptions.
312
+
313
+ Monte Carlo Simulation
314
+ ```python
315
+ from openpytea.analysis import monte_carlo
316
+ from openpytea.plotting import plot_monte_carlo
317
+
318
+ results = monte_carlo(ammonia_plant, num_samples=1_000_000)
319
+ fig, ax = plot_monte_carlo(results)
320
+ ```
321
+ Outputs include probability distributions and confidence intervals for LCOP, NPV, ROI, and payback time—supporting uncertainty-informed decision-making. With `plot_multiple_monte_carlo`, **OpenPyTEA** can also visualize Monte Carlo results for multiple plants to enable uncertainty comparisons. `plot_monte_carlo_inputs` shows the sampled inputs themselves, split into **process** and **economic** figures, to confirm each distribution came out as intended.
322
+
323
+ Uncertainty is configured per item: `price_uncertainty` on any `variable_opex_inputs` or `plant_products` entry, `consumption_uncertainty`/`production_uncertainty` for the quantities, and `project_uncertainties` for the project-level scalars.
324
+
325
+ Parameter Dependencies
326
+ ```python
327
+ ammonia_plant.update_configuration({
328
+ "variable_opex_inputs": {
329
+ "hydrogen": {
330
+ "consumption_dependency": {
331
+ "depends_on": {"production:ammonia": 0.176}, # kg H2 per kg NH3
332
+ },
333
+ },
334
+ },
335
+ })
336
+ ```
337
+ Rather than varying independently, a quantity can be defined as a linear function of one or more others — `dependent = Σ wᵢ · parentᵢ + offset`. Here the hydrogen feed follows ammonia production instead of drifting away from it. Process and economic parameters can drive each other in either direction (a byproduct's yield tracking the main product, `fixed_capital_factor` scaling with capacity), chains and multi-parent nodes resolve automatically, and cycles raise an error. A dependent may carry its own additive `noise` on top of the implied mean.
338
+
339
+ Because dependencies live on the `Plant`, **all three analyses honour them**: Monte Carlo samples through the graph, while `sensitivity_data` and `tornado_data` propagate each perturbation through it and refuse to vary a parameter that a dependency already determines. See the Analysis user guide in the [documentation](https://openpytea.readthedocs.io) for the full configuration format.
340
+
341
+ ### 6. **Workflow using JSON config files and command-line interface**
342
+
343
+ **OpenPyTEA** supports a workflow using structured JSON input files via the `io.py` module. This enables standardized, reproducible, and scalable TEA studies.
344
+
345
+ Key functionalities include:
346
+ - `run_equipment()`: evaluate equipment costs from JSON input
347
+ - `run_plant()`: construct and evaluate a plant configuration
348
+ - `run_tea()`: execute full TEA, including cost breakdowns, sensitivity, and uncertainty analysis
349
+ - `run_openpytea()`: single-file counterpart to `run_tea()` — runs the same pipeline from one combined JSON file (`equipment` + `plant` + `analysis` blocks), intended for CLI use
350
+
351
+ This workflow is demonstrated in `case_study_1_with_JSON.ipynb` in the example folder.
352
+
353
+ Installing **OpenPyTEA** also installs an `openpytea` command-line tool, so the same combined-file workflow can be run without writing any Python:
354
+
355
+ ```bash
356
+ openpytea run project/config.json --output-dir outputs/tea_results
357
+ ```
358
+
359
+ `openpytea equipment`, `openpytea plant`, and `openpytea tea` (the three-file variant of `run_tea()`) are also available — run `openpytea --help` for the full command list. See the [JSON Workflow guide](docs/user_guide/io_workflow.rst) for details.
360
+
361
+ ---
362
+ ## 📘 Example Workflows
363
+
364
+ Example notebooks are available in the `examples/` folder, including:
365
+
366
+ - Comparison of hydrogen production pathwways
367
+ - Hydrogen liquefaction precooling system
368
+ - Geothermal-based heating and power generation
369
+
370
+ Run any example via:
371
+ ```bash
372
+ jupyter notebook examples/case_study_1.ipynb
373
+ ```
374
+ Each notebook demonstrates:
375
+ - Input definition and equipment configuration
376
+ - Cash-flow and investment evaluation
377
+ - Sensitivity and uncertainty analysis
378
+ - Visualization of key economic indicators
379
+
380
+ ---
381
+ ## 🧑‍🏫 Educational Use
382
+
383
+ **OpenPyTEA** is suitable for chemical and process engineering education.
384
+ Students can perform full TEA using their simulation outputs—estimating capital, operating, and profitability metrics—without commercial software.
385
+ All algorithms are visible and modifiable, eliminating the “black-box” nature of most TEA tools.
386
+
387
+ ---
388
+ ## 🛠️ Contributing
389
+ We welcome community contributions!
390
+ You can help by:
391
+ - Adding or updating equipment cost correlations
392
+ - Improving the documentation or creating tutorials
393
+ - Extending the visualization or uncertainty modules
394
+
395
+ To contribute:
396
+ 1. Fork the repository.
397
+ 2. Create a new branch:
398
+ ```bash
399
+ git checkout -b feature-new-equipment
400
+ ```
401
+ 3. Commit your changes and open a Pull Request.
402
+
403
+ Please follow PEP8 coding conventions and include a short description of your updates.
404
+
405
+ ---
406
+ ## 📖 Publication
407
+
408
+ **OpenPyTEA** is described in the following peer-reviewed paper published in *SoftwareX*:
409
+
410
+ > Tamarona, P.B., Vlugt, T.J.H., & Ramdin, M. (2026). *OpenPyTEA: An open-source python toolkit
411
+ > for techno-economic assessment of chemical process plants and energy systems with economic
412
+ > sensitivity and uncertainty evaluation.* SoftwareX, 35, 102816.
413
+ > https://doi.org/10.1016/j.softx.2026.102816
414
+
415
+ If you use **OpenPyTEA** in your research, please cite this paper (see [Citation](#-citation) below).
416
+
417
+ ---
418
+ ## 📚 Citation
419
+
420
+ If you use **OpenPyTEA** in your research, please cite the following paper:
421
+
422
+ > Tamarona, P.B., Vlugt, T.J.H., & Ramdin, M. (2026). *OpenPyTEA: An open-source python toolkit
423
+ > for techno-economic assessment of chemical process plants and energy systems with economic
424
+ > sensitivity and uncertainty evaluation.* SoftwareX, 35, 102816.
425
+ > https://doi.org/10.1016/j.softx.2026.102816
426
+
427
+ **BibTeX:**
428
+ ```bibtex
429
+ @article{TAMARONA2026102816,
430
+ title = {OpenPyTEA: An open-source python toolkit for techno-economic assessment of chemical process plants and energy systems with economic sensitivity and uncertainty evaluation},
431
+ journal = {SoftwareX},
432
+ volume = {35},
433
+ pages = {102816},
434
+ year = {2026},
435
+ issn = {2352-7110},
436
+ doi = {https://doi.org/10.1016/j.softx.2026.102816},
437
+ url = {https://www.sciencedirect.com/science/article/pii/S2352711026003080},
438
+ author = {P.B. Tamarona and T.J.H. Vlugt and M. Ramdin},
439
+ keywords = {Techno-economic assessment, Process design, Process plant, Power plant, Chemical engineering},
440
+ ` ` `
441
+ ```
442
+
443
+ ---
444
+ ## 📄 License
445
+
446
+ **OpenPyTEA** is released under the MIT License.
447
+
448
+ You are free to use, modify, and distribute the code with proper attribution.
449
+
450
+ ---
451
+ ## 📬 Contact
452
+ Panji B. Tamarona
453
+
454
+ 📧 P.B.Tamarona@tudelft.nl
455
+
456
+ Repository: https://github.com/pbtamarona/OpenPyTEA