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,79 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
3
|
+
|
|
4
|
+
from rs2.modeler.properties.material.datum.PeakResidualDatum import PeakResidualDatum
|
|
5
|
+
from rs2.modeler.properties.material.datum.SimpleDatum import SimpleDatum
|
|
6
|
+
|
|
7
|
+
from rs2._common.Client import Client
|
|
8
|
+
from rs2.modeler.properties.AbsoluteStageFactorInterface import AbsoluteStageFactorInterface
|
|
9
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
10
|
+
|
|
11
|
+
class DatumValueStageFactorGetters(ProxyObject):
|
|
12
|
+
def getDatum(self) -> float:
|
|
13
|
+
return self._callFunction("getDatum")
|
|
14
|
+
def getChange(self) -> float:
|
|
15
|
+
return self._callFunction("getChange1")
|
|
16
|
+
def getResidualChange(self) -> float:
|
|
17
|
+
return self._callFunction("getChange2")
|
|
18
|
+
def getPeakCutoffValue(self) -> float:
|
|
19
|
+
return self._callFunction("getCutoff1")
|
|
20
|
+
def getResidualCutoffValue(self) -> float:
|
|
21
|
+
return self._callFunction("getCutoff2")
|
|
22
|
+
class DatumValueStageFactor(DatumValueStageFactorGetters):
|
|
23
|
+
def setDatum(self, depth : float):
|
|
24
|
+
self._callFunction("setDatum", [depth])
|
|
25
|
+
def setChange(self, change : float):
|
|
26
|
+
self._callFunction("setChange1", [change])
|
|
27
|
+
def setResidualChange(self, residualChange: float):
|
|
28
|
+
self._callFunction("setChange2", [residualChange])
|
|
29
|
+
def setPeakCutoffValue(self, peakCutoffValue: float):
|
|
30
|
+
self._callFunction("setCutoff1", [peakCutoffValue])
|
|
31
|
+
def setResidualCutoffValue(self, residualCutoffValue: float):
|
|
32
|
+
self._callFunction("setCutoff2", [residualCutoffValue])
|
|
33
|
+
|
|
34
|
+
class DatumStageFactor(ProxyObject):
|
|
35
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
36
|
+
super().__init__(client, ID)
|
|
37
|
+
self.propertyID = propertyID
|
|
38
|
+
def getDatumYoungsStageFactor(self) -> DatumValueStageFactorGetters:
|
|
39
|
+
return DatumValueStageFactorGetters(self._client, self._callFunction("getDatumYoungsStageFactorViewModel", keepReturnValueReference=True))
|
|
40
|
+
def getDatumCohesionStageFactor(self) -> DatumValueStageFactorGetters:
|
|
41
|
+
return DatumValueStageFactorGetters(self._client, self._callFunction("getDatumCohesionStageFactorViewModel", keepReturnValueReference=True))
|
|
42
|
+
def getDatumFrictionStageFactor(self) -> DatumValueStageFactorGetters:
|
|
43
|
+
return DatumValueStageFactorGetters(self._client, self._callFunction("getDatumFrictionStageFactorViewModel", keepReturnValueReference=True))
|
|
44
|
+
|
|
45
|
+
class DatumDefinedStageFactor(ProxyObject):
|
|
46
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
47
|
+
super().__init__(client, ID)
|
|
48
|
+
self.propertyID = propertyID
|
|
49
|
+
def getDatumYoungsStageFactor(self) -> DatumValueStageFactor:
|
|
50
|
+
return DatumValueStageFactor(self._client, self._callFunction("getDatumYoungsStageFactorViewModel", keepReturnValueReference=True))
|
|
51
|
+
def getDatumCohesionStageFactor(self) -> DatumValueStageFactor:
|
|
52
|
+
return DatumValueStageFactor(self._client, self._callFunction("getDatumCohesionStageFactorViewModel", keepReturnValueReference=True))
|
|
53
|
+
def getDatumFrictionStageFactor(self) -> DatumValueStageFactor:
|
|
54
|
+
return DatumValueStageFactor(self._client, self._callFunction("getDatumFrictionStageFactorViewModel", keepReturnValueReference=True))
|
|
55
|
+
|
|
56
|
+
class Datum(PropertyProxy):
|
|
57
|
+
"""
|
|
58
|
+
:ref:`Material Property Datum Example`
|
|
59
|
+
"""
|
|
60
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
61
|
+
super().__init__(client, ID, documentProxyID)
|
|
62
|
+
self.stageFactorInterface = AbsoluteStageFactorInterface[DatumDefinedStageFactor, DatumStageFactor](self._client, stageFactorInterfaceID, ID, DatumDefinedStageFactor, DatumStageFactor)
|
|
63
|
+
|
|
64
|
+
def setUsingDatum(self, use : bool):
|
|
65
|
+
self._callFunction("setUsingDatum", [use])
|
|
66
|
+
def getUsingDatum(self) -> bool:
|
|
67
|
+
return bool(self._callFunction("getUsingDatum"))
|
|
68
|
+
|
|
69
|
+
def getDatumUnloadingYoungsModulus(self) -> SimpleDatum:
|
|
70
|
+
return SimpleDatum(self._client, self._callFunction("getDatumUnloadingYoungsModulus", [], keepReturnValueReference=True), self.documentProxyID)
|
|
71
|
+
|
|
72
|
+
def getDatumYoungsModulus(self) -> SimpleDatum:
|
|
73
|
+
return SimpleDatum(self._client, self._callFunction("getDatumYoungsModulus", [], keepReturnValueReference=True), self.documentProxyID)
|
|
74
|
+
|
|
75
|
+
def getDatumCohesion(self) -> PeakResidualDatum:
|
|
76
|
+
return PeakResidualDatum(self._client, self._callFunction("getDatumCohesion", [], keepReturnValueReference=True), self.documentProxyID)
|
|
77
|
+
|
|
78
|
+
def getDatumFrictionAngle(self) -> PeakResidualDatum:
|
|
79
|
+
return PeakResidualDatum(self._client, self._callFunction("getDatumFriction", [], keepReturnValueReference=True), self.documentProxyID)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
3
|
+
|
|
4
|
+
from rs2.modeler.properties.material.datum.BaseDatum import BaseDatum
|
|
5
|
+
class PeakResidualDatum(BaseDatum):
|
|
6
|
+
def setPeakChange(self, peakChange: float):
|
|
7
|
+
self._callFunction("setChange1", [peakChange])
|
|
8
|
+
def getPeakChange(self) -> float:
|
|
9
|
+
return self._callFunction("getChange1")
|
|
10
|
+
def setUsePeakCutoff(self, usePeakCutoff : bool):
|
|
11
|
+
self._callFunction("setUsingCutoff1", [usePeakCutoff])
|
|
12
|
+
def getUsePeakCutoff(self) -> bool:
|
|
13
|
+
return bool(self._callFunction("getUsingCutoff1"))
|
|
14
|
+
def setPeakCutoffValue(self, peakCutoffValue: float):
|
|
15
|
+
self._callFunction("setCutoff1", [peakCutoffValue])
|
|
16
|
+
def getPeakCutoffValue(self) -> float:
|
|
17
|
+
return self._callFunction("getCutoff1")
|
|
18
|
+
def setResidualChange(self, residualChange: float):
|
|
19
|
+
self._callFunction("setChange2", [residualChange])
|
|
20
|
+
def getResidualChange(self) -> float:
|
|
21
|
+
return self._callFunction("getChange2")
|
|
22
|
+
def setUseResidualCutoff(self, useResidualCutoff):
|
|
23
|
+
self._callFunction("setUsingCutoff2", [useResidualCutoff])
|
|
24
|
+
def getUseResidualCutoff(self) -> bool:
|
|
25
|
+
return bool(self._callFunction("getUsingCutoff2"))
|
|
26
|
+
def setResidualCutoffValue(self, residualCutoffValue: float):
|
|
27
|
+
self._callFunction("setCutoff2", [residualCutoffValue])
|
|
28
|
+
def getResidualCutoffValue(self) -> float:
|
|
29
|
+
return self._callFunction("getCutoff2")
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
3
|
+
|
|
4
|
+
from rs2.modeler.properties.material.datum.BaseDatum import BaseDatum
|
|
5
|
+
class SimpleDatum(BaseDatum):
|
|
6
|
+
def setChange(self, change : float):
|
|
7
|
+
self._callFunction("setChange1", [change])
|
|
8
|
+
def getChange(self) -> float:
|
|
9
|
+
return self._callFunction("getChange1")
|
|
10
|
+
def setUseCutoff(self, useCutoff):
|
|
11
|
+
self._callFunction("setUsingCutoff1", [useCutoff])
|
|
12
|
+
def getUseCutoff(self) -> bool:
|
|
13
|
+
return bool(self._callFunction("getUsingCutoff1"))
|
|
14
|
+
def setCutoff(self, cutoff : float):
|
|
15
|
+
self._callFunction("setCutoff1", [cutoff])
|
|
16
|
+
def getCutoff(self) -> float:
|
|
17
|
+
return self._callFunction("getCutoff1")
|
|
File without changes
|
|
@@ -0,0 +1,106 @@
|
|
|
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 BrooksStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getBubblingPressureFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_BUBBLING_PRESSURE", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getPoreSizeIndexFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_PORE_SIZE_INDEX", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getKsFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_KS", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getWCSatFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getWCResFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getDoSSatFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getDoSResFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
class BrooksDefinedStageFactor(BrooksStageFactor):
|
|
27
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
28
|
+
super().__init__(client, ID, propertyID)
|
|
29
|
+
def setBubblingPressureFactor(self, value: float):
|
|
30
|
+
return self._callFunction("setDoubleFactor", ["MP_BUBBLING_PRESSURE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
31
|
+
def setPoreSizeIndexFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_PORE_SIZE_INDEX", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setKsFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_KS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setWCSatFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setWCResFactor(self, value: float):
|
|
38
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
39
|
+
def setDoSSatFactor(self, value: float):
|
|
40
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
|
+
def setDoSResFactor(self, value: float):
|
|
42
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
43
|
+
class Brooks(PropertyProxy):
|
|
44
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
45
|
+
super().__init__(client, ID, documentProxyID)
|
|
46
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[BrooksDefinedStageFactor, BrooksStageFactor](self._client, stageFactorInterfaceID, ID, BrooksDefinedStageFactor, BrooksStageFactor)
|
|
47
|
+
def getPoreSizeIndex(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_PORE_SIZE_INDEX")
|
|
49
|
+
def setPoreSizeIndex(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_PORE_SIZE_INDEX", value)
|
|
51
|
+
def getBubblingPressure(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_BUBBLING_PRESSURE")
|
|
53
|
+
def setBubblingPressure(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_BUBBLING_PRESSURE", value)
|
|
55
|
+
def getKs(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_KS")
|
|
57
|
+
def setKs(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_KS", value)
|
|
59
|
+
def getWCInputType(self) -> WCInputType:
|
|
60
|
+
return WCInputType(self._getEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE"))
|
|
61
|
+
def setWCInputType(self, value: WCInputType):
|
|
62
|
+
return self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", value)
|
|
63
|
+
def getWCSat(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_WC_SAT")
|
|
65
|
+
def setWCSat(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_WC_SAT", value)
|
|
67
|
+
def getWCRes(self) -> float:
|
|
68
|
+
return self._getDoubleProperty("MP_WC_RES")
|
|
69
|
+
def setWCRes(self, value: float):
|
|
70
|
+
return self._setDoubleProperty("MP_WC_RES", value)
|
|
71
|
+
def getDoSSat(self) -> float:
|
|
72
|
+
return self._getDoubleProperty("MP_DOS_SAT")
|
|
73
|
+
def setDoSSat(self, value: float):
|
|
74
|
+
return self._setDoubleProperty("MP_DOS_SAT", value)
|
|
75
|
+
def getDoSRes(self) -> float:
|
|
76
|
+
return self._getDoubleProperty("MP_DOS_RES")
|
|
77
|
+
def setDoSRes(self, value: float):
|
|
78
|
+
return self._setDoubleProperty("MP_DOS_RES", value)
|
|
79
|
+
def setProperties(self, PoreSizeIndex : float = None, BubblingPressure : float = None, Ks : float = None, WCInputType : WCInputType = None, WCSat : float = None, WCRes : float = None, DoSSat : float = None, DoSRes : float = None):
|
|
80
|
+
if PoreSizeIndex is not None:
|
|
81
|
+
self._setDoubleProperty("MP_PORE_SIZE_INDEX", PoreSizeIndex)
|
|
82
|
+
if BubblingPressure is not None:
|
|
83
|
+
self._setDoubleProperty("MP_BUBBLING_PRESSURE", BubblingPressure)
|
|
84
|
+
if Ks is not None:
|
|
85
|
+
self._setDoubleProperty("MP_KS", Ks)
|
|
86
|
+
if WCInputType is not None:
|
|
87
|
+
self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", WCInputType)
|
|
88
|
+
if WCSat is not None:
|
|
89
|
+
self._setDoubleProperty("MP_WC_SAT", WCSat)
|
|
90
|
+
if WCRes is not None:
|
|
91
|
+
self._setDoubleProperty("MP_WC_RES", WCRes)
|
|
92
|
+
if DoSSat is not None:
|
|
93
|
+
self._setDoubleProperty("MP_DOS_SAT", DoSSat)
|
|
94
|
+
if DoSRes is not None:
|
|
95
|
+
self._setDoubleProperty("MP_DOS_RES", DoSRes)
|
|
96
|
+
def getProperties(self):
|
|
97
|
+
return {
|
|
98
|
+
"PoreSizeIndex" : self.getPoreSizeIndex(),
|
|
99
|
+
"BubblingPressure" : self.getBubblingPressure(),
|
|
100
|
+
"Ks" : self.getKs(),
|
|
101
|
+
"WCInputType" : self.getWCInputType(),
|
|
102
|
+
"WCSat" : self.getWCSat(),
|
|
103
|
+
"WCRes" : self.getWCRes(),
|
|
104
|
+
"DoSSat" : self.getDoSSat(),
|
|
105
|
+
"DoSRes" : self.getDoSRes(),
|
|
106
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 ConstantStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getWCCurveSlopeFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_SLOPE", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
class ConstantDefinedStageFactor(ConstantStageFactor):
|
|
15
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
16
|
+
super().__init__(client, ID, propertyID)
|
|
17
|
+
def setWCCurveSlopeFactor(self, value: float):
|
|
18
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_SLOPE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
19
|
+
class Constant(PropertyProxy):
|
|
20
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
21
|
+
super().__init__(client, ID, documentProxyID)
|
|
22
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[ConstantDefinedStageFactor, ConstantStageFactor](self._client, stageFactorInterfaceID, ID, ConstantDefinedStageFactor, ConstantStageFactor)
|
|
23
|
+
def getUseCV(self) -> bool:
|
|
24
|
+
return self._getBoolProperty("MP_USE_CV")
|
|
25
|
+
def setUseCV(self, value: bool):
|
|
26
|
+
return self._setBoolProperty("MP_USE_CV", value)
|
|
27
|
+
def getCV(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_CV")
|
|
29
|
+
def setCV(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_CV", value)
|
|
31
|
+
def getInitialK(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_INITIAL_K")
|
|
33
|
+
def setInitialK(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_INITIAL_K", value)
|
|
35
|
+
def getWCCurveSlope(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_WC_SLOPE")
|
|
37
|
+
def setWCCurveSlope(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_WC_SLOPE", value)
|
|
39
|
+
def setProperties(self, UseCV : bool = None, CV : float = None, InitialK : float = None, WCCurveSlope : float = None):
|
|
40
|
+
if UseCV is not None:
|
|
41
|
+
self._setBoolProperty("MP_USE_CV", UseCV)
|
|
42
|
+
if CV is not None:
|
|
43
|
+
self._setDoubleProperty("MP_CV", CV)
|
|
44
|
+
if InitialK is not None:
|
|
45
|
+
self._setDoubleProperty("MP_INITIAL_K", InitialK)
|
|
46
|
+
if WCCurveSlope is not None:
|
|
47
|
+
self._setDoubleProperty("MP_WC_SLOPE", WCCurveSlope)
|
|
48
|
+
def getProperties(self):
|
|
49
|
+
return {
|
|
50
|
+
"UseCV" : self.getUseCV(),
|
|
51
|
+
"CV" : self.getCV(),
|
|
52
|
+
"InitialK" : self.getInitialK(),
|
|
53
|
+
"WCCurveSlope" : self.getWCCurveSlope(),
|
|
54
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.Simple import Simple
|
|
7
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.Fredlund import Fredlund
|
|
8
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.Genuchten import Genuchten
|
|
9
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.Brooks import Brooks
|
|
10
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.Gardner import Gardner
|
|
11
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.Constant import Constant
|
|
12
|
+
from rs2.modeler.properties.material.hydraulic.FEAGroundwater.UserDefined import UserDefined
|
|
13
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
14
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
15
|
+
class FEAGroundwaterStageFactor(ProxyObject):
|
|
16
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
17
|
+
super().__init__(client, ID)
|
|
18
|
+
self.propertyID = propertyID
|
|
19
|
+
def getK1AngleFactor(self) -> float:
|
|
20
|
+
return self._callFunction("getDoubleFactor", ["MP_K1_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
21
|
+
def getK2K1Factor(self) -> float:
|
|
22
|
+
return self._callFunction("getDoubleFactor", ["MP_K2_K1", self.propertyID], proxyArgumentIndices=[1])
|
|
23
|
+
def getMvFactor(self) -> float:
|
|
24
|
+
return self._callFunction("getDoubleFactor", ["MP_MV", self.propertyID], proxyArgumentIndices=[1])
|
|
25
|
+
def getAnisotropicSurfaceFactor(self) -> str:
|
|
26
|
+
return self._callFunction("getSurfaceFactor", [self.propertyID], proxyArgumentIndices=[0])
|
|
27
|
+
class FEAGroundwaterDefinedStageFactor(FEAGroundwaterStageFactor):
|
|
28
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
29
|
+
super().__init__(client, ID, propertyID)
|
|
30
|
+
def setK1AngleFactor(self, value: float):
|
|
31
|
+
return self._callFunction("setDoubleFactor", ["MP_K1_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
32
|
+
def setK2K1Factor(self, value: float):
|
|
33
|
+
return self._callFunction("setDoubleFactor", ["MP_K2_K1", value, self.propertyID], proxyArgumentIndices=[2])
|
|
34
|
+
def setMvFactor(self, value: float):
|
|
35
|
+
return self._callFunction("setDoubleFactor", ["MP_MV", value, self.propertyID], proxyArgumentIndices=[2])
|
|
36
|
+
def setAnisotropicSurfaceFactor(self, surfaceName: str):
|
|
37
|
+
return self._callFunction("setSurfaceFactor", [surfaceName, self.propertyID], proxyArgumentIndices=[1])
|
|
38
|
+
class FEAGroundwater(PropertyProxy):
|
|
39
|
+
"""
|
|
40
|
+
:ref:`Hydraulic Property FEAGroundwater Example`
|
|
41
|
+
"""
|
|
42
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
43
|
+
super().__init__(client, ID, documentProxyID)
|
|
44
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[FEAGroundwaterDefinedStageFactor, FEAGroundwaterStageFactor](self._client, stageFactorInterfaceID, ID, FEAGroundwaterDefinedStageFactor, FEAGroundwaterStageFactor)
|
|
45
|
+
self.Simple = Simple(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
46
|
+
self.Fredlund = Fredlund(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
47
|
+
self.Genuchten = Genuchten(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
48
|
+
self.Brooks = Brooks(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
49
|
+
self.Gardner = Gardner(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
50
|
+
self.Constant = Constant(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
51
|
+
self.UserDefined = UserDefined(client, ID, documentProxyID)
|
|
52
|
+
def getModel(self) -> GroundWaterModes:
|
|
53
|
+
return GroundWaterModes(self._getEnumEGroundWaterModesProperty("MP_HYDRAULIC_MODEL"))
|
|
54
|
+
def setModel(self, value: GroundWaterModes):
|
|
55
|
+
return self._setEnumEGroundWaterModesProperty("MP_HYDRAULIC_MODEL", value)
|
|
56
|
+
def getK2K1(self) -> float:
|
|
57
|
+
return self._getDoubleProperty("MP_K2_K1")
|
|
58
|
+
def setK2K1(self, value: float):
|
|
59
|
+
return self._setDoubleProperty("MP_K2_K1", value)
|
|
60
|
+
def getK1Definition(self) -> AnisotropyDefinitions:
|
|
61
|
+
return AnisotropyDefinitions(self._getEnumEAnisotropyDefinitionsProperty("MP_K1_DEFINITION"))
|
|
62
|
+
def setK1Definition(self, value: AnisotropyDefinitions):
|
|
63
|
+
return self._setEnumEAnisotropyDefinitionsProperty("MP_K1_DEFINITION", value)
|
|
64
|
+
def getK1Angle(self) -> float:
|
|
65
|
+
return self._getDoubleProperty("MP_K1_ANGLE")
|
|
66
|
+
def setK1Angle(self, value: float):
|
|
67
|
+
return self._setDoubleProperty("MP_K1_ANGLE", value)
|
|
68
|
+
def getMvModel(self) -> MVModel:
|
|
69
|
+
return MVModel(self._getEnumEMVModelProperty("MP_MV_MODEL"))
|
|
70
|
+
def setMvModel(self, value: MVModel):
|
|
71
|
+
return self._setEnumEMVModelProperty("MP_MV_MODEL", value)
|
|
72
|
+
def getMv(self) -> float:
|
|
73
|
+
return self._getDoubleProperty("MP_MV")
|
|
74
|
+
def setMv(self, value: float):
|
|
75
|
+
return self._setDoubleProperty("MP_MV", value)
|
|
76
|
+
def setK1SurfaceToUseByName(self, surfaceName: str):
|
|
77
|
+
"""
|
|
78
|
+
surfaceName is the name of the surface to be used. Surface must be present in the model.
|
|
79
|
+
"""
|
|
80
|
+
return self._callFunction("setK1SurfaceToUseByName", [surfaceName])
|
|
81
|
+
def getK1SurfaceToUse(self) -> str:
|
|
82
|
+
return self._callFunction("getK1SurfaceToUse", [])
|
|
@@ -0,0 +1,117 @@
|
|
|
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 FredlundStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getAFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_FREDLUND_XING_A", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getBFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_FREDLUND_XING_B", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getCFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_FREDLUND_XING_C", 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 FredlundDefinedStageFactor(FredlundStageFactor):
|
|
29
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
30
|
+
super().__init__(client, ID, propertyID)
|
|
31
|
+
def setAFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_FREDLUND_XING_A", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setBFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_FREDLUND_XING_B", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setCFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_FREDLUND_XING_C", 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 Fredlund(PropertyProxy):
|
|
48
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
49
|
+
super().__init__(client, ID, documentProxyID)
|
|
50
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[FredlundDefinedStageFactor, FredlundStageFactor](self._client, stageFactorInterfaceID, ID, FredlundDefinedStageFactor, FredlundStageFactor)
|
|
51
|
+
def getA(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_FREDLUND_XING_A")
|
|
53
|
+
def setA(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_FREDLUND_XING_A", value)
|
|
55
|
+
def getB(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_FREDLUND_XING_B")
|
|
57
|
+
def setB(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_FREDLUND_XING_B", value)
|
|
59
|
+
def getC(self) -> float:
|
|
60
|
+
return self._getDoubleProperty("MP_FREDLUND_XING_C")
|
|
61
|
+
def setC(self, value: float):
|
|
62
|
+
return self._setDoubleProperty("MP_FREDLUND_XING_C", value)
|
|
63
|
+
def getKs(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_KS")
|
|
65
|
+
def setKs(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_KS", value)
|
|
67
|
+
def getWCInputType(self) -> WCInputType:
|
|
68
|
+
return WCInputType(self._getEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE"))
|
|
69
|
+
def setWCInputType(self, value: WCInputType):
|
|
70
|
+
return self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", value)
|
|
71
|
+
def getWCSat(self) -> float:
|
|
72
|
+
return self._getDoubleProperty("MP_WC_SAT")
|
|
73
|
+
def setWCSat(self, value: float):
|
|
74
|
+
return self._setDoubleProperty("MP_WC_SAT", value)
|
|
75
|
+
def getWCRes(self) -> float:
|
|
76
|
+
return self._getDoubleProperty("MP_WC_RES")
|
|
77
|
+
def setWCRes(self, value: float):
|
|
78
|
+
return self._setDoubleProperty("MP_WC_RES", value)
|
|
79
|
+
def getDoSSat(self) -> float:
|
|
80
|
+
return self._getDoubleProperty("MP_DOS_SAT")
|
|
81
|
+
def setDoSSat(self, value: float):
|
|
82
|
+
return self._setDoubleProperty("MP_DOS_SAT", value)
|
|
83
|
+
def getDoSRes(self) -> float:
|
|
84
|
+
return self._getDoubleProperty("MP_DOS_RES")
|
|
85
|
+
def setDoSRes(self, value: float):
|
|
86
|
+
return self._setDoubleProperty("MP_DOS_RES", value)
|
|
87
|
+
def setProperties(self, A : float = None, B : float = None, C : float = None, Ks : float = None, WCInputType : WCInputType = None, WCSat : float = None, WCRes : float = None, DoSSat : float = None, DoSRes : float = None):
|
|
88
|
+
if A is not None:
|
|
89
|
+
self._setDoubleProperty("MP_FREDLUND_XING_A", A)
|
|
90
|
+
if B is not None:
|
|
91
|
+
self._setDoubleProperty("MP_FREDLUND_XING_B", B)
|
|
92
|
+
if C is not None:
|
|
93
|
+
self._setDoubleProperty("MP_FREDLUND_XING_C", C)
|
|
94
|
+
if Ks is not None:
|
|
95
|
+
self._setDoubleProperty("MP_KS", Ks)
|
|
96
|
+
if WCInputType is not None:
|
|
97
|
+
self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", WCInputType)
|
|
98
|
+
if WCSat is not None:
|
|
99
|
+
self._setDoubleProperty("MP_WC_SAT", WCSat)
|
|
100
|
+
if WCRes is not None:
|
|
101
|
+
self._setDoubleProperty("MP_WC_RES", WCRes)
|
|
102
|
+
if DoSSat is not None:
|
|
103
|
+
self._setDoubleProperty("MP_DOS_SAT", DoSSat)
|
|
104
|
+
if DoSRes is not None:
|
|
105
|
+
self._setDoubleProperty("MP_DOS_RES", DoSRes)
|
|
106
|
+
def getProperties(self):
|
|
107
|
+
return {
|
|
108
|
+
"A" : self.getA(),
|
|
109
|
+
"B" : self.getB(),
|
|
110
|
+
"C" : self.getC(),
|
|
111
|
+
"Ks" : self.getKs(),
|
|
112
|
+
"WCInputType" : self.getWCInputType(),
|
|
113
|
+
"WCSat" : self.getWCSat(),
|
|
114
|
+
"WCRes" : self.getWCRes(),
|
|
115
|
+
"DoSSat" : self.getDoSSat(),
|
|
116
|
+
"DoSRes" : self.getDoSRes(),
|
|
117
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 GardnerStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getAFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_GARDNER_A", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getNFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_GARDNER_N", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getKsFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_KS", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getWCSatFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getWCResFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_WC_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getDoSSatFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_SAT", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getDoSResFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["MP_DOS_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
class GardnerDefinedStageFactor(GardnerStageFactor):
|
|
27
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
28
|
+
super().__init__(client, ID, propertyID)
|
|
29
|
+
def setAFactor(self, value: float):
|
|
30
|
+
return self._callFunction("setDoubleFactor", ["MP_GARDNER_A", value, self.propertyID], proxyArgumentIndices=[2])
|
|
31
|
+
def setNFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_GARDNER_N", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setKsFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_KS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setWCSatFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setWCResFactor(self, value: float):
|
|
38
|
+
return self._callFunction("setDoubleFactor", ["MP_WC_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
39
|
+
def setDoSSatFactor(self, value: float):
|
|
40
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_SAT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
|
+
def setDoSResFactor(self, value: float):
|
|
42
|
+
return self._callFunction("setDoubleFactor", ["MP_DOS_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
43
|
+
class Gardner(PropertyProxy):
|
|
44
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
45
|
+
super().__init__(client, ID, documentProxyID)
|
|
46
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[GardnerDefinedStageFactor, GardnerStageFactor](self._client, stageFactorInterfaceID, ID, GardnerDefinedStageFactor, GardnerStageFactor)
|
|
47
|
+
def getA(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_GARDNER_A")
|
|
49
|
+
def setA(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_GARDNER_A", value)
|
|
51
|
+
def getN(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_GARDNER_N")
|
|
53
|
+
def setN(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_GARDNER_N", value)
|
|
55
|
+
def getKs(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_KS")
|
|
57
|
+
def setKs(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_KS", value)
|
|
59
|
+
def getWCInputType(self) -> WCInputType:
|
|
60
|
+
return WCInputType(self._getEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE"))
|
|
61
|
+
def setWCInputType(self, value: WCInputType):
|
|
62
|
+
return self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", value)
|
|
63
|
+
def getWCSat(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_WC_SAT")
|
|
65
|
+
def setWCSat(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_WC_SAT", value)
|
|
67
|
+
def getWCRes(self) -> float:
|
|
68
|
+
return self._getDoubleProperty("MP_WC_RES")
|
|
69
|
+
def setWCRes(self, value: float):
|
|
70
|
+
return self._setDoubleProperty("MP_WC_RES", value)
|
|
71
|
+
def getDoSSat(self) -> float:
|
|
72
|
+
return self._getDoubleProperty("MP_DOS_SAT")
|
|
73
|
+
def setDoSSat(self, value: float):
|
|
74
|
+
return self._setDoubleProperty("MP_DOS_SAT", value)
|
|
75
|
+
def getDoSRes(self) -> float:
|
|
76
|
+
return self._getDoubleProperty("MP_DOS_RES")
|
|
77
|
+
def setDoSRes(self, value: float):
|
|
78
|
+
return self._setDoubleProperty("MP_DOS_RES", value)
|
|
79
|
+
def setProperties(self, A : float = None, N : float = None, Ks : float = None, WCInputType : WCInputType = None, WCSat : float = None, WCRes : float = None, DoSSat : float = None, DoSRes : float = None):
|
|
80
|
+
if A is not None:
|
|
81
|
+
self._setDoubleProperty("MP_GARDNER_A", A)
|
|
82
|
+
if N is not None:
|
|
83
|
+
self._setDoubleProperty("MP_GARDNER_N", N)
|
|
84
|
+
if Ks is not None:
|
|
85
|
+
self._setDoubleProperty("MP_KS", Ks)
|
|
86
|
+
if WCInputType is not None:
|
|
87
|
+
self._setEnumEWCInputTypeProperty("MP_WC_INPUT_TYPE", WCInputType)
|
|
88
|
+
if WCSat is not None:
|
|
89
|
+
self._setDoubleProperty("MP_WC_SAT", WCSat)
|
|
90
|
+
if WCRes is not None:
|
|
91
|
+
self._setDoubleProperty("MP_WC_RES", WCRes)
|
|
92
|
+
if DoSSat is not None:
|
|
93
|
+
self._setDoubleProperty("MP_DOS_SAT", DoSSat)
|
|
94
|
+
if DoSRes is not None:
|
|
95
|
+
self._setDoubleProperty("MP_DOS_RES", DoSRes)
|
|
96
|
+
def getProperties(self):
|
|
97
|
+
return {
|
|
98
|
+
"A" : self.getA(),
|
|
99
|
+
"N" : self.getN(),
|
|
100
|
+
"Ks" : self.getKs(),
|
|
101
|
+
"WCInputType" : self.getWCInputType(),
|
|
102
|
+
"WCSat" : self.getWCSat(),
|
|
103
|
+
"WCRes" : self.getWCRes(),
|
|
104
|
+
"DoSSat" : self.getDoSSat(),
|
|
105
|
+
"DoSRes" : self.getDoSRes(),
|
|
106
|
+
}
|