RS2Scripting 11.23.0__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.dist-info/License.txt +20 -0
- RS2Scripting-11.23.0.dist-info/METADATA +147 -0
- RS2Scripting-11.23.0.dist-info/RECORD +188 -0
- RS2Scripting-11.23.0.dist-info/WHEEL +5 -0
- RS2Scripting-11.23.0.dist-info/top_level.txt +1 -0
- rs2/BaseModel.py +46 -0
- rs2/Units.py +6 -0
- rs2/__init__.py +0 -0
- rs2/_common/Client.py +67 -0
- rs2/_common/ProxyObject.py +12 -0
- rs2/_common/__init__.py +0 -0
- rs2/_common/documentProxy.py +5 -0
- rs2/interpreter/InterpreterEnums.py +86 -0
- rs2/interpreter/InterpreterGraphEnums.py +54 -0
- rs2/interpreter/InterpreterModel.py +328 -0
- rs2/interpreter/RS2Interpreter.py +78 -0
- rs2/interpreter/_UtilityResult.py +20 -0
- rs2/interpreter/__init__.py +0 -0
- rs2/interpreter/queryResults/HistoryQueryResults.py +30 -0
- rs2/interpreter/queryResults/MaterialQueryResults.py +67 -0
- rs2/interpreter/queryResults/MeshResults.py +12 -0
- rs2/interpreter/queryResults/TimeQueryResults.py +111 -0
- rs2/interpreter/queryResults/__init__.py +0 -0
- rs2/interpreter/supportResults/BoltResult.py +49 -0
- rs2/interpreter/supportResults/CompositeResult.py +24 -0
- rs2/interpreter/supportResults/JointResult.py +25 -0
- rs2/interpreter/supportResults/LinerResult.py +33 -0
- rs2/interpreter/supportResults/__init__.py +0 -0
- rs2/modeler/Model.py +350 -0
- rs2/modeler/RS2Modeler.py +81 -0
- rs2/modeler/__init__.py +0 -0
- rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +31 -0
- rs2/modeler/properties/AbsoluteStageFactorInterface.py +49 -0
- rs2/modeler/properties/CompositeProperty.py +81 -0
- rs2/modeler/properties/DiscreteFunction.py +43 -0
- rs2/modeler/properties/MaterialJoint.py +25 -0
- rs2/modeler/properties/MaterialJointOptions.py +28 -0
- rs2/modeler/properties/PropertyEnums.py +376 -0
- rs2/modeler/properties/RelativeStageFactorInterface.py +50 -0
- rs2/modeler/properties/ShearNormalFunction.py +45 -0
- rs2/modeler/properties/SnowdenAnisotropicFunction.py +56 -0
- rs2/modeler/properties/StructuralInterface.py +59 -0
- rs2/modeler/properties/UserDefinedWaterMode.py +21 -0
- rs2/modeler/properties/__init__.py +0 -0
- rs2/modeler/properties/bolt/Bolt.py +33 -0
- rs2/modeler/properties/bolt/EndAnchored.py +59 -0
- rs2/modeler/properties/bolt/FullyBonded.py +66 -0
- rs2/modeler/properties/bolt/PlainStrandCable.py +112 -0
- rs2/modeler/properties/bolt/Swellex.py +136 -0
- rs2/modeler/properties/bolt/Tieback.py +192 -0
- rs2/modeler/properties/bolt/__init__.py +0 -0
- rs2/modeler/properties/joint/BartonBandis.py +143 -0
- rs2/modeler/properties/joint/BartonBandisMaterial.py +82 -0
- rs2/modeler/properties/joint/DisplacementDependent.py +134 -0
- rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +147 -0
- rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +93 -0
- rs2/modeler/properties/joint/HyperbolicSoftening.py +202 -0
- rs2/modeler/properties/joint/Joint.py +57 -0
- rs2/modeler/properties/joint/MaterialDependent.py +128 -0
- rs2/modeler/properties/joint/MohrCoulomb.py +211 -0
- rs2/modeler/properties/joint/MohrCoulombMaterial.py +115 -0
- rs2/modeler/properties/joint/NoneSlip.py +103 -0
- rs2/modeler/properties/joint/__init__.py +0 -0
- rs2/modeler/properties/liner/CableTruss.py +199 -0
- rs2/modeler/properties/liner/Geosynthetic.py +167 -0
- rs2/modeler/properties/liner/Liner.py +31 -0
- rs2/modeler/properties/liner/ReinforcedConcrete.py +291 -0
- rs2/modeler/properties/liner/StandardBeam.py +268 -0
- rs2/modeler/properties/liner/__init__.py +0 -0
- rs2/modeler/properties/material/InitialConditions.py +152 -0
- rs2/modeler/properties/material/MaterialProperty.py +49 -0
- rs2/modeler/properties/material/StageFactors.py +100 -0
- rs2/modeler/properties/material/__init__.py +0 -0
- rs2/modeler/properties/material/datum/BaseDatum.py +23 -0
- rs2/modeler/properties/material/datum/Datum.py +79 -0
- rs2/modeler/properties/material/datum/PeakResidualDatum.py +31 -0
- rs2/modeler/properties/material/datum/SimpleDatum.py +17 -0
- rs2/modeler/properties/material/datum/__init__.py +0 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +106 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +54 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +82 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +117 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +106 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +124 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +91 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +10 -0
- rs2/modeler/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
- rs2/modeler/properties/material/hydraulic/Hydraulic.py +41 -0
- rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +85 -0
- rs2/modeler/properties/material/hydraulic/__init__.py +0 -0
- rs2/modeler/properties/material/stiffness/ChSoil.py +45 -0
- rs2/modeler/properties/material/stiffness/Custom.py +83 -0
- rs2/modeler/properties/material/stiffness/CySoil.py +45 -0
- rs2/modeler/properties/material/stiffness/DoubleYield.py +45 -0
- rs2/modeler/properties/material/stiffness/HardeningSoil.py +73 -0
- rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +73 -0
- rs2/modeler/properties/material/stiffness/Isotropic.py +122 -0
- rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +38 -0
- rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +117 -0
- rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +255 -0
- rs2/modeler/properties/material/stiffness/Norsand.py +45 -0
- rs2/modeler/properties/material/stiffness/Orthotropic.py +180 -0
- rs2/modeler/properties/material/stiffness/Pm4Sand.py +80 -0
- rs2/modeler/properties/material/stiffness/Pm4Silt.py +87 -0
- rs2/modeler/properties/material/stiffness/SoftSoil.py +24 -0
- rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +24 -0
- rs2/modeler/properties/material/stiffness/Stiffness.py +53 -0
- rs2/modeler/properties/material/stiffness/SwellingRock.py +52 -0
- rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +145 -0
- rs2/modeler/properties/material/stiffness/ViscoElastic.py +59 -0
- rs2/modeler/properties/material/stiffness/__init__.py +0 -0
- rs2/modeler/properties/material/strength/AnisotropicLinear.py +150 -0
- rs2/modeler/properties/material/strength/BarcelonaBasic.py +176 -0
- rs2/modeler/properties/material/strength/BartonBandisStrength.py +59 -0
- rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +66 -0
- rs2/modeler/properties/material/strength/CamClay.py +113 -0
- rs2/modeler/properties/material/strength/ChSoilStrength.py +66 -0
- rs2/modeler/properties/material/strength/CySoilStrength.py +94 -0
- rs2/modeler/properties/material/strength/DiscreteFunction.py +41 -0
- rs2/modeler/properties/material/strength/DoubleYieldStrength.py +94 -0
- rs2/modeler/properties/material/strength/DruckerPrager.py +113 -0
- rs2/modeler/properties/material/strength/Finn.py +129 -0
- rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +20 -0
- rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +195 -0
- rs2/modeler/properties/material/strength/HardeningSoilStrength.py +101 -0
- rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +101 -0
- rs2/modeler/properties/material/strength/HoekBrown.py +102 -0
- rs2/modeler/properties/material/strength/Hyperbolic.py +59 -0
- rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +198 -0
- rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +116 -0
- rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +108 -0
- rs2/modeler/properties/material/strength/ModifiedCamClay.py +113 -0
- rs2/modeler/properties/material/strength/MohrCoulombStrength.py +113 -0
- rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +112 -0
- rs2/modeler/properties/material/strength/NorSandStrength.py +101 -0
- rs2/modeler/properties/material/strength/PM4SandStrength.py +178 -0
- rs2/modeler/properties/material/strength/PM4SiltStrength.py +241 -0
- rs2/modeler/properties/material/strength/PowerCurve.py +101 -0
- rs2/modeler/properties/material/strength/Shansep.py +172 -0
- rs2/modeler/properties/material/strength/ShearNormalFunction.py +21 -0
- rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +78 -0
- rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +87 -0
- rs2/modeler/properties/material/strength/SoftSoilStrength.py +80 -0
- rs2/modeler/properties/material/strength/SofteningHardeningModel.py +150 -0
- rs2/modeler/properties/material/strength/Strength.py +185 -0
- rs2/modeler/properties/material/strength/SwellingRockStrength.py +122 -0
- rs2/modeler/properties/material/strength/VerticalStressRatio.py +94 -0
- rs2/modeler/properties/material/strength/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/Thermal.py +74 -0
- rs2/modeler/properties/material/thermal/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +27 -0
- rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +31 -0
- rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +45 -0
- rs2/modeler/properties/material/thermal/conductivity/Derives.py +17 -0
- rs2/modeler/properties/material/thermal/conductivity/Johansen.py +45 -0
- rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +24 -0
- rs2/modeler/properties/material/thermal/conductivity/Tabular.py +31 -0
- rs2/modeler/properties/material/thermal/conductivity/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +38 -0
- rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +38 -0
- rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +21 -0
- rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +24 -0
- rs2/modeler/properties/material/thermal/heatcapacity/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +13 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +23 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py +0 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +24 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +31 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +24 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +38 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +37 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +17 -0
- rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py +0 -0
- rs2/modeler/properties/pile/Beam.py +34 -0
- rs2/modeler/properties/pile/Elastic.py +45 -0
- rs2/modeler/properties/pile/ForceDisplacement.py +59 -0
- rs2/modeler/properties/pile/Linear.py +59 -0
- rs2/modeler/properties/pile/MaterialDependentPile.py +87 -0
- rs2/modeler/properties/pile/MohrCoulombPile.py +94 -0
- rs2/modeler/properties/pile/MultiLinear.py +56 -0
- rs2/modeler/properties/pile/Pile.py +63 -0
- rs2/modeler/properties/pile/__init__.py +0 -0
- rs2/modeler/properties/propertyProxy.py +283 -0
- rs2/utilities/ApplicationManager.py +64 -0
- rs2/utilities/ColorPicker.py +78 -0
- rs2/utilities/__init__.py +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
7
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
8
|
+
class GenuchtenStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getMFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_VAN_CUSTOM_M", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getNFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_VAN_GENUCHTEM_N", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getAlphaFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_VAN_GENUCHTEN_ALPHA", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getKsFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_KS", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getWCSatFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getWCResFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getDoSSatFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
def getDoSResFactor(self) -> float:
|
|
27
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
28
|
+
class GenuchtenDefinedStageFactor(GenuchtenStageFactor):
|
|
29
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
30
|
+
super().__init__(client, ID, propertyID)
|
|
31
|
+
def setMFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_VAN_CUSTOM_M", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setNFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_VAN_GENUCHTEM_N", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setAlphaFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_VAN_GENUCHTEN_ALPHA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setKsFactor(self, value: float):
|
|
38
|
+
return self._callFunction("setDoubleFactor", ["MP_KS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
39
|
+
def setWCSatFactor(self, value: float):
|
|
40
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
|
+
def setWCResFactor(self, value: float):
|
|
42
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
43
|
+
def setDoSSatFactor(self, value: float):
|
|
44
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
45
|
+
def setDoSResFactor(self, value: float):
|
|
46
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
47
|
+
class Genuchten(PropertyProxy):
|
|
48
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
49
|
+
super().__init__(client, ID, documentProxyID)
|
|
50
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[GenuchtenDefinedStageFactor, GenuchtenStageFactor](self._client, stageFactorInterfaceID, ID, GenuchtenDefinedStageFactor, GenuchtenStageFactor)
|
|
51
|
+
def getAlpha(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_VAN_GENUCHTEN_ALPHA")
|
|
53
|
+
def setAlpha(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_VAN_GENUCHTEN_ALPHA", value)
|
|
55
|
+
def getN(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_VAN_GENUCHTEM_N")
|
|
57
|
+
def setN(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_VAN_GENUCHTEM_N", value)
|
|
59
|
+
def getCustomM(self) -> bool:
|
|
60
|
+
return self._getBoolProperty("MP_VAN_USE_CUSTOM_M")
|
|
61
|
+
def setCustomM(self, value: bool):
|
|
62
|
+
return self._setBoolProperty("MP_VAN_USE_CUSTOM_M", value)
|
|
63
|
+
def getM(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_VAN_CUSTOM_M")
|
|
65
|
+
def setM(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_VAN_CUSTOM_M", value)
|
|
67
|
+
def getKs(self) -> float:
|
|
68
|
+
return self._getDoubleProperty("MP_KS")
|
|
69
|
+
def setKs(self, value: float):
|
|
70
|
+
return self._setDoubleProperty("MP_KS", value)
|
|
71
|
+
def getWCInputType(self) -> WCInputType:
|
|
72
|
+
return WCInputType(self._getEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE"))
|
|
73
|
+
def setWCInputType(self, value: WCInputType):
|
|
74
|
+
return self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", value)
|
|
75
|
+
def getWCSat(self) -> float:
|
|
76
|
+
return self._getDoubleProperty("MP_WC_SAT")
|
|
77
|
+
def setWCSat(self, value: float):
|
|
78
|
+
return self._setDoubleProperty("MP_WC_SAT", value)
|
|
79
|
+
def getWCRes(self) -> float:
|
|
80
|
+
return self._getDoubleProperty("MP_WC_RES")
|
|
81
|
+
def setWCRes(self, value: float):
|
|
82
|
+
return self._setDoubleProperty("MP_WC_RES", value)
|
|
83
|
+
def getDoSSat(self) -> float:
|
|
84
|
+
return self._getDoubleProperty("MP_DOS_SAT")
|
|
85
|
+
def setDoSSat(self, value: float):
|
|
86
|
+
return self._setDoubleProperty("MP_DOS_SAT", value)
|
|
87
|
+
def getDoSRes(self) -> float:
|
|
88
|
+
return self._getDoubleProperty("MP_DOS_RES")
|
|
89
|
+
def setDoSRes(self, value: float):
|
|
90
|
+
return self._setDoubleProperty("MP_DOS_RES", value)
|
|
91
|
+
def setProperties(self, Alpha : float = None, N : float = None, CustomM : bool = None, M : float = None, Ks : float = None, WCInputType : WCInputType = None, WCSat : float = None, WCRes : float = None, DoSSat : float = None, DoSRes : float = None):
|
|
92
|
+
if Alpha is not None:
|
|
93
|
+
self._setDoubleProperty("MP_VAN_GENUCHTEN_ALPHA", Alpha)
|
|
94
|
+
if N is not None:
|
|
95
|
+
self._setDoubleProperty("MP_VAN_GENUCHTEM_N", N)
|
|
96
|
+
if CustomM is not None:
|
|
97
|
+
self._setBoolProperty("MP_VAN_USE_CUSTOM_M", CustomM)
|
|
98
|
+
if M is not None:
|
|
99
|
+
self._setDoubleProperty("MP_VAN_CUSTOM_M", M)
|
|
100
|
+
if Ks is not None:
|
|
101
|
+
self._setDoubleProperty("MP_KS", Ks)
|
|
102
|
+
if WCInputType is not None:
|
|
103
|
+
self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", WCInputType)
|
|
104
|
+
if WCSat is not None:
|
|
105
|
+
self._setDoubleProperty("MP_WC_SAT", WCSat)
|
|
106
|
+
if WCRes is not None:
|
|
107
|
+
self._setDoubleProperty("MP_WC_RES", WCRes)
|
|
108
|
+
if DoSSat is not None:
|
|
109
|
+
self._setDoubleProperty("MP_DOS_SAT", DoSSat)
|
|
110
|
+
if DoSRes is not None:
|
|
111
|
+
self._setDoubleProperty("MP_DOS_RES", DoSRes)
|
|
112
|
+
def getProperties(self):
|
|
113
|
+
return {
|
|
114
|
+
"Alpha" : self.getAlpha(),
|
|
115
|
+
"N" : self.getN(),
|
|
116
|
+
"CustomM" : self.getCustomM(),
|
|
117
|
+
"M" : self.getM(),
|
|
118
|
+
"Ks" : self.getKs(),
|
|
119
|
+
"WCInputType" : self.getWCInputType(),
|
|
120
|
+
"WCSat" : self.getWCSat(),
|
|
121
|
+
"WCRes" : self.getWCRes(),
|
|
122
|
+
"DoSSat" : self.getDoSSat(),
|
|
123
|
+
"DoSRes" : self.getDoSRes(),
|
|
124
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
7
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
8
|
+
class SimpleStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getKsFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_KS", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getWCSatFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getWCResFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getDoSSatFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getDoSResFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
class SimpleDefinedStageFactor(SimpleStageFactor):
|
|
23
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
24
|
+
super().__init__(client, ID, propertyID)
|
|
25
|
+
def setKsFactor(self, value: float):
|
|
26
|
+
return self._callFunction("setDoubleFactor", ["MP_KS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
27
|
+
def setWCSatFactor(self, value: float):
|
|
28
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
29
|
+
def setWCResFactor(self, value: float):
|
|
30
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
31
|
+
def setDoSSatFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setDoSResFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
class Simple(PropertyProxy):
|
|
36
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
37
|
+
super().__init__(client, ID, documentProxyID)
|
|
38
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[SimpleDefinedStageFactor, SimpleStageFactor](self._client, stageFactorInterfaceID, ID, SimpleDefinedStageFactor, SimpleStageFactor)
|
|
39
|
+
def getSoilType(self) -> EnhancedSimpleSoilTypes:
|
|
40
|
+
return EnhancedSimpleSoilTypes(self._getEnumEEnhancedSimpleSoilTypesProperty("MP_SOIL_TYPE"))
|
|
41
|
+
def setSoilType(self, value: EnhancedSimpleSoilTypes):
|
|
42
|
+
return self._setEnumEEnhancedSimpleSoilTypesProperty("MP_SOIL_TYPE", value)
|
|
43
|
+
def getKs(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_KS")
|
|
45
|
+
def setKs(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_KS", value)
|
|
47
|
+
def getWCInputType(self) -> WCInputType:
|
|
48
|
+
return WCInputType(self._getEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE"))
|
|
49
|
+
def setWCInputType(self, value: WCInputType):
|
|
50
|
+
return self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", value)
|
|
51
|
+
def getWCSat(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_WC_SAT")
|
|
53
|
+
def setWCSat(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_WC_SAT", value)
|
|
55
|
+
def getWCRes(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_WC_RES")
|
|
57
|
+
def setWCRes(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_WC_RES", value)
|
|
59
|
+
def getDoSSat(self) -> float:
|
|
60
|
+
return self._getDoubleProperty("MP_DOS_SAT")
|
|
61
|
+
def setDoSSat(self, value: float):
|
|
62
|
+
return self._setDoubleProperty("MP_DOS_SAT", value)
|
|
63
|
+
def getDoSRes(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_DOS_RES")
|
|
65
|
+
def setDoSRes(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_DOS_RES", value)
|
|
67
|
+
def setProperties(self, SoilType : EnhancedSimpleSoilTypes = None, Ks : float = None, WCInputType : WCInputType = None, WCSat : float = None, WCRes : float = None, DoSSat : float = None, DoSRes : float = None):
|
|
68
|
+
if SoilType is not None:
|
|
69
|
+
self._setEnumEEnhancedSimpleSoilTypesProperty("MP_SOIL_TYPE", SoilType)
|
|
70
|
+
if Ks is not None:
|
|
71
|
+
self._setDoubleProperty("MP_KS", Ks)
|
|
72
|
+
if WCInputType is not None:
|
|
73
|
+
self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", WCInputType)
|
|
74
|
+
if WCSat is not None:
|
|
75
|
+
self._setDoubleProperty("MP_WC_SAT", WCSat)
|
|
76
|
+
if WCRes is not None:
|
|
77
|
+
self._setDoubleProperty("MP_WC_RES", WCRes)
|
|
78
|
+
if DoSSat is not None:
|
|
79
|
+
self._setDoubleProperty("MP_DOS_SAT", DoSSat)
|
|
80
|
+
if DoSRes is not None:
|
|
81
|
+
self._setDoubleProperty("MP_DOS_RES", DoSRes)
|
|
82
|
+
def getProperties(self):
|
|
83
|
+
return {
|
|
84
|
+
"SoilType" : self.getSoilType(),
|
|
85
|
+
"Ks" : self.getKs(),
|
|
86
|
+
"WCInputType" : self.getWCInputType(),
|
|
87
|
+
"WCSat" : self.getWCSat(),
|
|
88
|
+
"WCRes" : self.getWCRes(),
|
|
89
|
+
"DoSSat" : self.getDoSSat(),
|
|
90
|
+
"DoSRes" : self.getDoSRes(),
|
|
91
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class UserDefined(PropertyProxy):
|
|
7
|
+
def setUserDefinedPermeabilityAndWaterContentFunction(self, functionName: str):
|
|
8
|
+
return self._callFunction("setUserDefinedPermeabilityAndWaterContentFunction", [functionName])
|
|
9
|
+
def getUserDefinedPermeabilityAndWaterContentFunction(self) -> str:
|
|
10
|
+
return self._callFunction("getUserDefinedPermeabilityAndWaterContentFunction", [])
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.FEAGroundwater import FEAGroundwater
|
|
7
|
+
from rs2.modeler.properties.material.hydraulic.StaticGroundwater import StaticGroundwater
|
|
8
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
9
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
10
|
+
class HydraulicStageFactor(ProxyObject):
|
|
11
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
12
|
+
super().__init__(client, ID)
|
|
13
|
+
self.propertyID = propertyID
|
|
14
|
+
def getMaterialBehaviourFactor(self) -> str:
|
|
15
|
+
return MaterialBehaviours(self._callFunction("getMaterialBehaviourFactor", []))
|
|
16
|
+
class HydraulicDefinedStageFactor(HydraulicStageFactor):
|
|
17
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
18
|
+
super().__init__(client, ID, propertyID)
|
|
19
|
+
def setMaterialBehaviourFactor(self, materialBehavior: MaterialBehaviours):
|
|
20
|
+
return self._callFunction("setMaterialBehaviourFactor", [materialBehavior.value])
|
|
21
|
+
class Hydraulic(PropertyProxy):
|
|
22
|
+
"""
|
|
23
|
+
:ref:`Hydraulic Property Example`
|
|
24
|
+
"""
|
|
25
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
26
|
+
super().__init__(client, ID, documentProxyID)
|
|
27
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[HydraulicDefinedStageFactor, HydraulicStageFactor](self._client, stageFactorInterfaceID, ID, HydraulicDefinedStageFactor, HydraulicStageFactor)
|
|
28
|
+
self.StaticGroundwater = StaticGroundwater(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
29
|
+
self.FEAGroundwater = FEAGroundwater(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
30
|
+
def getMaterialBehaviour(self) -> MaterialBehaviours:
|
|
31
|
+
return MaterialBehaviours(self._getEnumEMaterialBehavioursProperty("MP_MATERIAL_BEHAVIOUR"))
|
|
32
|
+
def setMaterialBehaviour(self, value: MaterialBehaviours):
|
|
33
|
+
return self._setEnumEMaterialBehavioursProperty("MP_MATERIAL_BEHAVIOUR", value)
|
|
34
|
+
def getFluidBulkModulus(self) -> float:
|
|
35
|
+
return self._getDoubleProperty("MP_FLUID_BULK_MODULUS")
|
|
36
|
+
def setFluidBulkModulus(self, value: float):
|
|
37
|
+
return self._setDoubleProperty("MP_FLUID_BULK_MODULUS", value)
|
|
38
|
+
def getUseBiotsCoefficientForCalculatingEffectiveStress(self) -> bool:
|
|
39
|
+
return self._getBoolProperty("MP_USE_ALPHA_BIOT")
|
|
40
|
+
def setUseBiotsCoefficientForCalculatingEffectiveStress(self, value: bool):
|
|
41
|
+
return self._setBoolProperty("MP_USE_ALPHA_BIOT", value)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
7
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
8
|
+
class StaticGroundwaterStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getPiezoToUse(self) -> str:
|
|
13
|
+
return self._callFunction("getPiezoToUse", [self.propertyID], proxyArgumentIndices=[0])
|
|
14
|
+
def getGridToUse(self) -> str:
|
|
15
|
+
return self._callFunction("getGridToUse", [self.propertyID], proxyArgumentIndices=[0])
|
|
16
|
+
class StaticGroundwaterDefinedStageFactor(StaticGroundwaterStageFactor):
|
|
17
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
18
|
+
super().__init__(client, ID, propertyID)
|
|
19
|
+
def setPiezoToUse(self, piezoName: str):
|
|
20
|
+
return self._callFunction("setPiezoToUse", [piezoName, self.propertyID], proxyArgumentIndices=[1])
|
|
21
|
+
def setGridToUse(self, gridName: str):
|
|
22
|
+
return self._callFunction("setGridToUse", [gridName, self.propertyID], proxyArgumentIndices=[1])
|
|
23
|
+
class StaticGroundwater(PropertyProxy):
|
|
24
|
+
"""
|
|
25
|
+
:ref:`Hydraulic Property Static Groundwater Example`
|
|
26
|
+
"""
|
|
27
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
28
|
+
super().__init__(client, ID, documentProxyID)
|
|
29
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor](self._client, stageFactorInterfaceID, ID, StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor)
|
|
30
|
+
def getStaticWaterMode(self) -> StaticWaterModes:
|
|
31
|
+
return StaticWaterModes(self._getEnumEStaticWaterModesProperty("MP_STATIC_WATER_MODE"))
|
|
32
|
+
def setStaticWaterMode(self, value: StaticWaterModes):
|
|
33
|
+
return self._setEnumEStaticWaterModesProperty("MP_STATIC_WATER_MODE", value)
|
|
34
|
+
def getStaticPoreWaterPressure(self) -> float:
|
|
35
|
+
return self._getDoubleProperty("MP_CONSTANT_PWP")
|
|
36
|
+
def setStaticPoreWaterPressure(self, value: float):
|
|
37
|
+
return self._setDoubleProperty("MP_CONSTANT_PWP", value)
|
|
38
|
+
def getRuValue(self) -> float:
|
|
39
|
+
return self._getDoubleProperty("MP_RU_VALUE")
|
|
40
|
+
def setRuValue(self, value: float):
|
|
41
|
+
return self._setDoubleProperty("MP_RU_VALUE", value)
|
|
42
|
+
def getHuType(self) -> HuTypes:
|
|
43
|
+
return HuTypes(self._getEnumEHuTypesProperty("MP_HU_TYPE"))
|
|
44
|
+
def setHuType(self, value: HuTypes):
|
|
45
|
+
return self._setEnumEHuTypesProperty("MP_HU_TYPE", value)
|
|
46
|
+
def getHuValue(self) -> float:
|
|
47
|
+
return self._getDoubleProperty("MP_HU_VALUE")
|
|
48
|
+
def setHuValue(self, value: float):
|
|
49
|
+
return self._setDoubleProperty("MP_HU_VALUE", value)
|
|
50
|
+
def setPiezoToUse(self, piezoName: str):
|
|
51
|
+
"""
|
|
52
|
+
piezoName is the id of the piezo line to be used or "None".
|
|
53
|
+
"""
|
|
54
|
+
return self._callFunction("setPiezoToUse", [piezoName])
|
|
55
|
+
def getPiezoToUse(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
Returns the id of the piezo line to be used or "None".
|
|
58
|
+
"""
|
|
59
|
+
return self._callFunction("getPiezoToUse", [])
|
|
60
|
+
def setGridToUse(self, gridName: str):
|
|
61
|
+
"""
|
|
62
|
+
gridName is the name of the grid to be used. "None" and "Default Grid" are available by default.
|
|
63
|
+
"""
|
|
64
|
+
return self._callFunction("setGridToUse", [gridName])
|
|
65
|
+
def getGridToUse(self) -> str:
|
|
66
|
+
return self._callFunction("getGridToUse", [])
|
|
67
|
+
def setProperties(self, StaticWaterMode : StaticWaterModes = None, StaticPoreWaterPressure : float = None, RuValue : float = None, HuType : HuTypes = None, HuValue : float = None):
|
|
68
|
+
if StaticWaterMode is not None:
|
|
69
|
+
self._setEnumEStaticWaterModesProperty("MP_STATIC_WATER_MODE", StaticWaterMode)
|
|
70
|
+
if StaticPoreWaterPressure is not None:
|
|
71
|
+
self._setDoubleProperty("MP_CONSTANT_PWP", StaticPoreWaterPressure)
|
|
72
|
+
if RuValue is not None:
|
|
73
|
+
self._setDoubleProperty("MP_RU_VALUE", RuValue)
|
|
74
|
+
if HuType is not None:
|
|
75
|
+
self._setEnumEHuTypesProperty("MP_HU_TYPE", HuType)
|
|
76
|
+
if HuValue is not None:
|
|
77
|
+
self._setDoubleProperty("MP_HU_VALUE", HuValue)
|
|
78
|
+
def getProperties(self):
|
|
79
|
+
return {
|
|
80
|
+
"StaticWaterMode" : self.getStaticWaterMode(),
|
|
81
|
+
"StaticPoreWaterPressure" : self.getStaticPoreWaterPressure(),
|
|
82
|
+
"RuValue" : self.getRuValue(),
|
|
83
|
+
"HuType" : self.getHuType(),
|
|
84
|
+
"HuValue" : self.getHuValue(),
|
|
85
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class ChSoil(PropertyProxy):
|
|
7
|
+
def getGRef(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_CHS_G_REF")
|
|
9
|
+
def setGRef(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_CHS_G_REF", value)
|
|
11
|
+
def getNG(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_CHS_N_G")
|
|
13
|
+
def setNG(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_CHS_N_G", value)
|
|
15
|
+
def getKRef(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_CHS_K_REF")
|
|
17
|
+
def setKRef(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_CHS_K_REF", value)
|
|
19
|
+
def getMK(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_CHS_M_K")
|
|
21
|
+
def setMK(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_CHS_M_K", value)
|
|
23
|
+
def getReferencePressure(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_CHS_REF_PRESSURE")
|
|
25
|
+
def setReferencePressure(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_CHS_REF_PRESSURE", value)
|
|
27
|
+
def setProperties(self, GRef : float = None, NG : float = None, KRef : float = None, MK : float = None, ReferencePressure : float = None):
|
|
28
|
+
if GRef is not None:
|
|
29
|
+
self._setDoubleProperty("MP_CHS_G_REF", GRef)
|
|
30
|
+
if NG is not None:
|
|
31
|
+
self._setDoubleProperty("MP_CHS_N_G", NG)
|
|
32
|
+
if KRef is not None:
|
|
33
|
+
self._setDoubleProperty("MP_CHS_K_REF", KRef)
|
|
34
|
+
if MK is not None:
|
|
35
|
+
self._setDoubleProperty("MP_CHS_M_K", MK)
|
|
36
|
+
if ReferencePressure is not None:
|
|
37
|
+
self._setDoubleProperty("MP_CHS_REF_PRESSURE", ReferencePressure)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"GRef" : self.getGRef(),
|
|
41
|
+
"NG" : self.getNG(),
|
|
42
|
+
"KRef" : self.getKRef(),
|
|
43
|
+
"MK" : self.getMK(),
|
|
44
|
+
"ReferencePressure" : self.getReferencePressure(),
|
|
45
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class Custom(PropertyProxy):
|
|
7
|
+
def getUseUnloadingCondition(self) -> bool:
|
|
8
|
+
return self._getBoolProperty("MP_USE_UNLOADING_CONDITION")
|
|
9
|
+
def setUseUnloadingCondition(self, value: bool):
|
|
10
|
+
return self._setBoolProperty("MP_USE_UNLOADING_CONDITION", value)
|
|
11
|
+
def getUnloadingCondition(self) -> UnloadingConditions:
|
|
12
|
+
return UnloadingConditions(self._getEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION"))
|
|
13
|
+
def setUnloadingCondition(self, value: UnloadingConditions):
|
|
14
|
+
return self._setEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION", value)
|
|
15
|
+
def getCustomMode(self) -> CustomMode:
|
|
16
|
+
return CustomMode(self._getEnumECustomModeProperty("MP_CUSTOM_MODE"))
|
|
17
|
+
def setCustomMode(self, value: CustomMode):
|
|
18
|
+
return self._setEnumECustomModeProperty("MP_CUSTOM_MODE", value)
|
|
19
|
+
def getUseConstantPoissonsRatio(self) -> bool:
|
|
20
|
+
return self._getBoolProperty("MP_USE_CONSTANT_POISSONS_RATIO")
|
|
21
|
+
def setUseConstantPoissonsRatio(self, value: bool):
|
|
22
|
+
return self._setBoolProperty("MP_USE_CONSTANT_POISSONS_RATIO", value)
|
|
23
|
+
def getConstantPoissonsRatio(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_CONSTANT_POISSONS_RATIO")
|
|
25
|
+
def setConstantPoissonsRatio(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_CONSTANT_POISSONS_RATIO", value)
|
|
27
|
+
def getUnloadingUseConstantPoissonsRatio(self) -> bool:
|
|
28
|
+
return self._getBoolProperty("MP_UNLOADING_USE_CONSTANT_POISSONS_RATIO")
|
|
29
|
+
def setUnloadingUseConstantPoissonsRatio(self, value: bool):
|
|
30
|
+
return self._setBoolProperty("MP_UNLOADING_USE_CONSTANT_POISSONS_RATIO", value)
|
|
31
|
+
def getUnloadingConstantPoissonsRatio(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_UNLOADING_CONSTANT_POISSONS_RATIO")
|
|
33
|
+
def setUnloadingConstantPoissonsRatio(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_UNLOADING_CONSTANT_POISSONS_RATIO", value)
|
|
35
|
+
def setCustomStiffnessLoadingTable(self, mode: CustomMode, table: list[tuple[float,float,float]]):
|
|
36
|
+
"""
|
|
37
|
+
Tuple element order: (Custom Mode Parameter (p,q,S3...), Young's modulus, Poisson's Ratio).
|
|
38
|
+
Poisson's ratio set to zero if useContantPoissonsRatio is set to True.
|
|
39
|
+
"""
|
|
40
|
+
return self._callFunction("setCustomStiffnessLoadingTable", [mode.value, table])
|
|
41
|
+
def getCustomStiffnessLoadingTable(self) -> list[tuple[float,float,float]]:
|
|
42
|
+
"""
|
|
43
|
+
Tuple element order: (Custom Mode Parameter (p,q,S3...), Young's modulus, Poisson's Ratio).
|
|
44
|
+
Poisson's ratio set to zero if useContantPoissonsRatio is set to True.
|
|
45
|
+
"""
|
|
46
|
+
return self._callFunction("getCustomStiffnessLoadingTable", [])
|
|
47
|
+
def setCustomStiffnessUnloadingTable(self, mode: CustomMode, table: list[tuple[float,float,float]]):
|
|
48
|
+
"""
|
|
49
|
+
Tuple element order: (Custom Mode Parameter (p,q,S3...), Young's modulus, Poisson's Ratio).
|
|
50
|
+
Poisson's ratio set to zero and ignored if useContantPoissonsRatio is set to True.
|
|
51
|
+
"""
|
|
52
|
+
return self._callFunction("setCustomStiffnessUnloadingTable", [mode.value, table])
|
|
53
|
+
def getCustomStiffnessUnloadingTable(self) -> list[tuple[float,float,float]]:
|
|
54
|
+
"""
|
|
55
|
+
Tuple element order: (Custom Mode Parameter (p,q,S3...), Young's modulus, Poisson's Ratio).
|
|
56
|
+
Poisson's ratio set to zero and ignored if useContantPoissonsRatio is set to True.
|
|
57
|
+
"""
|
|
58
|
+
return self._callFunction("getCustomStiffnessUnloadingTable", [])
|
|
59
|
+
def setProperties(self, UseUnloadingCondition : bool = None, UnloadingCondition : UnloadingConditions = None, CustomMode : CustomMode = None, UseConstantPoissonsRatio : bool = None, ConstantPoissonsRatio : float = None, UnloadingUseConstantPoissonsRatio : bool = None, UnloadingConstantPoissonsRatio : float = None):
|
|
60
|
+
if UseUnloadingCondition is not None:
|
|
61
|
+
self._setBoolProperty("MP_USE_UNLOADING_CONDITION", UseUnloadingCondition)
|
|
62
|
+
if UnloadingCondition is not None:
|
|
63
|
+
self._setEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION", UnloadingCondition)
|
|
64
|
+
if CustomMode is not None:
|
|
65
|
+
self._setEnumECustomModeProperty("MP_CUSTOM_MODE", CustomMode)
|
|
66
|
+
if UseConstantPoissonsRatio is not None:
|
|
67
|
+
self._setBoolProperty("MP_USE_CONSTANT_POISSONS_RATIO", UseConstantPoissonsRatio)
|
|
68
|
+
if ConstantPoissonsRatio is not None:
|
|
69
|
+
self._setDoubleProperty("MP_CONSTANT_POISSONS_RATIO", ConstantPoissonsRatio)
|
|
70
|
+
if UnloadingUseConstantPoissonsRatio is not None:
|
|
71
|
+
self._setBoolProperty("MP_UNLOADING_USE_CONSTANT_POISSONS_RATIO", UnloadingUseConstantPoissonsRatio)
|
|
72
|
+
if UnloadingConstantPoissonsRatio is not None:
|
|
73
|
+
self._setDoubleProperty("MP_UNLOADING_CONSTANT_POISSONS_RATIO", UnloadingConstantPoissonsRatio)
|
|
74
|
+
def getProperties(self):
|
|
75
|
+
return {
|
|
76
|
+
"UseUnloadingCondition" : self.getUseUnloadingCondition(),
|
|
77
|
+
"UnloadingCondition" : self.getUnloadingCondition(),
|
|
78
|
+
"CustomMode" : self.getCustomMode(),
|
|
79
|
+
"UseConstantPoissonsRatio" : self.getUseConstantPoissonsRatio(),
|
|
80
|
+
"ConstantPoissonsRatio" : self.getConstantPoissonsRatio(),
|
|
81
|
+
"UnloadingUseConstantPoissonsRatio" : self.getUnloadingUseConstantPoissonsRatio(),
|
|
82
|
+
"UnloadingConstantPoissonsRatio" : self.getUnloadingConstantPoissonsRatio(),
|
|
83
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class CySoil(PropertyProxy):
|
|
7
|
+
def getKRefiso(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_CYS_K_REF_ISO")
|
|
9
|
+
def setKRefiso(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_CYS_K_REF_ISO", value)
|
|
11
|
+
def getMK(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_CYS_M_K")
|
|
13
|
+
def setMK(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_CYS_M_K", value)
|
|
15
|
+
def getRK(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_CYS_R_K")
|
|
17
|
+
def setRK(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_CYS_R_K", value)
|
|
19
|
+
def getReferencePressure(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_CYS_REF_PRESSURE")
|
|
21
|
+
def setReferencePressure(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_CYS_REF_PRESSURE", value)
|
|
23
|
+
def getPoissonsRatio(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_CYS_POISSON")
|
|
25
|
+
def setPoissonsRatio(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_CYS_POISSON", value)
|
|
27
|
+
def setProperties(self, KRefiso : float = None, MK : float = None, RK : float = None, ReferencePressure : float = None, PoissonsRatio : float = None):
|
|
28
|
+
if KRefiso is not None:
|
|
29
|
+
self._setDoubleProperty("MP_CYS_K_REF_ISO", KRefiso)
|
|
30
|
+
if MK is not None:
|
|
31
|
+
self._setDoubleProperty("MP_CYS_M_K", MK)
|
|
32
|
+
if RK is not None:
|
|
33
|
+
self._setDoubleProperty("MP_CYS_R_K", RK)
|
|
34
|
+
if ReferencePressure is not None:
|
|
35
|
+
self._setDoubleProperty("MP_CYS_REF_PRESSURE", ReferencePressure)
|
|
36
|
+
if PoissonsRatio is not None:
|
|
37
|
+
self._setDoubleProperty("MP_CYS_POISSON", PoissonsRatio)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"KRefiso" : self.getKRefiso(),
|
|
41
|
+
"MK" : self.getMK(),
|
|
42
|
+
"RK" : self.getRK(),
|
|
43
|
+
"ReferencePressure" : self.getReferencePressure(),
|
|
44
|
+
"PoissonsRatio" : self.getPoissonsRatio(),
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class DoubleYield(PropertyProxy):
|
|
7
|
+
def getKRefiso(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_CYS_K_REF_ISO")
|
|
9
|
+
def setKRefiso(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_CYS_K_REF_ISO", value)
|
|
11
|
+
def getMK(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_CYS_M_K")
|
|
13
|
+
def setMK(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_CYS_M_K", value)
|
|
15
|
+
def getRK(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_CYS_R_K")
|
|
17
|
+
def setRK(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_CYS_R_K", value)
|
|
19
|
+
def getReferencePressure(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_CYS_REF_PRESSURE")
|
|
21
|
+
def setReferencePressure(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_CYS_REF_PRESSURE", value)
|
|
23
|
+
def getPoissonsRatio(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_CYS_POISSON")
|
|
25
|
+
def setPoissonsRatio(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_CYS_POISSON", value)
|
|
27
|
+
def setProperties(self, KRefiso : float = None, MK : float = None, RK : float = None, ReferencePressure : float = None, PoissonsRatio : float = None):
|
|
28
|
+
if KRefiso is not None:
|
|
29
|
+
self._setDoubleProperty("MP_CYS_K_REF_ISO", KRefiso)
|
|
30
|
+
if MK is not None:
|
|
31
|
+
self._setDoubleProperty("MP_CYS_M_K", MK)
|
|
32
|
+
if RK is not None:
|
|
33
|
+
self._setDoubleProperty("MP_CYS_R_K", RK)
|
|
34
|
+
if ReferencePressure is not None:
|
|
35
|
+
self._setDoubleProperty("MP_CYS_REF_PRESSURE", ReferencePressure)
|
|
36
|
+
if PoissonsRatio is not None:
|
|
37
|
+
self._setDoubleProperty("MP_CYS_POISSON", PoissonsRatio)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"KRefiso" : self.getKRefiso(),
|
|
41
|
+
"MK" : self.getMK(),
|
|
42
|
+
"RK" : self.getRK(),
|
|
43
|
+
"ReferencePressure" : self.getReferencePressure(),
|
|
44
|
+
"PoissonsRatio" : self.getPoissonsRatio(),
|
|
45
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class HardeningSoil(PropertyProxy):
|
|
7
|
+
def getERef50(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_HS_E_REF_50")
|
|
9
|
+
def setERef50(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_HS_E_REF_50", value)
|
|
11
|
+
def getERefoed(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_HS_E_REF_OED")
|
|
13
|
+
def setERefoed(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_HS_E_REF_OED", value)
|
|
15
|
+
def getERefur(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_HS_E_REF_UR")
|
|
17
|
+
def setERefur(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_HS_E_REF_UR", value)
|
|
19
|
+
def getM(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_HS_M")
|
|
21
|
+
def setM(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_HS_M", value)
|
|
23
|
+
def getReferencePressure(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_HS_REF_PRESSURE")
|
|
25
|
+
def setReferencePressure(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_HS_REF_PRESSURE", value)
|
|
27
|
+
def getPoissonsRatio(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_HS_POISSON")
|
|
29
|
+
def setPoissonsRatio(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_HS_POISSON", value)
|
|
31
|
+
def getPlimit(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_HS_P_LIMIT")
|
|
33
|
+
def setPlimit(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_HS_P_LIMIT", value)
|
|
35
|
+
def getG0ref(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_HS_G0_REF")
|
|
37
|
+
def setG0ref(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_HS_G0_REF", value)
|
|
39
|
+
def getGama07(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_HS_GAMA_07")
|
|
41
|
+
def setGama07(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_HS_GAMA_07", value)
|
|
43
|
+
def setProperties(self, ERef50 : float = None, ERefoed : float = None, ERefur : float = None, M : float = None, ReferencePressure : float = None, PoissonsRatio : float = None, Plimit : float = None, G0ref : float = None, Gama07 : float = None):
|
|
44
|
+
if ERef50 is not None:
|
|
45
|
+
self._setDoubleProperty("MP_HS_E_REF_50", ERef50)
|
|
46
|
+
if ERefoed is not None:
|
|
47
|
+
self._setDoubleProperty("MP_HS_E_REF_OED", ERefoed)
|
|
48
|
+
if ERefur is not None:
|
|
49
|
+
self._setDoubleProperty("MP_HS_E_REF_UR", ERefur)
|
|
50
|
+
if M is not None:
|
|
51
|
+
self._setDoubleProperty("MP_HS_M", M)
|
|
52
|
+
if ReferencePressure is not None:
|
|
53
|
+
self._setDoubleProperty("MP_HS_REF_PRESSURE", ReferencePressure)
|
|
54
|
+
if PoissonsRatio is not None:
|
|
55
|
+
self._setDoubleProperty("MP_HS_POISSON", PoissonsRatio)
|
|
56
|
+
if Plimit is not None:
|
|
57
|
+
self._setDoubleProperty("MP_HS_P_LIMIT", Plimit)
|
|
58
|
+
if G0ref is not None:
|
|
59
|
+
self._setDoubleProperty("MP_HS_G0_REF", G0ref)
|
|
60
|
+
if Gama07 is not None:
|
|
61
|
+
self._setDoubleProperty("MP_HS_GAMA_07", Gama07)
|
|
62
|
+
def getProperties(self):
|
|
63
|
+
return {
|
|
64
|
+
"ERef50" : self.getERef50(),
|
|
65
|
+
"ERefoed" : self.getERefoed(),
|
|
66
|
+
"ERefur" : self.getERefur(),
|
|
67
|
+
"M" : self.getM(),
|
|
68
|
+
"ReferencePressure" : self.getReferencePressure(),
|
|
69
|
+
"PoissonsRatio" : self.getPoissonsRatio(),
|
|
70
|
+
"Plimit" : self.getPlimit(),
|
|
71
|
+
"G0ref" : self.getG0ref(),
|
|
72
|
+
"Gama07" : self.getGama07(),
|
|
73
|
+
}
|