Spaces:
Sleeping
Sleeping
new composite curve, nwe potential analysis.
Browse files
data/examples/heat_integration_example_1.json
CHANGED
|
@@ -331,8 +331,8 @@
|
|
| 331 |
"pinch_notes": "",
|
| 332 |
"current_energy_demands": [
|
| 333 |
{
|
| 334 |
-
"heat_demand":
|
| 335 |
-
"cooling_demand":
|
| 336 |
"selected_heat_streams": [
|
| 337 |
"Steam Subprocess 1 s2",
|
| 338 |
"Product Subprocess 1 s1",
|
|
|
|
| 331 |
"pinch_notes": "",
|
| 332 |
"current_energy_demands": [
|
| 333 |
{
|
| 334 |
+
"heat_demand": 3000.0,
|
| 335 |
+
"cooling_demand": 3000.0,
|
| 336 |
"selected_heat_streams": [
|
| 337 |
"Steam Subprocess 1 s2",
|
| 338 |
"Product Subprocess 1 s1",
|
src/pages/potential_analysis.py
CHANGED
|
@@ -2532,10 +2532,11 @@ else:
|
|
| 2532 |
key=f"heat_{i}"
|
| 2533 |
)
|
| 2534 |
|
|
|
|
| 2535 |
demand['selected_heat_streams'] = st.multiselect(
|
| 2536 |
"Supplied streams",
|
| 2537 |
all_hot_names,
|
| 2538 |
-
default=
|
| 2539 |
key=f"heat_streams_{i}"
|
| 2540 |
)
|
| 2541 |
|
|
@@ -2548,10 +2549,11 @@ else:
|
|
| 2548 |
key=f"cooling_{i}"
|
| 2549 |
)
|
| 2550 |
|
|
|
|
| 2551 |
demand['selected_cooling_streams'] = st.multiselect(
|
| 2552 |
"Supplied streams",
|
| 2553 |
all_cold_names,
|
| 2554 |
-
default=
|
| 2555 |
key=f"cooling_streams_{i}"
|
| 2556 |
)
|
| 2557 |
|
|
@@ -2950,7 +2952,7 @@ else:
|
|
| 2950 |
yaxis_title='Temperature T (°C)',
|
| 2951 |
height=400,
|
| 2952 |
margin=dict(l=60, r=20, t=40, b=50),
|
| 2953 |
-
legend=dict(x=0.
|
| 2954 |
hovermode='closest',
|
| 2955 |
xaxis=dict(rangemode='tozero'),
|
| 2956 |
yaxis=dict(rangemode='tozero')
|
|
|
|
| 2532 |
key=f"heat_{i}"
|
| 2533 |
)
|
| 2534 |
|
| 2535 |
+
heat_default = [s for s in demand.get('selected_heat_streams', all_hot_names) if s in all_hot_names]
|
| 2536 |
demand['selected_heat_streams'] = st.multiselect(
|
| 2537 |
"Supplied streams",
|
| 2538 |
all_hot_names,
|
| 2539 |
+
default=heat_default,
|
| 2540 |
key=f"heat_streams_{i}"
|
| 2541 |
)
|
| 2542 |
|
|
|
|
| 2549 |
key=f"cooling_{i}"
|
| 2550 |
)
|
| 2551 |
|
| 2552 |
+
cooling_default = [s for s in demand.get('selected_cooling_streams', all_cold_names) if s in all_cold_names]
|
| 2553 |
demand['selected_cooling_streams'] = st.multiselect(
|
| 2554 |
"Supplied streams",
|
| 2555 |
all_cold_names,
|
| 2556 |
+
default=cooling_default,
|
| 2557 |
key=f"cooling_streams_{i}"
|
| 2558 |
)
|
| 2559 |
|
|
|
|
| 2952 |
yaxis_title='Temperature T (°C)',
|
| 2953 |
height=400,
|
| 2954 |
margin=dict(l=60, r=20, t=40, b=50),
|
| 2955 |
+
legend=dict(x=0.01, y=0.99, xanchor='left', yanchor='top'),
|
| 2956 |
hovermode='closest',
|
| 2957 |
xaxis=dict(rangemode='tozero'),
|
| 2958 |
yaxis=dict(rangemode='tozero')
|