Skip to content

Commit 9f778d9

Browse files
Add Project Latitude/Longitude parameters to SurfacePlant
1 parent ed0bccb commit 9f778d9

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

src/geophires_x/SurfacePlant.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,26 @@ def __init__(self, model: Model):
472472
ToolTipText="Dynamic viscosity of the working fluid"
473473
)
474474

475+
self.project_latitude = self.ParameterDict[self.project_latitude.Name] = floatParameter(
476+
"Project Latitude",
477+
UnitType=Units.NONE,
478+
CurrentUnits=Units.NONE,
479+
PreferredUnits=Units.NONE,
480+
Min=-90,
481+
Max=90,
482+
ToolTipText="Latitude of the project location."
483+
)
484+
self.project_longitude = self.ParameterDict[self.project_longitude.Name] = floatParameter(
485+
"Project Longitude",
486+
UnitType=Units.NONE,
487+
CurrentUnits=Units.NONE,
488+
PreferredUnits=Units.NONE,
489+
Min=-180,
490+
Max=180,
491+
ToolTipText="Longitude of the project location."
492+
)
493+
494+
475495
# local variable initialization
476496
self.setinjectionpressurefixed = False
477497
sclass = str(__class__).replace("<class \'", "")

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,24 @@
13501350
"minimum": 0.0,
13511351
"maximum": 1
13521352
},
1353+
"Project Latitude": {
1354+
"description": "Latitude of the project location.",
1355+
"type": "number",
1356+
"units": null,
1357+
"category": "Surface Plant",
1358+
"default": 0.0,
1359+
"minimum": -90,
1360+
"maximum": 90
1361+
},
1362+
"Project Longitude": {
1363+
"description": "Longitude of the project location.",
1364+
"type": "number",
1365+
"units": null,
1366+
"category": "Surface Plant",
1367+
"default": 0.0,
1368+
"minimum": -180,
1369+
"maximum": 180
1370+
},
13531371
"Dead-state Pressure": {
13541372
"description": "",
13551373
"type": "number",

0 commit comments

Comments
 (0)