From 48e62ec6e47c2063a0565e54c9e734c06127d8cf Mon Sep 17 00:00:00 2001 From: softwareengineerprogrammer <4056124+softwareengineerprogrammer@users.noreply.github.com> Date: Tue, 28 Apr 2026 10:11:59 -0700 Subject: [PATCH 1/3] Add Project Latitude/Longitude parameters to SurfacePlant --- src/geophires_x/SurfacePlant.py | 20 +++++++++++++++++++ .../geophires-request.json | 18 +++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/src/geophires_x/SurfacePlant.py b/src/geophires_x/SurfacePlant.py index 6113add02..d70b32487 100644 --- a/src/geophires_x/SurfacePlant.py +++ b/src/geophires_x/SurfacePlant.py @@ -472,6 +472,26 @@ def __init__(self, model: Model): ToolTipText="Dynamic viscosity of the working fluid" ) + self.project_latitude = self.ParameterDict[self.project_latitude.Name] = floatParameter( + "Project Latitude", + UnitType=Units.NONE, + CurrentUnits=Units.NONE, + PreferredUnits=Units.NONE, + Min=-90, + Max=90, + ToolTipText="Latitude of the project location." + ) + self.project_longitude = self.ParameterDict[self.project_longitude.Name] = floatParameter( + "Project Longitude", + UnitType=Units.NONE, + CurrentUnits=Units.NONE, + PreferredUnits=Units.NONE, + Min=-180, + Max=180, + ToolTipText="Longitude of the project location." + ) + + # local variable initialization self.setinjectionpressurefixed = False sclass = str(__class__).replace(" Date: Tue, 28 Apr 2026 10:12:32 -0700 Subject: [PATCH 2/3] Add Project Latitude/Longitude to Fervo_Project_Cape-{5,6} --- tests/examples/Fervo_Project_Cape-5.out | 8 ++++---- tests/examples/Fervo_Project_Cape-5.txt | 3 +++ tests/examples/Fervo_Project_Cape-6.out | 8 ++++---- tests/examples/Fervo_Project_Cape-6.txt | 3 +++ 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/examples/Fervo_Project_Cape-5.out b/tests/examples/Fervo_Project_Cape-5.out index c1183346b..2d99bfc8b 100644 --- a/tests/examples/Fervo_Project_Cape-5.out +++ b/tests/examples/Fervo_Project_Cape-5.out @@ -4,10 +4,10 @@ Simulation Metadata ---------------------- - GEOPHIRES Version: 3.12.1 - Simulation Date: 2026-04-01 - Simulation Time: 10:35 - Calculation Time: 1.788 sec + GEOPHIRES Version: 3.13.4 + Simulation Date: 2026-04-28 + Simulation Time: 09:51 + Calculation Time: 1.810 sec ***SUMMARY OF RESULTS*** diff --git a/tests/examples/Fervo_Project_Cape-5.txt b/tests/examples/Fervo_Project_Cape-5.txt index 1b80f12eb..887b04fac 100644 --- a/tests/examples/Fervo_Project_Cape-5.txt +++ b/tests/examples/Fervo_Project_Cape-5.txt @@ -120,3 +120,6 @@ Maximum Drawdown, 0.0025, -- This value represents the fractional drop in produc # ***************************** Maximum Temperature, 500 Time steps per year, 12 + +Project Latitude, 38.50619639648534 +Project Longitude, -112.91815591746716 diff --git a/tests/examples/Fervo_Project_Cape-6.out b/tests/examples/Fervo_Project_Cape-6.out index 93f566a2e..cd994b639 100644 --- a/tests/examples/Fervo_Project_Cape-6.out +++ b/tests/examples/Fervo_Project_Cape-6.out @@ -4,10 +4,10 @@ Simulation Metadata ---------------------- - GEOPHIRES Version: 3.12.1 - Simulation Date: 2026-04-01 - Simulation Time: 10:35 - Calculation Time: 1.793 sec + GEOPHIRES Version: 3.13.4 + Simulation Date: 2026-04-28 + Simulation Time: 09:51 + Calculation Time: 1.860 sec ***SUMMARY OF RESULTS*** diff --git a/tests/examples/Fervo_Project_Cape-6.txt b/tests/examples/Fervo_Project_Cape-6.txt index 31229fbb8..c34ceb352 100644 --- a/tests/examples/Fervo_Project_Cape-6.txt +++ b/tests/examples/Fervo_Project_Cape-6.txt @@ -116,3 +116,6 @@ Maximum Drawdown, 0.0025, -- This value represents the fractional drop in produc # ***************************** Maximum Temperature, 500 Time steps per year, 12 + +Project Latitude, 38.50619639648534 +Project Longitude, -112.91815591746716 From 68062ec8843833a0240234990d6aa1e474101f21 Mon Sep 17 00:00:00 2001 From: softwareengineerprogrammer <4056124+softwareengineerprogrammer@users.noreply.github.com> Date: Tue, 28 Apr 2026 10:24:02 -0700 Subject: [PATCH 3/3] add project lat/long to example8 (cornell) --- tests/examples/example8.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/examples/example8.txt b/tests/examples/example8.txt index 3e1dceaab..b1258c59b 100644 --- a/tests/examples/example8.txt +++ b/tests/examples/example8.txt @@ -43,6 +43,9 @@ Surface Temperature,20, ---[deg.C] Ambient Temperature,20, ---[deg.C] Electricity Rate,0.1, ---Electricity rate for pumping power [$/kWh] +Project Latitude, 42.441977082209235, -- Estimated location; https://www.google.com/maps/search/?api=1&query=42.441977082209235,76.43242140337269 +Project Longitude, -76.43242140337269 + ***FINANCIAL PARAMETERS*** ************************** Plant Lifetime,30, ---[years]