RS2Scripting 11.23.0.dev1__py3-none-any.whl → 11.23.0.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {RS2Scripting-11.23.0.dev1.dist-info → RS2Scripting-11.23.0.dev3.dist-info}/METADATA +1 -1
- {RS2Scripting-11.23.0.dev1.dist-info → RS2Scripting-11.23.0.dev3.dist-info}/RECORD +22 -22
- rs2/interpreter/BoltResult.py +3 -3
- rs2/interpreter/CompositeResult.py +11 -10
- rs2/interpreter/{InterpreterModelProxy.py → InterpreterModel.py} +92 -161
- rs2/interpreter/JointResult.py +2 -2
- rs2/interpreter/LinerResult.py +2 -2
- rs2/interpreter/MeshResults.py +1 -1
- rs2/interpreter/RS2Interpreter.py +4 -4
- rs2/modeler/{ModelProxy.py → Model.py} +61 -65
- rs2/modeler/RS2Modeler.py +4 -4
- rs2/modeler/properties/material/hydraulic/Hydraulic.py +1 -1
- rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +3 -0
- rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +1 -1
- rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +1 -1
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +1 -1
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +1 -1
- {RS2Scripting-11.23.0.dev1.dist-info → RS2Scripting-11.23.0.dev3.dist-info}/License.txt +0 -0
- {RS2Scripting-11.23.0.dev1.dist-info → RS2Scripting-11.23.0.dev3.dist-info}/WHEEL +0 -0
- {RS2Scripting-11.23.0.dev1.dist-info → RS2Scripting-11.23.0.dev3.dist-info}/top_level.txt +0 -0
- /rs2/modeler/properties/{ShearNormalFunctionProxy.py → ShearNormalFunction.py} +0 -0
- /rs2/modeler/properties/material/{MaterialPropertyProxy.py → MaterialProperty.py} +0 -0
|
@@ -4,22 +4,22 @@ rs2/_common/ProxyObject.py,sha256=6c6AJPTTAR7dSBowNhw2OzizAFNHixkRy8sQRv8gqlU,47
|
|
|
4
4
|
rs2/_common/Units.py,sha256=T0JYsYuxtc2b59_I83GztMETmssqOXI-oQ-KREfgMm8,202
|
|
5
5
|
rs2/_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
rs2/_common/documentProxy.py,sha256=W1a2uezHNIG0VXjF1IODN680j0q-hzAH2WEwe0xCKW8,182
|
|
7
|
-
rs2/interpreter/BoltResult.py,sha256=
|
|
8
|
-
rs2/interpreter/CompositeResult.py,sha256=
|
|
7
|
+
rs2/interpreter/BoltResult.py,sha256=hspIW08yEqH7nXwyvagPsX8SKU_A--wCeLotapvSePw,1994
|
|
8
|
+
rs2/interpreter/CompositeResult.py,sha256=IvCxvSJvBwe1fn_ZQhN3823RUIWDTyWbjxyACszPijc,896
|
|
9
9
|
rs2/interpreter/HistoryQueryResults.py,sha256=7HjZL8mLqNW-apVOhY42Jxo-uMFWzTH_meAwjuEXBMg,956
|
|
10
10
|
rs2/interpreter/InterpreterEnums.py,sha256=LLf6L3t4EdlqTAvV6yEpwGyZTd3Ph-perIKyfLfRbC4,5468
|
|
11
11
|
rs2/interpreter/InterpreterGraphEnums.py,sha256=EzhwBih2TC7Us5NY2GTL6W0_7wsIWi1NDv16Jjl6AC8,1757
|
|
12
|
-
rs2/interpreter/
|
|
13
|
-
rs2/interpreter/JointResult.py,sha256=
|
|
14
|
-
rs2/interpreter/LinerResult.py,sha256=
|
|
12
|
+
rs2/interpreter/InterpreterModel.py,sha256=7hqSRzTQxQp0awQJ9Y3k_ZF-5fcZy1gPMhROkmTcQN8,12964
|
|
13
|
+
rs2/interpreter/JointResult.py,sha256=vW04g5hdvkbWaAew6tNmCSeNp-1ecRyIjs_DhbGiJP4,937
|
|
14
|
+
rs2/interpreter/LinerResult.py,sha256=yZpw6ceJNYGDeu8a4iAHJPYFtKeN0xDRDwgmMT2TKE8,1457
|
|
15
15
|
rs2/interpreter/MaterialQueryResults.py,sha256=xlHpPQ0VvysyPkJekP6OU0HPJlSUBo0HEHIvFgZHvUI,2099
|
|
16
|
-
rs2/interpreter/MeshResults.py,sha256=
|
|
17
|
-
rs2/interpreter/RS2Interpreter.py,sha256=
|
|
16
|
+
rs2/interpreter/MeshResults.py,sha256=Chwg2Tp7cYuhSpeEmR96TCXUgsdevidWHBI7JQ9yIsI,333
|
|
17
|
+
rs2/interpreter/RS2Interpreter.py,sha256=JOtwxV_EMBBhJwi57HhyOF1rBH1VeGI_U65VVLf6siM,2998
|
|
18
18
|
rs2/interpreter/TimeQueryResults.py,sha256=uZxpJQsRsEY4c2nkTs4NYl4LFVAe7MK2AVKZb2UGohg,4231
|
|
19
19
|
rs2/interpreter/UtilityResult.py,sha256=6VsLAdwxXuXyR7a7yAJ-6axxSqSURk92HDDVnyPcZsU,500
|
|
20
20
|
rs2/interpreter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
rs2/modeler/
|
|
22
|
-
rs2/modeler/RS2Modeler.py,sha256=
|
|
21
|
+
rs2/modeler/Model.py,sha256=pK-8GRjMh29KcWuWwJi2n0J-dCsfKhB22Asj7bo4-tg,14875
|
|
22
|
+
rs2/modeler/RS2Modeler.py,sha256=vISeaUuktlqG4wMPmXvUs1YgB7LIc2m7eoAgY5IF0DQ,2994
|
|
23
23
|
rs2/modeler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py,sha256=HpsdM0TBPgZ_wfwyC0pY87PnFZWbbwSBWpwqh8vzBQo,1475
|
|
25
25
|
rs2/modeler/properties/AbsoluteStageFactorInterface.py,sha256=QM0T-oJUoSzTXIoExRGvg6avEsmNRoazKsUE_gv1IXI,2382
|
|
@@ -29,7 +29,7 @@ rs2/modeler/properties/MaterialJoint.py,sha256=PHs9oGfNoQG8pr6y8WnFyt9gDu_Qovfgw
|
|
|
29
29
|
rs2/modeler/properties/MaterialJointOptions.py,sha256=8Tf1MZZ7nEN581Abq16nX6kLISP65KgsVsyn-E7ICQM,1806
|
|
30
30
|
rs2/modeler/properties/PropertyEnums.py,sha256=CaLg0H6OM90BIB3mM2kzhy1Q0k8JEX-5f5ujAaZuSQI,15313
|
|
31
31
|
rs2/modeler/properties/RelativeStageFactorInterface.py,sha256=ijkFvOQbZWEAT1Ecc8nFx80iQAvAAFj7pzZrPiZzs2I,2702
|
|
32
|
-
rs2/modeler/properties/
|
|
32
|
+
rs2/modeler/properties/ShearNormalFunction.py,sha256=zDI6jm7X_tebNa-GSquGKuNR5J6BSWqXNoVYHv6DG6w,2551
|
|
33
33
|
rs2/modeler/properties/SnowdenAnisotropicFunction.py,sha256=0_65PkquiDTvxhs03tSJZQhwG2fgHHXjgx7_3Ss-J0w,3151
|
|
34
34
|
rs2/modeler/properties/StructuralInterface.py,sha256=IbsTskaZJA_1kf8vZo4RkjZAwDmsKMvOpgfS0C-qJ6U,1957
|
|
35
35
|
rs2/modeler/properties/UserDefinedWaterMode.py,sha256=1LlVp4e3eUflQ5RFEJIcjna79kyZweOwOv-afwJrQ7I,1284
|
|
@@ -61,7 +61,7 @@ rs2/modeler/properties/liner/ReinforcedConcrete.py,sha256=uP-fMC5mKsWrn5tIxf22Zh
|
|
|
61
61
|
rs2/modeler/properties/liner/StandardBeam.py,sha256=E6TlKqybZJbCdh-k2KEsbY0ljSofw8Te5EvMWZUIMLY,17424
|
|
62
62
|
rs2/modeler/properties/liner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
rs2/modeler/properties/material/InitialConditions.py,sha256=7NcB11DhNJ8g3FSXCeYr2kQK4zcJZlBqq92PCzbRSGU,9142
|
|
64
|
-
rs2/modeler/properties/material/
|
|
64
|
+
rs2/modeler/properties/material/MaterialProperty.py,sha256=7f2iHM6m4K-rrf7wqIM_FHUOzEAIRoMjqRABv2cOx2c,3054
|
|
65
65
|
rs2/modeler/properties/material/StageFactors.py,sha256=JP70Ow79AKra3yrQpNGFnCOdWk9cGWaWV2HQguS9pcc,6165
|
|
66
66
|
rs2/modeler/properties/material/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
rs2/modeler/properties/material/datum/BaseDatum.py,sha256=t4DlusPp6zYfmgIQOCQ--LtEiBkygCR8ipQCfZ7V0KI,949
|
|
@@ -69,8 +69,8 @@ rs2/modeler/properties/material/datum/Datum.py,sha256=uAjFf1GKP4FcClricpPn0zZmei
|
|
|
69
69
|
rs2/modeler/properties/material/datum/PeakResidualDatum.py,sha256=mt5pO3q5quq0UMCEPZyDJLlnvewAjX8HYLLn7Uqg-Dw,1531
|
|
70
70
|
rs2/modeler/properties/material/datum/SimpleDatum.py,sha256=J9CpDpY3UGmDYzO6RhAbZcReCOfG3JzEwD86i_tgXN4,773
|
|
71
71
|
rs2/modeler/properties/material/datum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
72
|
-
rs2/modeler/properties/material/hydraulic/Hydraulic.py,sha256=
|
|
73
|
-
rs2/modeler/properties/material/hydraulic/StaticGroundwater.py,sha256=
|
|
72
|
+
rs2/modeler/properties/material/hydraulic/Hydraulic.py,sha256=Spb0hRzljC1s5JJx6fL1IMRZForsALh2qcjasj0j_D8,2559
|
|
73
|
+
rs2/modeler/properties/material/hydraulic/StaticGroundwater.py,sha256=Hs5GzrX-cOGZAEzUdiMhUh6zhH2-tVdWqvWqcKC_nRo,4322
|
|
74
74
|
rs2/modeler/properties/material/hydraulic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py,sha256=egniL7URWGMkhDuRJUdwoYtUfZEEtymjiXjupwdPEYo,5922
|
|
76
76
|
rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py,sha256=T0HHiFgxJB4jSoOarcYKP9G9X70aNfJq9zVUGSIo9As,2659
|
|
@@ -141,7 +141,7 @@ rs2/modeler/properties/material/strength/VerticalStressRatio.py,sha256=OH0JKEClw
|
|
|
141
141
|
rs2/modeler/properties/material/strength/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
142
142
|
rs2/modeler/properties/material/thermal/Thermal.py,sha256=Tdhj9Yy_15F-6TRMvk6Ndw6N5EY6OpJDmwAED013gPU,4624
|
|
143
143
|
rs2/modeler/properties/material/thermal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
|
-
rs2/modeler/properties/material/thermal/conductivity/Conductivity.py,sha256=
|
|
144
|
+
rs2/modeler/properties/material/thermal/conductivity/Conductivity.py,sha256=ghX8mZuV9TJDVunD3Ag38Tcn9xWO6NB-0X-Rt-u77yY,1550
|
|
145
145
|
rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py,sha256=joHkJpIp5qJapbpfEjoCNTfOeB9KZbnUyuLYIsm0oQ8,1678
|
|
146
146
|
rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py,sha256=5jE6xHfr7VSETkcfLu6aj7lN1wK5ZKUuWZqv6Nlmt7U,2103
|
|
147
147
|
rs2/modeler/properties/material/thermal/conductivity/Derives.py,sha256=qB1bBJAZYejzoSkOhrz40ZNBTAX31I--8nvOJF4NyFA,779
|
|
@@ -151,19 +151,19 @@ rs2/modeler/properties/material/thermal/conductivity/Tabular.py,sha256=9YxNddxSg
|
|
|
151
151
|
rs2/modeler/properties/material/thermal/conductivity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
152
152
|
rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py,sha256=Ro2lcuxFh2PvGQyqyCtknGGr5tHYkSkRlX3RYnpOWSk,2349
|
|
153
153
|
rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py,sha256=2VoKmyDxsDgk077-ojrFp_VsZ9o1mXwNmmoojFcvZZE,2281
|
|
154
|
-
rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py,sha256=
|
|
154
|
+
rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py,sha256=fLkrJD2479ET-UM5cZM2GBLIP7lWzr0f90XVoInDL2A,1239
|
|
155
155
|
rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py,sha256=Wk-kaAhtbTQMvM3hHqd054jn3w5cT51qs0fF8S5cQGM,1218
|
|
156
156
|
rs2/modeler/properties/material/thermal/heatcapacity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
157
157
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py,sha256=9nCQy4N3JFoG2kKvXZLn3L7YOEC3NrLQGlWQ7MGW17o,730
|
|
158
158
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py,sha256=pTeQCNvpv9KDY6PvpfxWRBw3W5HG8xZRoAeJbWUf5x0,1793
|
|
159
|
-
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py,sha256
|
|
159
|
+
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py,sha256=w-4U-kDNrZ--6i0zevKgJDPGrph_9oWhWWTMltsMQlM,1426
|
|
160
160
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py,sha256=YQBgKHdSCsRenDRu1sAizCFZjFdLrrSKFuFrH9vrztQ,1501
|
|
161
161
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
162
162
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py,sha256=VLsn66kichFIo6gDEAPhl0GVv-XIPr-t9wTLhhZCIOE,1151
|
|
163
163
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py,sha256=ROqhE3DGzFutIYgNZzHrgrelD75Olg69l0mClGzwAWs,1275
|
|
164
164
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py,sha256=R66IgVCDyCy62xrYjisU11AYe6FajXdJEK3tOBk2sHY,921
|
|
165
165
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py,sha256=2zqNiN7kix9uxneCZzAwQuwnouQjEVK7QKEJGAZHvdo,1660
|
|
166
|
-
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py,sha256=
|
|
166
|
+
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py,sha256=K0eMyootJKZIYfVyacpeg4dKEsK9es5XwqGhmHnYKnI,2394
|
|
167
167
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py,sha256=R8Yd1sPfgdRNPvAcqQYGVyWGYxWNeQXeGMA4g798zPs,815
|
|
168
168
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
169
169
|
rs2/modeler/properties/pile/Beam.py,sha256=VljEyMqHGdEDLFqL7BerXUrLvt7L8t_fHnH0Oaq085k,1460
|
|
@@ -178,8 +178,8 @@ rs2/modeler/properties/pile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
178
178
|
rs2/utilities/ApplicationManager.py,sha256=u2GS_nW6uJcBcOc_CN5yy1DaBU5CF3yOtFGpJC7tdE4,2586
|
|
179
179
|
rs2/utilities/ColorPicker.py,sha256=nOHwCHtn8p3KkVC-GSpa38AOhRh2urQVE3brViH3vzE,2534
|
|
180
180
|
rs2/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
181
|
-
RS2Scripting-11.23.0.
|
|
182
|
-
RS2Scripting-11.23.0.
|
|
183
|
-
RS2Scripting-11.23.0.
|
|
184
|
-
RS2Scripting-11.23.0.
|
|
185
|
-
RS2Scripting-11.23.0.
|
|
181
|
+
RS2Scripting-11.23.0.dev3.dist-info/License.txt,sha256=_OkJXIBSGMEg07z5G3WiNn3yWOvhXK___X7MHTWR17E,1077
|
|
182
|
+
RS2Scripting-11.23.0.dev3.dist-info/METADATA,sha256=qzkV_SmY2RbGWORwoktiZnXhaGCAw02QYjSujsBGejM,9688
|
|
183
|
+
RS2Scripting-11.23.0.dev3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
184
|
+
RS2Scripting-11.23.0.dev3.dist-info/top_level.txt,sha256=9QT-lM7XOqDZtjDEtW-lpH9z4TZPnuq4_4rYcR1W8jM,4
|
|
185
|
+
RS2Scripting-11.23.0.dev3.dist-info/RECORD,,
|
rs2/interpreter/BoltResult.py
CHANGED
|
@@ -32,7 +32,7 @@ class BoltForceDisplacementResult:
|
|
|
32
32
|
ResetInvalid.validate(self)
|
|
33
33
|
|
|
34
34
|
class BoltResult:
|
|
35
|
-
def __init__(self, entity_id, entity_data, yielding_results, force_displacement_results):
|
|
35
|
+
def __init__(self, entity_id, entity_data, yielding_results: BoltYieldingResult, force_displacement_results: BoltForceDisplacementResult):
|
|
36
36
|
if len(entity_data) == 0 or len(entity_data[0]) == 0:
|
|
37
37
|
assert False, 'location not defined'
|
|
38
38
|
return
|
|
@@ -44,6 +44,6 @@ class BoltResult:
|
|
|
44
44
|
self.start_y = start_y
|
|
45
45
|
self.end_x = end_x
|
|
46
46
|
self.end_y = end_y
|
|
47
|
-
self.yielding_results = yielding_results
|
|
48
|
-
self.force_displacement_results = force_displacement_results
|
|
47
|
+
self.yielding_results: BoltYieldingResult = yielding_results
|
|
48
|
+
self.force_displacement_results: BoltForceDisplacementResult = force_displacement_results
|
|
49
49
|
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
from rs2.interpreter.LinerResult import LinerResult
|
|
2
|
+
from rs2.interpreter.JointResult import JointResult
|
|
2
3
|
|
|
3
4
|
class PileResult:
|
|
4
|
-
def __init__(self, entity_id, joint_result, liner_result):
|
|
5
|
+
def __init__(self, entity_id, joint_result: JointResult, liner_result: LinerResult):
|
|
5
6
|
self.entity_id = entity_id
|
|
6
|
-
self.joint_result = joint_result
|
|
7
|
-
self.liner_result = liner_result
|
|
7
|
+
self.joint_result: JointResult = joint_result
|
|
8
|
+
self.liner_result: LinerResult = liner_result
|
|
8
9
|
|
|
9
10
|
class CompositeResult:
|
|
10
|
-
def __init__(self, entity_id, joint_result, liner_result):
|
|
11
|
+
def __init__(self, entity_id, joint_result: JointResult, liner_result: LinerResult):
|
|
11
12
|
self.entity_id = entity_id
|
|
12
|
-
self.joint_result = joint_result
|
|
13
|
-
self.liner_result = liner_result
|
|
13
|
+
self.joint_result: JointResult = joint_result
|
|
14
|
+
self.liner_result: LinerResult = liner_result
|
|
14
15
|
|
|
15
16
|
class StructuralResult:
|
|
16
|
-
def __init__(self, entity_id, joint_result, liner_result):
|
|
17
|
+
def __init__(self, entity_id, joint_result: JointResult, liner_result: LinerResult):
|
|
17
18
|
self.entity_id = entity_id
|
|
18
|
-
self.joint_result = joint_result
|
|
19
|
-
self.liner_result = liner_result
|
|
19
|
+
self.joint_result: JointResult = joint_result
|
|
20
|
+
self.liner_result: LinerResult = liner_result
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
@@ -11,7 +11,7 @@ from rs2.interpreter.LinerResult import *
|
|
|
11
11
|
from rs2.interpreter.BoltResult import*
|
|
12
12
|
from rs2.interpreter.CompositeResult import*
|
|
13
13
|
from rs2.interpreter.MaterialQueryResults import *
|
|
14
|
-
class
|
|
14
|
+
class Model(ProxyObject):
|
|
15
15
|
"""
|
|
16
16
|
:ref:`Model Example`
|
|
17
17
|
"""
|
|
@@ -25,7 +25,10 @@ class ModelProxy(ProxyObject):
|
|
|
25
25
|
|
|
26
26
|
def close(self):
|
|
27
27
|
'''
|
|
28
|
-
|
|
28
|
+
:ref:`Model Example`
|
|
29
|
+
|
|
30
|
+
| Closes the model
|
|
31
|
+
|
|
29
32
|
'''
|
|
30
33
|
return self._callFunction('close', [])
|
|
31
34
|
|
|
@@ -44,23 +47,26 @@ class ModelProxy(ProxyObject):
|
|
|
44
47
|
|
|
45
48
|
def save(self):
|
|
46
49
|
'''
|
|
47
|
-
|
|
50
|
+
:ref:`Model Example`
|
|
51
|
+
|
|
52
|
+
| Saves the model
|
|
53
|
+
|
|
48
54
|
'''
|
|
49
55
|
return self._callFunction('save', [])
|
|
50
56
|
|
|
51
57
|
def SetActiveStage(self, stageNumber: int):
|
|
52
58
|
'''
|
|
53
|
-
|
|
59
|
+
:ref:`Material Query Example`
|
|
60
|
+
|
|
61
|
+
| Change model's active stage by its stage number
|
|
54
62
|
'''
|
|
55
63
|
return self._callFunction('SetActiveStage', [stageNumber])
|
|
56
64
|
|
|
57
65
|
def SetResultType(self, resultType: ExportResultType) -> list[dict]:
|
|
58
66
|
"""
|
|
59
|
-
|
|
67
|
+
:ref:`Get Mesh Results Example`
|
|
60
68
|
|
|
61
|
-
|
|
62
|
-
resultType (ExportResultType): Takes an enum of type ExportResultType representing the desired
|
|
63
|
-
export option for mesh results.
|
|
69
|
+
| Sets the export result type for your model.
|
|
64
70
|
|
|
65
71
|
Raises:
|
|
66
72
|
ValueError: resultType must be an enum of type ExportResultType. Any other value will raise an error
|
|
@@ -70,33 +76,16 @@ class ModelProxy(ProxyObject):
|
|
|
70
76
|
|
|
71
77
|
def SetUserDefinedResultType(self, resultName: str) -> list[dict]:
|
|
72
78
|
"""
|
|
73
|
-
Sets the export result type to the user defined result type name.
|
|
74
|
-
|
|
75
|
-
Args:
|
|
76
|
-
resultName (str): Takes the name of the user defined export option to generate mesh results for.
|
|
79
|
+
| Sets the export result type to the user defined result type name.
|
|
77
80
|
|
|
78
81
|
"""
|
|
79
82
|
return self._callFunction('SetUserDefinedResultType', [resultName])
|
|
80
83
|
|
|
81
84
|
def GetMeshResults(self) -> MeshResults:
|
|
82
85
|
"""
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Returns:
|
|
86
|
-
| An object of type MeshResults. To extract the x-coordinate, y-coordinate or value from the returned data,
|
|
87
|
-
| please call the supported functions from the class:
|
|
88
|
-
| MeshResults.GetXCoordinate(index)
|
|
89
|
-
| MeshResults.GetYCoordinate(index)
|
|
90
|
-
| MeshResults.GetValue(index)
|
|
91
|
-
|
|
92
|
-
Example:
|
|
93
|
-
|
|
94
|
-
.. code-block:: python
|
|
86
|
+
:ref:`Get Mesh Results Example`
|
|
95
87
|
|
|
96
|
-
|
|
97
|
-
x_coordiante = results.GetXCoordinate(0)
|
|
98
|
-
y_coordinate = results.GetYCoordinate(0)
|
|
99
|
-
value = results.GetValue(0)
|
|
88
|
+
| Returns the mesh results at all nodes for your model.
|
|
100
89
|
|
|
101
90
|
"""
|
|
102
91
|
results = self._callFunction('GetMeshResults', [])
|
|
@@ -105,38 +94,14 @@ class ModelProxy(ProxyObject):
|
|
|
105
94
|
def GetHistoryQueryResults(self, hq_name: str, horizontal_axis: HistoryQueryGraphEnums.HorizontalAxisTypes, vertical_axis: HistoryQueryGraphEnums.VerticalAxisTypes,
|
|
106
95
|
stages: list[int]) -> dict[int, list[HistoryQueryResult]]:
|
|
107
96
|
"""
|
|
108
|
-
|
|
97
|
+
:ref:`History Query Example`
|
|
109
98
|
|
|
110
|
-
|
|
111
|
-
hq_name (str): Takes the name of the History Query Point.
|
|
112
|
-
horizontal_axis (HistoryQueryGraphEnums): Takes the horizontal axis to generate results for.
|
|
113
|
-
vertical_axis (HistoryQueryGraphEnums): Takes the vertical axis to generate results for.
|
|
114
|
-
stages (int): Takes the stages by their stage number for which results should be returned.
|
|
115
|
-
|
|
116
|
-
Returns:
|
|
117
|
-
| Returns a dictionary with key as stage number and value a List of HistoryQueryResult object.
|
|
118
|
-
| To extract the stage number, x-coordinate, y-coordinate, horizontal axis result and vertical axis result,
|
|
119
|
-
| please call the supported functions from the class:
|
|
120
|
-
|
|
121
|
-
* GetXCoordinate()
|
|
122
|
-
* GetYCoordinate()
|
|
123
|
-
* GetHorizontalAxisResult()
|
|
124
|
-
* GetVerticalAxisResult()
|
|
125
|
-
|
|
126
|
-
Example:
|
|
127
|
-
|
|
128
|
-
.. code-block:: python
|
|
129
|
-
|
|
130
|
-
results = model.GetHistoryQueryResults(params)
|
|
131
|
-
results_for_stage_1 = results[1]
|
|
132
|
-
x_coordiante = results_for_stage_1[0].GetXCoordinate()
|
|
133
|
-
y_coordinate = results_for_stage_1[0].GetYCoordinate()
|
|
134
|
-
horizontal_result = results_for_stage_1[0].GetHorizontalResult()
|
|
135
|
-
vertical_result = results_for_stage_1[0].GetVerticalResult()
|
|
99
|
+
| Returns a map of HistoryQueryResult for all input stages and history queries in your model.
|
|
136
100
|
|
|
137
101
|
Raises:
|
|
138
102
|
ValueError: horizontal_axis and vertical_axis must be an enum of type HistoryQueryGraphEnums.
|
|
139
103
|
Any other value will raise an error.
|
|
104
|
+
|
|
140
105
|
"""
|
|
141
106
|
map_data = self._callFunction('GetHistoryQueryResults', [hq_name, horizontal_axis.value, vertical_axis.value, stages])
|
|
142
107
|
structured_data = {}
|
|
@@ -153,35 +118,15 @@ class ModelProxy(ProxyObject):
|
|
|
153
118
|
vertical_axis: TimeQueryGraphEnums.VerticalAxisTypes
|
|
154
119
|
) -> dict[int, list[TimeQueryPointResults]]:
|
|
155
120
|
"""
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
Please note points that are over an excavation at specific stages will not have data returned at those locations.
|
|
121
|
+
:ref:`Time Query Example`
|
|
159
122
|
|
|
160
|
-
|
|
161
|
-
stages (list[int]): Takes the stages by their stage number for which results should be returned.
|
|
162
|
-
vertical_axis (TimeQueryGraphEnums): Takes the vertical axis to generate results for.
|
|
163
|
-
|
|
164
|
-
Returns:
|
|
165
|
-
| Returns a dictionary with key as stage number and value a list[TimeQueryPointResults] object.
|
|
166
|
-
| To extract the unique identifier, x-coordinate, y-coordinate, horizontal axis result and vertical axis result,
|
|
167
|
-
| please call the supported functions from the class:
|
|
168
|
-
|
|
169
|
-
* TimeQueryPointResults.GetUniqueIdentifier()
|
|
170
|
-
|
|
171
|
-
To get all the results for this query, please call:
|
|
123
|
+
| Returns a map of TimeQueryPointResults for all input stages and time query points in your model.
|
|
172
124
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
The above method returns list[QueryPointResult] for each node.
|
|
176
|
-
To get the x-coordiante, y-coordinate, dynamic stage time or value, please call:
|
|
177
|
-
|
|
178
|
-
* QueryPointResult.GetXCoordinate()
|
|
179
|
-
* QueryPointResult.GetYCoordinate()
|
|
180
|
-
* QueryPointResult.GetStageTime()
|
|
181
|
-
* QueryPointResult.GetValue()
|
|
125
|
+
| Please note points that are over an excavation at specific stages will not have data returned at those locations.
|
|
182
126
|
|
|
183
127
|
Raises:
|
|
184
128
|
ValueError: vertical_axis must be an enum of type TimeQueryGraphEnums. Any other value will raise an error.
|
|
129
|
+
|
|
185
130
|
"""
|
|
186
131
|
map_data = self._callFunction('GetAllTimeQueryPointsResults',
|
|
187
132
|
[stages, vertical_axis.value])
|
|
@@ -202,37 +147,15 @@ class ModelProxy(ProxyObject):
|
|
|
202
147
|
apply_post_process_scaling: bool
|
|
203
148
|
) -> dict[int, list[TimeQueryLineResults]]:
|
|
204
149
|
"""
|
|
205
|
-
|
|
150
|
+
:ref:`Time Query Example`
|
|
206
151
|
|
|
207
|
-
|
|
152
|
+
| Returns a map of TimeQueryLineResults for all input stages and time query lines in your model.
|
|
208
153
|
|
|
209
|
-
|
|
210
|
-
stages (list[int]): Takes the stages by their stage number for which results should be returned.
|
|
211
|
-
vertical_axis (TimeQueryGraphEnums): Takes the vertical axis to generate results for.
|
|
212
|
-
apply_post_process_scaling (bool): Bool input taking whether post-process scaling should be applied or not
|
|
213
|
-
|
|
214
|
-
Returns:
|
|
215
|
-
| Returns a dictionary with key as stage number and value a list[TimeQueryLineResults] object.
|
|
216
|
-
| To extract the unique identifier, or list[QueryLineResult] representing all node objects for this query line,
|
|
217
|
-
| please call the supported functions from the class:
|
|
218
|
-
|
|
219
|
-
* TimeQueryLineResults.GetUniqueIdentifier()
|
|
220
|
-
* TimeQueryLineResults.GetAllNodeObjects()
|
|
221
|
-
|
|
222
|
-
| To get list[QueryPointResult] denoting all the node objects at a specific node of time query line, please call:
|
|
223
|
-
|
|
224
|
-
* QueryLineResult.GetNodeValues()
|
|
225
|
-
|
|
226
|
-
| The above method returns list[QueryPointResult] representing all the values at this node of the time query line.
|
|
227
|
-
| To get the x-coordiante, y-coordinate, dynamic stage time or value, please call:
|
|
228
|
-
|
|
229
|
-
* QueryPointResult.GetXCoordinate()
|
|
230
|
-
* QueryPointResult.GetYCoordinate()
|
|
231
|
-
* QueryPointResult.GetStageTime()
|
|
232
|
-
* QueryPointResult.GetValue()
|
|
154
|
+
| Please note points that are over an excavation at specific stages will not have data returned at those locations.
|
|
233
155
|
|
|
234
156
|
Raises:
|
|
235
157
|
ValueError: vertical_axis must be an enum of type TimeQueryGraphEnums. Any other value will raise an error.
|
|
158
|
+
|
|
236
159
|
"""
|
|
237
160
|
map_data = self._callFunction('GetAllTimeQueryLinesResults',
|
|
238
161
|
[stages, vertical_axis.value, apply_post_process_scaling])
|
|
@@ -249,49 +172,36 @@ class ModelProxy(ProxyObject):
|
|
|
249
172
|
return structured_data
|
|
250
173
|
|
|
251
174
|
def AddMaterialQuery(self, points: list[list[float]]) -> str:
|
|
252
|
-
"""
|
|
175
|
+
"""
|
|
176
|
+
:ref:`Material Query Example`
|
|
177
|
+
|
|
178
|
+
| Adds a material query point/line to your model using the specified coordinates in order.
|
|
253
179
|
|
|
254
|
-
Returns
|
|
255
|
-
A unique identifier for the newly added material query point/line.
|
|
180
|
+
| Returns a unique identifier for the newly added material query point/line.
|
|
256
181
|
|
|
257
182
|
"""
|
|
258
183
|
return self._callFunction('AddMaterialQuery', [points])
|
|
259
184
|
|
|
260
185
|
def RemoveMaterialQuery(self, IDs_toRemove: list[str]) -> str:
|
|
261
|
-
"""
|
|
186
|
+
"""
|
|
187
|
+
:ref:`Material Query Example`
|
|
188
|
+
|
|
189
|
+
| Removes material query points or lines for provided list of IDs.
|
|
190
|
+
|
|
191
|
+
"""
|
|
262
192
|
return self._callFunction('RemoveMaterialQuery', [IDs_toRemove])
|
|
263
193
|
|
|
264
194
|
def GetMaterialQueryResults(self) -> list[MaterialQueryResults]:
|
|
265
195
|
"""
|
|
196
|
+
:ref:`Material Query Example`
|
|
266
197
|
|
|
267
|
-
| Returns the results for all the material queries defined in
|
|
198
|
+
| Returns the results for all the material queries defined in your model for active model stage and result type.
|
|
268
199
|
| To get results for a different stage, please call SetActiveStage(int stageNumber) before calling this function.
|
|
269
200
|
| To get results for a different result type, please call either before calling this function:
|
|
270
201
|
|
|
271
202
|
* SetResultType(InterpreterGraphEnums resultType)
|
|
272
203
|
* SetUserDefinedResultType("Your defined resultType name")
|
|
273
204
|
|
|
274
|
-
Returns:
|
|
275
|
-
| A list[MaterialQueryResults] of query results.
|
|
276
|
-
| To extract the Unique Identifier, Material ID for a specific material query object,
|
|
277
|
-
|
|
278
|
-
please call any of the supported functions from the class:
|
|
279
|
-
|
|
280
|
-
* MaterialQueryResults.GetUniqueIdentifier()
|
|
281
|
-
* MaterialQueryResults.GetMaterialID()
|
|
282
|
-
|
|
283
|
-
| To get all the results for this query, please call:
|
|
284
|
-
|
|
285
|
-
* MaterialQueryResults.GetAllValues()
|
|
286
|
-
|
|
287
|
-
| The above method returns list[QueryResult] for each result.
|
|
288
|
-
| To get the x-coordiante, y-coordinate, distance or value, please call:
|
|
289
|
-
|
|
290
|
-
* QueryResult.GetXCoordinate()
|
|
291
|
-
* QueryResult.GetYCoordinate()
|
|
292
|
-
* QueryResult.GetDistance()
|
|
293
|
-
* QueryResult.GetValue()
|
|
294
|
-
|
|
295
205
|
"""
|
|
296
206
|
all_material_query_data = self._callFunction('GetMaterialQueryResults', [])
|
|
297
207
|
all_mat_query_data_as_classObj = []
|
|
@@ -302,12 +212,13 @@ class ModelProxy(ProxyObject):
|
|
|
302
212
|
all_mat_query_data_as_classObj.append(MaterialQueryResults(*unpack_list_data))
|
|
303
213
|
return all_mat_query_data_as_classObj
|
|
304
214
|
|
|
305
|
-
|
|
215
|
+
def GetBoltResults (self, stages: list[int]) -> dict[int, list[BoltResult]]:
|
|
216
|
+
"""
|
|
217
|
+
:ref:`Support Bolt Results Example`
|
|
306
218
|
|
|
219
|
+
| Returns a map of BoltResult for all input stages and support bolt defined in your model.
|
|
307
220
|
|
|
308
|
-
|
|
309
|
-
self,
|
|
310
|
-
stages: list[int]) -> dict[int, list[BoltResult]]:
|
|
221
|
+
"""
|
|
311
222
|
map_data = self._callFunction('GetBoltResults', [stages])
|
|
312
223
|
structured_data = {}
|
|
313
224
|
for stage_idx, stage_data in map_data.items():
|
|
@@ -320,7 +231,8 @@ class ModelProxy(ProxyObject):
|
|
|
320
231
|
# displacement force
|
|
321
232
|
if len(entity_data) < 3 or len(entity_data[0]) <1 or len(entity_data[0][0]) < 4:
|
|
322
233
|
continue
|
|
323
|
-
|
|
234
|
+
if len(entity_data[1]) < 1 or len(entity_data[2]) < 1:
|
|
235
|
+
continue
|
|
324
236
|
for yeilding_vector in entity_data[1]:
|
|
325
237
|
yielding = BoltYieldingResult(*yeilding_vector)
|
|
326
238
|
yielding_results.append(yielding)
|
|
@@ -332,7 +244,7 @@ class ModelProxy(ProxyObject):
|
|
|
332
244
|
structured_data[stage_idx].append(bolt_result)
|
|
333
245
|
return structured_data
|
|
334
246
|
|
|
335
|
-
def
|
|
247
|
+
def _process_joint_data(self, entity_data, entity_name):
|
|
336
248
|
|
|
337
249
|
joint_element_results = []
|
|
338
250
|
for joint_vector in entity_data[1]:
|
|
@@ -342,7 +254,7 @@ class ModelProxy(ProxyObject):
|
|
|
342
254
|
joint_result = JointResult(entity_name, joint_element_results)
|
|
343
255
|
return joint_result
|
|
344
256
|
|
|
345
|
-
def
|
|
257
|
+
def _process_liner_data(self, entity_data, entity_name):
|
|
346
258
|
liner_element_results = []
|
|
347
259
|
|
|
348
260
|
for liner_vector in entity_data[0]:
|
|
@@ -351,52 +263,68 @@ class ModelProxy(ProxyObject):
|
|
|
351
263
|
liner_result = LinerResult(entity_name,liner_element_results)
|
|
352
264
|
return liner_result
|
|
353
265
|
|
|
354
|
-
def GetJointResults(
|
|
355
|
-
|
|
356
|
-
|
|
266
|
+
def GetJointResults(self, stages: list[int]) -> dict[int, list[JointResult]]:
|
|
267
|
+
"""
|
|
268
|
+
:ref:`Support Joint Results Example`
|
|
269
|
+
|
|
270
|
+
| Returns a map of JointResult for all input stages and support joint defined in your model.
|
|
357
271
|
|
|
272
|
+
"""
|
|
358
273
|
map_data = self._callFunction('GetJointResults', [stages])
|
|
359
274
|
structured_data = {}
|
|
360
275
|
for stage_idx, stage_data in map_data.items():
|
|
361
276
|
|
|
362
277
|
structured_data[stage_idx] = []
|
|
363
278
|
for entity_name, entity_data in stage_data.items():
|
|
364
|
-
joint_result = self.
|
|
279
|
+
joint_result = self._process_joint_data(entity_data, entity_name)
|
|
365
280
|
structured_data[stage_idx].append(joint_result)
|
|
366
281
|
|
|
367
282
|
return structured_data
|
|
368
283
|
|
|
369
|
-
def GetLinerResults(
|
|
370
|
-
|
|
371
|
-
|
|
284
|
+
def GetLinerResults(self, stages: list[int]) -> dict[int, list[LinerResult]]:
|
|
285
|
+
"""
|
|
286
|
+
:ref:`Support Liner Results Example`
|
|
287
|
+
|
|
288
|
+
| Returns a map of LinerResult for all input stages and support liner defined in your model.
|
|
372
289
|
|
|
290
|
+
"""
|
|
373
291
|
map_data = self._callFunction('GetLinerResults', [stages])
|
|
374
292
|
structured_data = {}
|
|
375
293
|
for stage_idx, stage_data in map_data.items():
|
|
376
294
|
|
|
377
295
|
structured_data[stage_idx] = []
|
|
378
296
|
for entity_name, entity_data in stage_data.items():
|
|
379
|
-
liner_result = self.
|
|
297
|
+
liner_result = self._process_liner_data(entity_data, entity_name)
|
|
380
298
|
structured_data[stage_idx].append(liner_result)
|
|
381
299
|
|
|
382
300
|
return structured_data
|
|
383
301
|
|
|
302
|
+
def GetPileResults(self, stages: list[int]) -> dict[int, list[PileResult]]:
|
|
303
|
+
"""
|
|
304
|
+
:ref:`Support Pile Results Example`
|
|
305
|
+
|
|
306
|
+
| Returns a map of PileResult for all input stages and support pile defined in your model.
|
|
384
307
|
|
|
385
|
-
|
|
386
|
-
self,
|
|
387
|
-
stages: list[int]) -> dict[int, list[PileResult]]:
|
|
308
|
+
"""
|
|
388
309
|
return self._get_composition_result('GetPileResults',PileResult, stages)
|
|
389
310
|
|
|
390
|
-
def GetCompositeResults(
|
|
391
|
-
|
|
392
|
-
|
|
311
|
+
def GetCompositeResults(self, stages: list[int]) -> dict[int, list[CompositeResult]]:
|
|
312
|
+
"""
|
|
313
|
+
:ref:`Support Composite Results Example`
|
|
314
|
+
|
|
315
|
+
| Returns a map of CompositeResult for all input stages and support composite defined in your model.
|
|
316
|
+
|
|
317
|
+
"""
|
|
393
318
|
return self._get_composition_result('GetCompositeResults',CompositeResult, stages)
|
|
394
319
|
|
|
395
|
-
def GetStructuralResults(
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
320
|
+
def GetStructuralResults(self, stages: list[int]) -> dict[int, list[StructuralResult]]:
|
|
321
|
+
"""
|
|
322
|
+
:ref:`Support Structural Results Example`
|
|
323
|
+
|
|
324
|
+
| Returns a map of StructuralResult for all input stages and support structural defined in your model.
|
|
399
325
|
|
|
326
|
+
"""
|
|
327
|
+
return self._get_composition_result('GetStructuralResults',StructuralResult, stages)
|
|
400
328
|
|
|
401
329
|
def _get_composition_result(
|
|
402
330
|
self,
|
|
@@ -409,16 +337,19 @@ class ModelProxy(ProxyObject):
|
|
|
409
337
|
for stage_idx, stage_data in map_data.items():
|
|
410
338
|
structured_data[stage_idx] = []
|
|
411
339
|
for entity_name, entity_data in stage_data.items():
|
|
412
|
-
liner_result = self.
|
|
413
|
-
joint_result = self.
|
|
340
|
+
liner_result = self._process_liner_data(entity_data, entity_name)
|
|
341
|
+
joint_result = self._process_joint_data(entity_data, entity_name)
|
|
414
342
|
composition_result = ResultType(entity_name,joint_result,liner_result)
|
|
415
343
|
structured_data[stage_idx].append(composition_result)
|
|
416
344
|
|
|
417
345
|
return structured_data
|
|
418
346
|
|
|
419
|
-
def getUnits(self):
|
|
347
|
+
def getUnits(self) -> Units:
|
|
420
348
|
'''
|
|
421
|
-
Get Units
|
|
349
|
+
:ref:`Get Model Units Example`
|
|
350
|
+
|
|
351
|
+
| Get Solid, Hydro and Thermal units for your model
|
|
352
|
+
|
|
422
353
|
'''
|
|
423
354
|
NUM_UNITS = 3
|
|
424
355
|
data = self._callFunction('getUnits', [])
|
|
@@ -429,6 +360,6 @@ class ModelProxy(ProxyObject):
|
|
|
429
360
|
|
|
430
361
|
def getCriticalSRF(self):
|
|
431
362
|
'''
|
|
432
|
-
Get Critical SRF
|
|
363
|
+
| Get Critical SRF
|
|
433
364
|
'''
|
|
434
365
|
return ResetInvalid.validate_double(self._callFunction('getCriticalSRF', []))
|
rs2/interpreter/JointResult.py
CHANGED
|
@@ -16,9 +16,9 @@ class JointElementResult:
|
|
|
16
16
|
ResetInvalid.validate(self)
|
|
17
17
|
|
|
18
18
|
class JointResult:
|
|
19
|
-
def __init__(self, entity_id, joint_element_results):
|
|
19
|
+
def __init__(self, entity_id, joint_element_results: JointElementResult):
|
|
20
20
|
self.entity_id = entity_id
|
|
21
|
-
self.joint_element_results = joint_element_results
|
|
21
|
+
self.joint_element_results: JointElementResult = joint_element_results
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
rs2/interpreter/LinerResult.py
CHANGED
|
@@ -28,6 +28,6 @@ class LinerElementResult:
|
|
|
28
28
|
ResetInvalid.validate(self)
|
|
29
29
|
|
|
30
30
|
class LinerResult:
|
|
31
|
-
def __init__(self, entity_id, liner_element_results):
|
|
31
|
+
def __init__(self, entity_id, liner_element_results: LinerElementResult):
|
|
32
32
|
self.entity_id = entity_id
|
|
33
|
-
self.liner_element_results = liner_element_results
|
|
33
|
+
self.liner_element_results: LinerElementResult = liner_element_results
|
rs2/interpreter/MeshResults.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from rsmessages.requestFormat import functionRequest
|
|
2
2
|
from rs2._common.Client import Client
|
|
3
3
|
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
4
|
-
from rs2.interpreter.
|
|
4
|
+
from rs2.interpreter.InterpreterModel import Model
|
|
5
5
|
import winreg
|
|
6
6
|
import time
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ class RS2Interpreter:
|
|
|
9
9
|
def __init__(self, host = 'localhost', port=60055):
|
|
10
10
|
self.client = Client(host, port)
|
|
11
11
|
|
|
12
|
-
def openFile(self, fileName : str) ->
|
|
12
|
+
def openFile(self, fileName : str) -> Model:
|
|
13
13
|
'''
|
|
14
14
|
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
15
15
|
|
|
@@ -21,8 +21,8 @@ class RS2Interpreter:
|
|
|
21
21
|
'''
|
|
22
22
|
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
23
23
|
modelObjectId = self.client.callFunction(request)
|
|
24
|
-
|
|
25
|
-
return
|
|
24
|
+
model = Model(self.client, modelObjectId)
|
|
25
|
+
return model
|
|
26
26
|
|
|
27
27
|
@classmethod
|
|
28
28
|
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
@@ -8,12 +8,12 @@ from rs2.modeler.properties.pile.Pile import PileProperty
|
|
|
8
8
|
from rs2.modeler.properties.StructuralInterface import StructuralInterfaceProperty
|
|
9
9
|
from rs2.modeler.properties.CompositeProperty import CompositeProperty
|
|
10
10
|
|
|
11
|
-
from rs2.modeler.properties.material.
|
|
12
|
-
from rs2.modeler.properties.
|
|
11
|
+
from rs2.modeler.properties.material.MaterialProperty import MaterialProperty
|
|
12
|
+
from rs2.modeler.properties.ShearNormalFunction import ShearNormalFunction
|
|
13
13
|
from rs2.modeler.properties.UserDefinedWaterMode import UserDefinedWaterMode
|
|
14
14
|
from rs2.modeler.properties.DiscreteFunction import DiscreteFunction
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Model(ProxyObject):
|
|
17
17
|
"""
|
|
18
18
|
:ref:`Model Example`
|
|
19
19
|
"""
|
|
@@ -26,9 +26,8 @@ class ModelProxy(ProxyObject):
|
|
|
26
26
|
return DocumentProxy(self._client, documentObjectID)
|
|
27
27
|
|
|
28
28
|
def getBoltPropertyByName(self, boltName : str) -> BoltProperty:
|
|
29
|
-
|
|
30
29
|
'''
|
|
31
|
-
Returns a Bolt Property object based on its name.
|
|
30
|
+
| Returns a Bolt Property object based on its name.
|
|
32
31
|
'''
|
|
33
32
|
|
|
34
33
|
boltObjectID = self._callFunction('getBoltPropertyByName', [boltName], keepReturnValueReference=True)
|
|
@@ -36,44 +35,42 @@ class ModelProxy(ProxyObject):
|
|
|
36
35
|
|
|
37
36
|
def getLinerPropertyByName(self, linerName : str) -> LinerProperty:
|
|
38
37
|
'''
|
|
39
|
-
Returns a Liner Property object based on its name.
|
|
38
|
+
| Returns a Liner Property object based on its name.
|
|
40
39
|
'''
|
|
41
40
|
linerObjectID = self._callFunction('getLinerPropertyByName', [linerName], keepReturnValueReference=True)
|
|
42
41
|
return LinerProperty(self._client, linerObjectID, self._documentProxy._ID)
|
|
43
42
|
|
|
44
43
|
def getJointPropertyByName(self, jointName : str) -> JointProperty:
|
|
45
44
|
'''
|
|
46
|
-
Returns a Joint Property object based on its name.
|
|
45
|
+
| Returns a Joint Property object based on its name.
|
|
47
46
|
'''
|
|
48
47
|
jointObjectID = self._callFunction('getJointPropertyByName', [jointName], keepReturnValueReference=True)
|
|
49
48
|
return JointProperty(self._client, jointObjectID, self._documentProxy._ID)
|
|
50
49
|
|
|
51
50
|
def getPilePropertyByName(self, pileName : str) -> PileProperty:
|
|
52
51
|
'''
|
|
53
|
-
Returns a Pile Property object based on its name.
|
|
52
|
+
| Returns a Pile Property object based on its name.
|
|
54
53
|
'''
|
|
55
54
|
pileObjectID = self._callFunction('getPilePropertyByName', [pileName], keepReturnValueReference=True)
|
|
56
55
|
return PileProperty(self._client, pileObjectID, self._documentProxy._ID)
|
|
57
56
|
|
|
58
57
|
def getStructuralInterfacePropertyByName(self, structuralName : str) -> StructuralInterfaceProperty:
|
|
59
58
|
'''
|
|
60
|
-
Returns a Structural Interface Property object based on its name.
|
|
59
|
+
| Returns a Structural Interface Property object based on its name.
|
|
61
60
|
'''
|
|
62
61
|
structuralInterfaceObjectID = self._callFunction('getStructuralPropertyByName', [structuralName], keepReturnValueReference=True)
|
|
63
62
|
return StructuralInterfaceProperty(self._client, structuralInterfaceObjectID, self._documentProxy._ID)
|
|
64
63
|
|
|
65
64
|
def getCompositeLinerPropertyByName(self, compositeName : str) -> CompositeProperty:
|
|
66
65
|
'''
|
|
67
|
-
Returns a Composite Liner Property object based on its name.
|
|
66
|
+
| Returns a Composite Liner Property object based on its name.
|
|
68
67
|
'''
|
|
69
68
|
compositeLinerObjectID = self._callFunction('getCompositePropertyByName', [compositeName], keepReturnValueReference=True)
|
|
70
69
|
return CompositeProperty(self._client, compositeLinerObjectID, self._documentProxy._ID)
|
|
71
|
-
|
|
72
|
-
|
|
73
70
|
|
|
74
71
|
def getMaterialPropertyByName(self, materialName : str) -> MaterialProperty:
|
|
75
72
|
'''
|
|
76
|
-
Returns a Material Property object based on its name.
|
|
73
|
+
| Returns a Material Property object based on its name.
|
|
77
74
|
'''
|
|
78
75
|
materialObjectID = self._callFunction('getMaterialPropertyByName', [materialName], keepReturnValueReference=True)
|
|
79
76
|
return MaterialProperty(self._client, materialObjectID, self._documentProxy._ID)
|
|
@@ -81,7 +78,7 @@ class ModelProxy(ProxyObject):
|
|
|
81
78
|
def getAllBoltProperties(self) -> list[BoltProperty]:
|
|
82
79
|
|
|
83
80
|
'''
|
|
84
|
-
Returns a list of all Bolt Property objects
|
|
81
|
+
| Returns a list of all Bolt Property objects
|
|
85
82
|
'''
|
|
86
83
|
activeBoltProperties = []
|
|
87
84
|
boltObjectIDList = self._callFunction('getAllBoltProperties', [], keepReturnValueReference=True)
|
|
@@ -91,7 +88,7 @@ class ModelProxy(ProxyObject):
|
|
|
91
88
|
|
|
92
89
|
def getAllLinerProperties(self) -> list[LinerProperty]:
|
|
93
90
|
'''
|
|
94
|
-
Returns a list of all Liner Property objects
|
|
91
|
+
| Returns a list of all Liner Property objects
|
|
95
92
|
'''
|
|
96
93
|
activeLinerProperties = []
|
|
97
94
|
linerObjectIDList = self._callFunction('getAllLinerProperties', [], keepReturnValueReference=True)
|
|
@@ -101,7 +98,7 @@ class ModelProxy(ProxyObject):
|
|
|
101
98
|
|
|
102
99
|
def getAllJointProperties(self) -> list[JointProperty]:
|
|
103
100
|
'''
|
|
104
|
-
Returns a list of all Joint Property objects
|
|
101
|
+
| Returns a list of all Joint Property objects
|
|
105
102
|
'''
|
|
106
103
|
activeJointProperties = []
|
|
107
104
|
jointObjectIDList = self._callFunction('getAllJointProperties', [], keepReturnValueReference=True)
|
|
@@ -111,7 +108,7 @@ class ModelProxy(ProxyObject):
|
|
|
111
108
|
|
|
112
109
|
def getAllPileProperties(self) -> list[PileProperty]:
|
|
113
110
|
'''
|
|
114
|
-
Returns a list of all Pile Property objects
|
|
111
|
+
| Returns a list of all Pile Property objects
|
|
115
112
|
'''
|
|
116
113
|
activePileProperties = []
|
|
117
114
|
pileObjectIDList = self._callFunction('getAllPileProperties', [], keepReturnValueReference=True)
|
|
@@ -121,7 +118,7 @@ class ModelProxy(ProxyObject):
|
|
|
121
118
|
|
|
122
119
|
def getAllStructuralInterfaceProperties(self) -> list[StructuralInterfaceProperty]:
|
|
123
120
|
'''
|
|
124
|
-
Returns a list of all Structural Interface Property objects
|
|
121
|
+
| Returns a list of all Structural Interface Property objects
|
|
125
122
|
'''
|
|
126
123
|
activeStructuralProperties = []
|
|
127
124
|
structuralObjectIDList = self._callFunction('getAllStructuralProperties', [], keepReturnValueReference=True)
|
|
@@ -131,7 +128,7 @@ class ModelProxy(ProxyObject):
|
|
|
131
128
|
|
|
132
129
|
def getAllCompositeLinerProperties(self) -> list[CompositeProperty]:
|
|
133
130
|
'''
|
|
134
|
-
Returns a list of all Composite Liner Property objects
|
|
131
|
+
| Returns a list of all Composite Liner Property objects
|
|
135
132
|
'''
|
|
136
133
|
activeCompositeProperties = []
|
|
137
134
|
compositeObjectIDList = self._callFunction('getAllCompositeProperties', [], keepReturnValueReference=True)
|
|
@@ -141,7 +138,7 @@ class ModelProxy(ProxyObject):
|
|
|
141
138
|
|
|
142
139
|
def getAllMaterialProperties(self) -> list[MaterialProperty]:
|
|
143
140
|
'''
|
|
144
|
-
Returns a list of all Material Property objects
|
|
141
|
+
| Returns a list of all Material Property objects
|
|
145
142
|
'''
|
|
146
143
|
activeMaterialProperties = []
|
|
147
144
|
materialObjectIDList = self._callFunction('getAllMaterialProperties', [], keepReturnValueReference=True)
|
|
@@ -151,7 +148,7 @@ class ModelProxy(ProxyObject):
|
|
|
151
148
|
|
|
152
149
|
def getShearNormalFunctions(self) -> list[ShearNormalFunction]:
|
|
153
150
|
'''
|
|
154
|
-
Returns a list of all shear normal functions
|
|
151
|
+
| Returns a list of all shear normal functions
|
|
155
152
|
'''
|
|
156
153
|
activeShearNormalFunctionProperties = []
|
|
157
154
|
shearNormalFunctionIDList = self._callFunction('getShearNormalFunctions', [], keepReturnValueReference=True)
|
|
@@ -161,85 +158,78 @@ class ModelProxy(ProxyObject):
|
|
|
161
158
|
|
|
162
159
|
def getShearNormalFunctionByName(self, shearNormalFunctionName : str) -> ShearNormalFunction:
|
|
163
160
|
'''
|
|
164
|
-
Returns a shear normal function object based on its name.
|
|
161
|
+
| Returns a shear normal function object based on its name.
|
|
165
162
|
'''
|
|
166
163
|
shearNormalFunctionObjectID = self._callFunction('getShearNormalFunctionByName', [shearNormalFunctionName], keepReturnValueReference=True)
|
|
167
164
|
return ShearNormalFunction(self._client, shearNormalFunctionObjectID)
|
|
168
165
|
|
|
169
166
|
def createNewShearNormalFunction(self, functionName):
|
|
170
167
|
'''
|
|
171
|
-
Creates a new shear normal function with the given name
|
|
168
|
+
| Creates a new shear normal function with the given name
|
|
172
169
|
'''
|
|
173
170
|
return self._callFunction('createNewShearNormalFunction', [functionName])
|
|
174
171
|
|
|
175
172
|
def deleteShearNormalFunction(self, functionName):
|
|
176
173
|
'''
|
|
177
|
-
Deletes a shear normal function with the given name
|
|
174
|
+
| Deletes a shear normal function with the given name
|
|
178
175
|
'''
|
|
179
176
|
return self._callFunction('deleteShearNormalFunction', [functionName])
|
|
180
177
|
|
|
181
178
|
def renameShearNormalFunction(self, oldName, newName):
|
|
182
179
|
'''
|
|
183
|
-
Renames a shear normal function with the given name
|
|
180
|
+
| Renames a shear normal function with the given name
|
|
184
181
|
'''
|
|
185
182
|
return self._callFunction('renameShearNormalFunction', [oldName, newName])
|
|
186
183
|
|
|
187
184
|
def getUserDefinedPermeabilityAndWaterContentMode(self, name : str) -> UserDefinedWaterMode:
|
|
188
185
|
'''
|
|
189
|
-
Returns a User Defined Water Mode object based on its name.
|
|
186
|
+
| Returns a User Defined Water Mode object based on its name.
|
|
190
187
|
'''
|
|
191
188
|
userDefinedWaterModeObjectID = self._callFunction('getUserDefinedWaterMode', [name], keepReturnValueReference=True)
|
|
192
189
|
return UserDefinedWaterMode(self._client, userDefinedWaterModeObjectID)
|
|
193
190
|
|
|
194
191
|
def createUserDefinedPermeabilityAndWaterContentMode(self, name : str) -> UserDefinedWaterMode:
|
|
195
192
|
'''
|
|
196
|
-
Creates a User Defined Water Mode object with the given name.
|
|
193
|
+
| Creates a User Defined Water Mode object with the given name.
|
|
197
194
|
'''
|
|
198
195
|
userDefinedWaterModeObjectID = self._callFunction('createUserDefinedWaterMode', [name], keepReturnValueReference=True)
|
|
199
196
|
return UserDefinedWaterMode(self._client, userDefinedWaterModeObjectID)
|
|
200
197
|
|
|
201
198
|
def deleteUserDefinedPermeabilityAndWaterContentMode(self, name : str):
|
|
202
199
|
'''
|
|
203
|
-
Deletes a User Defined Water Mode object with the given name.
|
|
200
|
+
| Deletes a User Defined Water Mode object with the given name.
|
|
204
201
|
'''
|
|
205
202
|
return self._callFunction('deleteUserDefinedWaterMode', [name])
|
|
206
203
|
|
|
207
204
|
def renameUserDefinedPermeabilityAndWaterContentMode(self, oldName : str, newName : str):
|
|
208
205
|
'''
|
|
209
|
-
Renames a User Defined Water Mode object with the given name.
|
|
206
|
+
| Renames a User Defined Water Mode object with the given name.
|
|
210
207
|
'''
|
|
211
208
|
return self._callFunction('renameUserDefinedWaterMode', [oldName, newName])
|
|
212
209
|
|
|
213
210
|
def AddHistoryQueryPoint(self, x: float, y: float, history_query_name: str):
|
|
214
211
|
'''
|
|
215
|
-
|
|
212
|
+
:ref:`History Query Example`
|
|
216
213
|
|
|
217
|
-
|
|
218
|
-
x (float): The x-coordinate value for the query point.
|
|
219
|
-
y (float): The y-coordinate value for the query point.
|
|
220
|
-
history_query_name (str): The label name for your query point.
|
|
214
|
+
| Add a new History Query point to your model with the specified coordinates and label name
|
|
221
215
|
|
|
222
216
|
'''
|
|
223
217
|
return self._callFunction('AddHistoryQueryPoint', [x, y, history_query_name])
|
|
224
|
-
|
|
225
218
|
|
|
226
219
|
def RemoveHistoryQueryPoint(self, history_query_name: str):
|
|
227
220
|
'''
|
|
228
|
-
|
|
221
|
+
:ref:`History Query Example`
|
|
229
222
|
|
|
230
|
-
|
|
231
|
-
history_query_name (str): The label name for your query point.
|
|
223
|
+
| Remove a History Query point from your model by label name.
|
|
232
224
|
|
|
233
225
|
'''
|
|
234
226
|
return self._callFunction('RemoveHistoryQueryPoint', [history_query_name])
|
|
235
227
|
|
|
236
228
|
def AddTimeQueryLine(self, points: list[list[float]], points_on_line: int) -> str:
|
|
237
229
|
'''
|
|
238
|
-
|
|
230
|
+
:ref:`Time Query Example`
|
|
239
231
|
|
|
240
|
-
|
|
241
|
-
points (list[list[float]]) : List of points making the time query line.
|
|
242
|
-
points_on_line (int) : Number of segments to evenly divide time query line
|
|
232
|
+
| Add a new Time Query Line to your model with the specified coordinates
|
|
243
233
|
|
|
244
234
|
Warning:
|
|
245
235
|
points_on_line must be between 1 and 10 inclusive.
|
|
@@ -249,38 +239,34 @@ class ModelProxy(ProxyObject):
|
|
|
249
239
|
|
|
250
240
|
def RemoveTimeQueryLine(self, IDs_toRemove: list[str]):
|
|
251
241
|
'''
|
|
252
|
-
|
|
242
|
+
:ref:`Time Query Example`
|
|
253
243
|
|
|
254
|
-
|
|
255
|
-
IDs_toRemove (list[str]): List of unique identifier for time query line(s) to remove.
|
|
244
|
+
| Removes Time Query Line(s) from your model using provided list of IDs.
|
|
256
245
|
|
|
257
246
|
'''
|
|
258
247
|
return self._callFunction('RemoveTimeQueryLine', [IDs_toRemove])
|
|
259
248
|
|
|
260
249
|
def AddTimeQueryPoint(self, x: float, y: float) -> str:
|
|
261
250
|
'''
|
|
262
|
-
|
|
251
|
+
:ref:`Time Query Example`
|
|
263
252
|
|
|
264
|
-
|
|
265
|
-
x (float) : x-coordinate of the time query line.
|
|
266
|
-
y (float) : y-coordinate of the time query line.
|
|
253
|
+
| Add a new Time Query Point to your model with the specified x and y coordinates
|
|
267
254
|
|
|
268
255
|
'''
|
|
269
256
|
return self._callFunction('AddTimeQueryPoint', [x, y])
|
|
270
257
|
|
|
271
258
|
def RemoveTimeQueryPoint(self, IDs_toRemove: list[str]):
|
|
272
259
|
'''
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
IDs_toRemove (list[str]): List of unique identifier for time query points(s) to remove.
|
|
260
|
+
:ref:`Time Query Example`
|
|
261
|
+
|
|
262
|
+
| Removes Time Query Point(s) from your model using provided list of IDs.
|
|
277
263
|
|
|
278
264
|
'''
|
|
279
265
|
return self._callFunction('RemoveTimeQueryPoint', [IDs_toRemove])
|
|
280
266
|
|
|
281
267
|
def compute(self):
|
|
282
268
|
'''
|
|
283
|
-
Saves the file if modified and then runs compute. Replaces any existing results.
|
|
269
|
+
| Saves the file if modified and then runs compute. Replaces any existing results.
|
|
284
270
|
|
|
285
271
|
Warning:
|
|
286
272
|
All objects retrieved from the interpreter for this file will be invalidated after this call.
|
|
@@ -297,7 +283,7 @@ class ModelProxy(ProxyObject):
|
|
|
297
283
|
|
|
298
284
|
def computeGroundWater(self):
|
|
299
285
|
'''
|
|
300
|
-
Saves the file if modified and then runs groundwater compute. Replaces any existing results.
|
|
286
|
+
| Saves the file if modified and then runs groundwater compute. Replaces any existing results.
|
|
301
287
|
|
|
302
288
|
Warning:
|
|
303
289
|
All objects retrieved from the interpreter for this file will be invalidated after this call.
|
|
@@ -313,13 +299,15 @@ class ModelProxy(ProxyObject):
|
|
|
313
299
|
|
|
314
300
|
def close(self):
|
|
315
301
|
'''
|
|
316
|
-
|
|
302
|
+
:ref:`Model Example`
|
|
303
|
+
|
|
304
|
+
| Closes the model
|
|
317
305
|
'''
|
|
318
306
|
return self._callFunction('close', [])
|
|
319
307
|
|
|
320
308
|
def saveAs(self, fileName : str):
|
|
321
309
|
'''
|
|
322
|
-
Saves the model using the given file name.
|
|
310
|
+
| Saves the model using the given file name.
|
|
323
311
|
|
|
324
312
|
Example:
|
|
325
313
|
|
|
@@ -332,13 +320,15 @@ class ModelProxy(ProxyObject):
|
|
|
332
320
|
|
|
333
321
|
def save(self):
|
|
334
322
|
'''
|
|
335
|
-
|
|
323
|
+
:ref:`Model Example`
|
|
324
|
+
|
|
325
|
+
| Saves the model
|
|
336
326
|
'''
|
|
337
327
|
return self._callFunction('save', [])
|
|
338
328
|
|
|
339
329
|
def getDiscreteFunctions(self) -> list[DiscreteFunction]:
|
|
340
330
|
'''
|
|
341
|
-
Returns a list of all discrete functions
|
|
331
|
+
| Returns a list of all discrete functions
|
|
342
332
|
'''
|
|
343
333
|
activeDiscreteFunctionProperties = []
|
|
344
334
|
discreteFunctionIDList = self._callFunction('getDiscreteFunctions', [], keepReturnValueReference=True)
|
|
@@ -348,31 +338,34 @@ class ModelProxy(ProxyObject):
|
|
|
348
338
|
|
|
349
339
|
def getDiscreteFunctionByName(self, discreteFunctionName : str) -> DiscreteFunction:
|
|
350
340
|
'''
|
|
351
|
-
Returns a discrete function object based on its name.
|
|
341
|
+
| Returns a discrete function object based on its name.
|
|
352
342
|
'''
|
|
353
343
|
discreteFunctionObjectID = self._callFunction('getDiscreteFunctionByName', [discreteFunctionName], keepReturnValueReference=True)
|
|
354
344
|
return DiscreteFunction(self._client, discreteFunctionObjectID)
|
|
355
345
|
|
|
356
346
|
def createNewDiscreteFunction(self, functionName):
|
|
357
347
|
'''
|
|
358
|
-
Creates a new discrete function with the given name
|
|
348
|
+
| Creates a new discrete function with the given name
|
|
359
349
|
'''
|
|
360
350
|
return self._callFunction('createNewDiscreteFunction', [functionName])
|
|
361
351
|
|
|
362
352
|
def deleteDiscreteFunction(self, functionName):
|
|
363
353
|
'''
|
|
364
|
-
Deletes a discrete function with the given name
|
|
354
|
+
| Deletes a discrete function with the given name
|
|
365
355
|
'''
|
|
366
356
|
return self._callFunction('deleteDiscreteFunction', [functionName])
|
|
367
357
|
|
|
368
358
|
def renameDiscreteFunction(self, oldName, newName):
|
|
369
359
|
'''
|
|
370
|
-
Renames a discrete function with the given name
|
|
360
|
+
| Renames a discrete function with the given name
|
|
371
361
|
'''
|
|
372
362
|
return self._callFunction('renameDiscreteFunction', [oldName, newName])
|
|
363
|
+
|
|
373
364
|
def getUnits(self):
|
|
374
365
|
'''
|
|
375
|
-
Get Units
|
|
366
|
+
:ref:`Get Model Units Example`
|
|
367
|
+
|
|
368
|
+
| Get Solid, Hydro and Thermal units for your model
|
|
376
369
|
'''
|
|
377
370
|
NUM_UNITS = 3
|
|
378
371
|
data = self._callFunction('getUnits', [])
|
|
@@ -383,7 +376,10 @@ class ModelProxy(ProxyObject):
|
|
|
383
376
|
|
|
384
377
|
def ResetProperties(self):
|
|
385
378
|
'''
|
|
386
|
-
|
|
379
|
+
:ref:`Get Model Units Example`
|
|
380
|
+
|
|
381
|
+
| Reset all properties for your model
|
|
382
|
+
|
|
387
383
|
'''
|
|
388
384
|
return self._callFunction('ResetProperties', [])
|
|
389
385
|
|
rs2/modeler/RS2Modeler.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from rsmessages.requestFormat import functionRequest
|
|
2
2
|
from rs2._common.Client import Client
|
|
3
|
-
from rs2.modeler.
|
|
3
|
+
from rs2.modeler.Model import Model
|
|
4
4
|
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
5
5
|
import winreg
|
|
6
6
|
import time
|
|
@@ -12,7 +12,7 @@ class RS2Modeler:
|
|
|
12
12
|
def __init__(self, host='localhost', port=60054):
|
|
13
13
|
self.client = Client(host, port)
|
|
14
14
|
|
|
15
|
-
def openFile(self, fileName : str) ->
|
|
15
|
+
def openFile(self, fileName : str) -> Model:
|
|
16
16
|
'''
|
|
17
17
|
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
18
18
|
|
|
@@ -24,8 +24,8 @@ class RS2Modeler:
|
|
|
24
24
|
'''
|
|
25
25
|
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
26
26
|
modelObjectId = self.client.callFunction(request)
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
model = Model(self.client, modelObjectId)
|
|
28
|
+
return model
|
|
29
29
|
|
|
30
30
|
@classmethod
|
|
31
31
|
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
@@ -20,7 +20,7 @@ class HydraulicDefinedStageFactor(HydraulicStageFactor):
|
|
|
20
20
|
return self._callFunction("setMaterialBehaviourFactor", [materialBehavior.value])
|
|
21
21
|
class Hydraulic(PropertyProxy):
|
|
22
22
|
"""
|
|
23
|
-
:ref:`Hydraulic Property
|
|
23
|
+
:ref:`Hydraulic Property Example`
|
|
24
24
|
"""
|
|
25
25
|
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
26
26
|
super().__init__(client, ID, documentProxyID)
|
|
@@ -21,6 +21,9 @@ class StaticGroundwaterDefinedStageFactor(StaticGroundwaterStageFactor):
|
|
|
21
21
|
def setGridToUse(self, gridName: str):
|
|
22
22
|
return self._callFunction("setGridToUse", [gridName, self.propertyID], proxyArgumentIndices=[1])
|
|
23
23
|
class StaticGroundwater(PropertyProxy):
|
|
24
|
+
"""
|
|
25
|
+
:ref:`Hydraulic Property Static Groundwater Example`
|
|
26
|
+
"""
|
|
24
27
|
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
25
28
|
super().__init__(client, ID, documentProxyID)
|
|
26
29
|
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor](self._client, stageFactorInterfaceID, ID, StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor)
|
|
@@ -11,7 +11,7 @@ from rs2.modeler.properties.material.thermal.conductivity.CoteAndKonrad import C
|
|
|
11
11
|
from rs2.modeler.properties.material.thermal.conductivity.Tabular import Tabular
|
|
12
12
|
class Conductivity(PropertyProxy):
|
|
13
13
|
"""
|
|
14
|
-
:ref:`Material Property Thermal
|
|
14
|
+
:ref:`Material Property Thermal Example`
|
|
15
15
|
"""
|
|
16
16
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
17
17
|
self.ConstantConductivity = ConstantConductivity(client, ID, documentProxyID)
|
|
@@ -8,7 +8,7 @@ from rs2.modeler.properties.material.thermal.heatcapacity.JameNewman import Jame
|
|
|
8
8
|
from rs2.modeler.properties.material.thermal.heatcapacity.CustomHeatCapacity import CustomHeatCapacity
|
|
9
9
|
class HeatCapacity(PropertyProxy):
|
|
10
10
|
"""
|
|
11
|
-
:ref:`Material Property Thermal
|
|
11
|
+
:ref:`Material Property Thermal Example`
|
|
12
12
|
"""
|
|
13
13
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
14
14
|
self.ConstantHeatCapacity = ConstantHeatCapacity(client, ID, documentProxyID)
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py
CHANGED
|
@@ -9,7 +9,7 @@ from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.CustomWate
|
|
|
9
9
|
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.hydraulic.HydraulicModel import HydraulicModel
|
|
10
10
|
class SoilUnfrozenWaterContent(PropertyProxy):
|
|
11
11
|
"""
|
|
12
|
-
:ref:`Material Property Thermal
|
|
12
|
+
:ref:`Material Property Thermal Example`
|
|
13
13
|
"""
|
|
14
14
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
15
15
|
self.Konrad = Konrad(client, ID, documentProxyID)
|
rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py
CHANGED
|
@@ -10,7 +10,7 @@ from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.hydraulic.
|
|
|
10
10
|
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.hydraulic.GardnerWaterContent import GardnerWaterContent
|
|
11
11
|
class HydraulicModel(PropertyProxy):
|
|
12
12
|
"""
|
|
13
|
-
:ref:`Material Property Thermal
|
|
13
|
+
:ref:`Material Property Thermal Example`
|
|
14
14
|
"""
|
|
15
15
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
16
16
|
self.SimpleWaterContent = SimpleWaterContent(client, ID, documentProxyID)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|