Skip to content

Commit 40626ff

Browse files
Port End-Use Option output parameter tooltip text from theoretical basis
1 parent daee411 commit 40626ff

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

src/geophires_x/SurfacePlant.py

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,41 @@ def __init__(self, model: Model):
471471
self.MyPath = os.path.abspath(__file__)
472472

473473
# Results - used by other objects or printed in output downstream
474+
474475
self.enduse_option_output = self.OutputParameterDict[self.enduse_option_output.Name] = OutputParameter(
475476
Name=self.enduse_option.Name,
476477
UnitType=Units.NONE,
477-
# FIXME WIP
478-
# ToolTipText="Select the end-use application of the geofluid heat: " +
479-
# '; '.join([f'{it.int_value}: {it.value}' for it in EndUseOptions])
478+
ToolTipText='Five different end-use options are available in GEOPHIRES: '
479+
'1: Electricity: All produced geothermal fluid is used to generate electricity with either an '
480+
'ORC or flash power plant; '
481+
'2: Direct-use heat: All produced geothermal fluid is used to provide heating for a given '
482+
'application, e.g., a district-heating system or industrial process; '
483+
'3: Cogeneration or combined heat and power (CHP): Both heat and electricity are produced. '
484+
'Three different cogeneration configurations are available: '
485+
'(1): Cogeneration topping cycle: A power plant is followed by a direct-use heat application '
486+
'in series. Heat at high temperatures from the geothermal fluid is first converted into '
487+
'electricity. Any remaining heat in the geothermal fluid after leaving the power plant is '
488+
'supplied to a low-temperature direct-use heat application; '
489+
'(2): Cogeneration bottoming cycle: A direct-use heat application is followed by a power plant '
490+
'in series. In this less common configuration, the geothermal fluid first serves a '
491+
'high-temperature direct-use heat application. Any remaining heat in the geothermal fluid '
492+
'after leaving the direct-use heat process (at a user-specified temperature) is used to '
493+
'generate electricity. The heat-to-power conversion typically occurs with an ORC plant '
494+
'operating at low conversion efficiencies; '
495+
'(3): Cogeneration parallel cycle: A power plant operates in parallel with a direct-use heat '
496+
'application. The produced geothermal fluid is split into two streams, providing heat at the '
497+
'same temperature to a power plant and direct-use heat application. The user specifies the '
498+
'fluid flow fraction going to each process.',
499+
# TODO this tooltip text (ported from the theoretical basis) is probably better suited to being semantically
500+
# associated with the End-Use Option input parameter rather than the corresponding OutputParameter here.
501+
# However, the input parameter tooltip text is generated from an enumeration of EndUseOptions enum values
502+
# which doesn't cleanly map to the information contained here because each of the CHP configurations has
503+
# two EndUseOptions for whether heat or electricity sales are considered as extra income. This mapping
504+
# incongruency could possibly eventually be addressed by an additional layer of metadata/indirection for
505+
# adding pointers from input parameters to more complete documentation entries/sections. In the meantime,
506+
# this output parameter tooltip is a logical-enough place to store the information, where it is reasonably
507+
# user-accessible in the UI and parameters reference.
508+
json_parameter_type='string'
480509
)
481510
self.usebuiltinoutletplantcorrelation = self.OutputParameterDict[self.usebuiltinoutletplantcorrelation.Name] = OutputParameter(
482511
Name="usebuiltinoutletplantcorrelation",

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"SUMMARY OF RESULTS": {
99
"type": "object",
1010
"properties": {
11-
"End-Use Option": {},
11+
"End-Use Option": {
12+
"type": "string",
13+
"description": "Five different end-use options are available in GEOPHIRES: 1: Electricity: All produced geothermal fluid is used to generate electricity with either an ORC or flash power plant; 2: Direct-use heat: All produced geothermal fluid is used to provide heating for a given application, e.g., a district-heating system or industrial process; 3: Cogeneration or combined heat and power (CHP): Both heat and electricity are produced. Three different cogeneration configurations are available: (1): Cogeneration topping cycle: A power plant is followed by a direct-use heat application in series. Heat at high temperatures from the geothermal fluid is first converted into electricity. Any remaining heat in the geothermal fluid after leaving the power plant is supplied to a low-temperature direct-use heat application; (2): Cogeneration bottoming cycle: A direct-use heat application is followed by a power plant in series. In this less common configuration, the geothermal fluid first serves a high-temperature direct-use heat application. Any remaining heat in the geothermal fluid after leaving the direct-use heat process (at a user-specified temperature) is used to generate electricity. The heat-to-power conversion typically occurs with an ORC plant operating at low conversion efficiencies; (3): Cogeneration parallel cycle: A power plant operates in parallel with a direct-use heat application. The produced geothermal fluid is split into two streams, providing heat at the same temperature to a power plant and direct-use heat application. The user specifies the fluid flow fraction going to each process.",
14+
"units": null
15+
},
1216
"End-Use": {},
1317
"Surface Application": {},
1418
"Reservoir Model": {},

0 commit comments

Comments
 (0)