Skip to content

Commit

Permalink
Merge branch 'develop' into tidal-turbine-cf
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Oct 22, 2024
2 parents 22683bb + 158a3c0 commit e4b8541
Show file tree
Hide file tree
Showing 12 changed files with 149 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
DEFAULT_BRANCH: develop
WX_VERSION: '3.2.4'
WX_VERSION: '3.2.6'

jobs:
build-ubuntu:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_period": 25.0,
"analysis_period_warning": "No messages.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_type": 0.0,
"annual_albedo": "nan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_period": 25.0,
"analysis_period_warning": "No messages.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_period": 25.0,
"analysis_period_warning": "No messages.",
Expand Down
1 change: 1 addition & 0 deletions deploy/runtime/defaults/Geothermal Power_None.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_type": 0.0,
"annual_albedo": "nan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_period": 25.0,
"analysis_period_warning": "No messages.",
Expand Down
1 change: 1 addition & 0 deletions deploy/runtime/defaults/Geothermal Power_Single Owner.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
0.0,
0.0
],
"allow_reservoir_replacements": 0.0,
"ambient_pressure": 14.7,
"analysis_period": 25.0,
"analysis_period_warning": "No messages.",
Expand Down
3 changes: 2 additions & 1 deletion deploy/runtime/ui/Geothermal Costs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12904,7 +12904,8 @@
"\t\tssc_var( geothermal, 'design_temp', ${design_temp} );",
"\t\tssc_var( geothermal, 'specify_pump_work', ${specify_pump_work} ); // INTEGER",
"\t\tssc_var( geothermal, 'specified_pump_work_amount', ${specified_pump_work_amount} );",
"",
"\t\t\r",
"\t\tssc_var( geothermal, 'allow_reservoir_replacements', ${allow_reservoir_replacements});",
"\t\t// detailed geothermal inputs",
"\t\tssc_var( geothermal, 'rock_thermal_conductivity', ${rock_thermal_conductivity} );",
"\t\tssc_var( geothermal, 'rock_specific_heat', ${rock_specific_heat} );",
Expand Down
13 changes: 7 additions & 6 deletions deploy/runtime/ui/Geothermal OM Costs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "Geothermal OM Costs",
"Width": 778.0,
"Height": 209.0,
"Width": 551.0,
"Height": 206.0,
"FormObjects": {
"Button": {
"Visible": 1.0,
Expand All @@ -12,11 +12,11 @@
},
"X": {
"Type": 3.0,
"Integer": 111.0
"Integer": 24.0
},
"Y": {
"Type": 3.0,
"Integer": 78.0
"Integer": 57.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"Height": {
"Type": 3.0,
"Integer": 180.0
"Integer": 108.0
},
"Tool Tip": {
"Type": 5.0,
Expand Down Expand Up @@ -110,7 +110,8 @@
"\t}\r",
"\tssc_var( geothermal, 'resource_depth', ${resource_depth} );\r",
"\tssc_var( geothermal, 'dt_prod_well', ${dt_prod_well} );\t\r",
"\tssc_var( geothermal, 'prod_well_choice', ${prod_well_choice} );\t\t\t\t\t\t\t\t\t\t\t\t\r",
"\tssc_var( geothermal, 'prod_well_choice', ${prod_well_choice} );\t\r",
"\tssc_var( geothermal, 'allow_reservoir_replacements', ${allow_reservoir_replacements});\t\t\t\t\t\t\t\t\t\t\t\r",
"\t// Other inputs\t\t\t\t\t\t\t \r",
"\tssc_var( geothermal, 'geothermal_analysis_period', ${geothermal_analysis_period} ); // INTEGER\r",
"\tssc_var( geothermal, 'model_choice', ${model_choice} ); // INTEGER\r",
Expand Down
66 changes: 63 additions & 3 deletions deploy/runtime/ui/Geothermal Plant and Equipment.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,47 @@
}
}
},
"CheckBox": {
"Visible": 1.0,
"ObjectProperties": {
"Name": {
"Type": 5.0,
"String": "allow_reservoir_replacements"
},
"X": {
"Type": 3.0,
"Integer": 42.0
},
"Y": {
"Type": 3.0,
"Integer": 483.0
},
"Width": {
"Type": 3.0,
"Integer": 249.0
},
"Height": {
"Type": 3.0,
"Integer": 24.0
},
"Tool Tip": {
"Type": 5.0,
"String": ""
},
"Caption": {
"Type": 5.0,
"String": "Allow reservoir replacements"
},
"State": {
"Type": 2.0,
"Boolean": 1.0
},
"TabOrder": {
"Type": 3.0,
"Integer": -1.0
}
}
},
"Numeric": {
"Visible": 1.0,
"ObjectProperties": {
Expand Down Expand Up @@ -1552,7 +1593,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 483.0
"Integer": 513.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -2967,7 +3008,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 483.0
"Integer": 513.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -3496,6 +3537,19 @@
"sscVariableName": "",
"sscVariableValue": ""
},
"allow_reservoir_replacements": {
"Version": 4.0,
"Type": 1.0,
"Label": "Allow reservoir replacements",
"Units": "0/1",
"Group": "Geothermal Plant and Equipment",
"IndexLabels": "",
"Flags": 3.0,
"DefaultValue": 0.0,
"UIObject": "CheckBox",
"sscVariableName": "",
"sscVariableValue": ""
},
"ambient_pressure": {
"Version": 4.0,
"Type": 1.0,
Expand Down Expand Up @@ -4100,7 +4154,7 @@
"//\tssc_var( obj, 'adjust:constant', 0.0 );",
"//\tssc_var( obj, 'adjust', {\"constant\" = 0.0} );",
"\tssc_var( obj, 'adjust_constant', 0.0 );\r",
"",
"\tssc_var( obj, 'allow_reservoir_replacements', ${allow_reservoir_replacements});",
"\tssc_var( obj, 'resource_type', ${resource_type} ); // INTEGER",
"\tssc_var( obj, 'resource_temp', ${resource_temp} );",
"\tssc_var( obj, 'resource_depth', ${resource_depth} );",
Expand Down Expand Up @@ -4309,6 +4363,7 @@
"\ton_change{'prod_well_choice'}();\r",
"\tloss_adjustment_set();\r",
"\ton_change{'use_weather_file_conditions'}();\r",
"\ton_change{'allow_reservoir_replacements'}();\r",
"\trefresh();\r",
"};\t\r",
"\r",
Expand Down Expand Up @@ -4364,6 +4419,11 @@
"\tenable('wet_bulb_temp_input', check == 0);\r",
"\tenable('wet_bulb_temp_wf', check == 1);\r",
"\trefresh();\r",
"};\r",
"\r",
"on_change{'allow_reservoir_replacements'} = define() {\r",
"\tcheck = value('allow_reservoir_replacements');\r",
"\tenable('temp_decline_max', check);\r",
"};"
]
}
Loading

0 comments on commit e4b8541

Please sign in to comment.