source("../rosmose-setup.R", local = knitr::knit_global())Process Development Heat Integration
Introduction
This report presents the results of your heat integration simulations. Each run will generate an output json file stored in the “Rosmose/result” folder and a “frontend.html” file stored in “Rosmose” folder.
The json files will be numbered as 1, 2, 3,,,,,, for each run. However, the “frontend.html” file is overwritten each time hence to keep previous versions you must rename the file before running your simulation again.
once your models and units are ready you can run the rsomose simulation by pressing the “Preview” button in the top right corner or using the command line “quarto preview” in the terminal at the correct directory location.
A ready example is given to demonstrate extraction of data from an Aspen flowsheet, changing the process parameters in Aspen through your Rmd file and displaying your integration results.
all Aspen related files are found in this folder “model/AspenModel/.”
The “Aspen_methanol_process.rmd” file is coupled with the “methanol_process_PD1.bkp” file. The same example Aspen process flowsheet used in all tutorials throughout the course.
Methanol Process Aspen model
| Software | Location | Comment |
|---|---|---|
| ASPEN | model_process_PD1.bkp |
| Name | Path | Value | Units | Comments |
|---|---|---|---|---|
| Electrolyzer_size | /Data/Streams/POWER/Input/POWER | -30000 | kW |
| Name | Path | Units | Comments |
|---|---|---|---|
| T_AIR_1 | /Data/Streams/AIR1/Output/TEMP_OUT/MIXED | C | |
| T_AIR_2 | /Data/Streams/AIR2/Output/TEMP_OUT/MIXED | C | |
| heater_1 | /Data/Blocks/HEATER1/Output/QCALC | kW | |
| T_FUEL_1 | /Data/Streams/FUEL1/Output/TEMP_OUT/MIXED | C | |
| T_FUEL_2 | /Data/Streams/FUEL2/Output/TEMP_OUT/MIXED | C | |
| heater_3 | /Data/Blocks/HEATER3/Output/QCALC | kW | |
| T_FUEL_3 | /Data/Streams/FUEL3/Output/TEMP_OUT/MIXED | C | |
| heater_4 | /Data/Blocks/HEATER4/Output/QCALC | kW | |
| T_FUEL_4 | /Data/Streams/FUEL4/Output/TEMP_OUT/MIXED | C | |
| heater_5 | /Data/Blocks/HEATER5/Output/QCALC | kW | |
| T_AIR_OUT | /Data/Streams/AIROUT/Output/TEMP_OUT/MIXED | C | |
| T_AIR_4 | /Data/Streams/AIR4/Output/TEMP_OUT/MIXED | C | |
| cooler_1 | /Data/Blocks/COOLER1/Output/QCALC | kW | |
| T_FUEL_OUT | /Data/Streams/FUELOUT/Output/TEMP_OUT/MIXED | C | |
| T_LTFUEL | /Data/Streams/LTFUEL/Output/TEMP_OUT/MIXED | C | |
| cooler_2 | /Data/Blocks/COOLER2/Output/QCALC | kW | |
| MSC_cooler_1_Tin | /Data/Blocks/C1/Output/B_TEMP/1 | C | |
| MSC_cooler_1_Tout | /Data/Blocks/C1/Output/COOL_TEMP/1 | C | |
| MSC_cooler_1_Duty | /Data/Blocks/C1/Output/QCALC/1 | kW | |
| MSC_cooler_2_Tin | /Data/Blocks/C1/Output/B_TEMP/2 | C | |
| MSC_cooler_2_Tout | /Data/Blocks/C1/Output/COOL_TEMP/2 | C | |
| MSC_cooler_2_Duty | /Data/Blocks/C1/Output/QCALC/2 | kW | |
| MSC_power_tot | /Data/Blocks/C1/Output/WNET | kW | |
| T_S1 | /Data/Streams/S1/Output/TEMP_OUT/MIXED | C | |
| T_S2 | /Data/Streams/S2/Output/TEMP_OUT/MIXED | C | |
| HX1_Duty | /Data/Blocks/HX1/Output/QCALC | kW | |
| T_S4 | /Data/Streams/S4/Output/TEMP_OUT/MIXED | C | |
| T_S5 | /Data/Streams/S5/Output/TEMP_OUT/MIXED | C | |
| HX2_Duty | /Data/Blocks/HX2/Output/QCALC | kW | |
| T_S7 | /Data/Streams/S7/Output/TEMP_OUT/MIXED | C | |
| T_S8 | /Data/Streams/S8/Output/TEMP_OUT/MIXED | C | |
| HX3_Duty | /Data/Blocks/HX3/Output/QCALC | kW | |
| T_S3 | /Data/Streams/S3/Output/TEMP_OUT/MIXED | C | |
| R1 | /Data/Blocks/R1/Output/QCALC | kW | |
| cond_ti | /Data/Blocks/T1/Output/B_TEMP/2 | C | |
| cond_to | /Data/Blocks/T1/Output/B_TEMP/1 | C | |
| cond_Q | /Data/Blocks/T1/Output/COND_DUTY | kW | |
| reb_ti | /Data/Blocks/T1/Output/B_TEMP/23 | C | |
| reb_to | /Data/Blocks/T1/Output/B_TEMP/24 | C | |
| reb_Q | /Data/Blocks/T1/Output/REB_DUTY | kW |
| name | value | unit | description |
|---|---|---|---|
| heater_1 | 9662.79484 | kW | |
| heater_5 | 3332.57776 | kW | |
| MSC_power_tot | 2025.86471 | kW |
Problem Definition
Here we define the Energy Technology (ET) we want to solve.
This project will use the Methanol ET.
Biomass ET
This ET will use the following Layers
| Layer | Display name | shortname | Unit | Color |
|---|---|---|---|---|
| ELEC | Electricity | elec | kW | yellow |
The methanol ET contains the following units
| unit name | type |
|---|---|
| Methanol | Process |
Methanol Unit
| cost1 | cost2 | cinv1 | cinv2 | imp1 | imp2 | fmin | fmax |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
Methanol Unit Streams
Note to Meire you can add the electricity resources streams here directly as inputs to the process
After importing the powers of your compressors and pumps in your Aspen model. you can use this ET to sum up everything and report your net electricity consumption.
| layer | direction | value |
|---|---|---|
| ELEC | in | 32025.86471 |
Heat Streams
| name | Tin | Tout | Hin | Hout | DT min/2 | alpha |
|---|---|---|---|---|---|---|
| heater_1 | 25.0 | 700.0 | 0 | 9662.79484 | 2.5 | 1 |
| heater_3 | 25.0 | 33.7975644 | 0 | 114.016569 | 2.5 | 1 |
| heater_4 | 33.7975644 | 94.9629521 | 0 | 5166.04347 | 2.5 | 1 |
| heater_5 | 94.9629521 | 700.0 | 0 | 3332.57776 | 2.5 | 1 |
| cooler_1 | 700.021398 | 25.0 | 0 | -10945.0531 | 2.5 | 1 |
| cooler_2 | 700.021398 | 25.0 | 0 | -3445.01521 | 2.5 | 1 |
| MSC_cooler_1 | 207.329046 | 25.0 | 0 | -672.664443 | 2.5 | 1 |
| MSC_cooler_2 | 207.401247 | 25.0 | 0 | -675.120921 | 2.5 | 1 |
| HX_1 | 207.656056 | 250.0 | 0 | 159.335927 | 2.5 | 1 |
| HX_2 | 250.011953 | 50.0 | 0 | -3802.07109 | 2.5 | 1 |
| HX_3 | 52.5239904 | 250.0 | 0 | 2233.05923 | 2.5 | 1 |
| R_1 | 250.011953 | 250.011953 | 0 | -2523.17368 | 2.5 | 1 |
| reb | 77.3036885 | 91.2973447 | 0 | 1879.57604 | 2.5 | 1 |
| cond | 63.9245458 | 58.7832494 | 0 | -1802.74722 | 2.5 | 1 |
Solver configuration chunck for student VMs
| Property | Value | Comments |
|---|---|---|
| language | ampl | |
| solver | gurobi | |
| solver_options | {} |
Here we solve the optimization problem.
Your objective function can either be MER (Minimum energy requirement) or TotalCost. To run in MER mode you need to specify only the ET you want to solve however to run in TotalCost mode, sufficient utilities must be supplied for the optimization problem to be solve-able.
When running in MER mode you can display the cc and gcc curves with the minimum energy requirements chunk however when solving for TotalCost you should report the CAPEX/OPEX chunk and display the icc and carnot plots to evaluate the utility integration.
Optimization Results
Energy Requirements
Minimum Heating Requirement: 98.7 kW
Minimum Cooling Requirement: 1417 kW
Plots
Grand Composite Curve
Composite Curves