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,59 @@
|
|
|
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 Hyperbolic(PropertyProxy):
|
|
7
|
+
def getMaterialType(self) -> MaterialType:
|
|
8
|
+
return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
|
|
9
|
+
def setMaterialType(self, value: MaterialType):
|
|
10
|
+
return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
|
|
11
|
+
def getPeakFrictionAngle(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_PEAK_FRICTION_ANGLE")
|
|
13
|
+
def setPeakFrictionAngle(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", value)
|
|
15
|
+
def getPeakCohesion(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_PEAK_COHESION")
|
|
17
|
+
def setPeakCohesion(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_PEAK_COHESION", value)
|
|
19
|
+
def getResidualFrictionAngle(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_FRICTION_ANGLE_RES")
|
|
21
|
+
def setResidualFrictionAngle(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_FRICTION_ANGLE_RES", value)
|
|
23
|
+
def getResidualCohesion(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_COHESION_RES")
|
|
25
|
+
def setResidualCohesion(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_COHESION_RES", value)
|
|
27
|
+
def getDilationRatio(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_DILATION_RATIO")
|
|
29
|
+
def setDilationRatio(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_DILATION_RATIO", value)
|
|
31
|
+
def getApplySSRShearStrengthReduction(self) -> bool:
|
|
32
|
+
return self._getBoolProperty("MP_APPLY_SSR")
|
|
33
|
+
def setApplySSRShearStrengthReduction(self, value: bool):
|
|
34
|
+
return self._setBoolProperty("MP_APPLY_SSR", value)
|
|
35
|
+
def setProperties(self, MaterialType : MaterialType = None, PeakFrictionAngle : float = None, PeakCohesion : float = None, ResidualFrictionAngle : float = None, ResidualCohesion : float = None, DilationRatio : float = None, ApplySSRShearStrengthReduction : bool = None):
|
|
36
|
+
if MaterialType is not None:
|
|
37
|
+
self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
|
|
38
|
+
if PeakFrictionAngle is not None:
|
|
39
|
+
self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", PeakFrictionAngle)
|
|
40
|
+
if PeakCohesion is not None:
|
|
41
|
+
self._setDoubleProperty("MP_PEAK_COHESION", PeakCohesion)
|
|
42
|
+
if ResidualFrictionAngle is not None:
|
|
43
|
+
self._setDoubleProperty("MP_FRICTION_ANGLE_RES", ResidualFrictionAngle)
|
|
44
|
+
if ResidualCohesion is not None:
|
|
45
|
+
self._setDoubleProperty("MP_COHESION_RES", ResidualCohesion)
|
|
46
|
+
if DilationRatio is not None:
|
|
47
|
+
self._setDoubleProperty("MP_DILATION_RATIO", DilationRatio)
|
|
48
|
+
if ApplySSRShearStrengthReduction is not None:
|
|
49
|
+
self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
|
|
50
|
+
def getProperties(self):
|
|
51
|
+
return {
|
|
52
|
+
"MaterialType" : self.getMaterialType(),
|
|
53
|
+
"PeakFrictionAngle" : self.getPeakFrictionAngle(),
|
|
54
|
+
"PeakCohesion" : self.getPeakCohesion(),
|
|
55
|
+
"ResidualFrictionAngle" : self.getResidualFrictionAngle(),
|
|
56
|
+
"ResidualCohesion" : self.getResidualCohesion(),
|
|
57
|
+
"DilationRatio" : self.getDilationRatio(),
|
|
58
|
+
"ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
|
|
59
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
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.MaterialJointOptions import MaterialJointOptions
|
|
7
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
8
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
9
|
+
class JointedGeneralizedHoekBrownStageFactor(ProxyObject):
|
|
10
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
11
|
+
super().__init__(client, ID)
|
|
12
|
+
self.propertyID = propertyID
|
|
13
|
+
def getAParameterFactor(self) -> float:
|
|
14
|
+
return self._callFunction("getDoubleFactor", ["MP_A_PARAMETER", self.propertyID], proxyArgumentIndices=[1])
|
|
15
|
+
def getResidualAParameterFactor(self) -> float:
|
|
16
|
+
return self._callFunction("getDoubleFactor", ["MP_A_PARAMETER_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
17
|
+
def getCompressiveStrengthFactor(self) -> float:
|
|
18
|
+
return self._callFunction("getDoubleFactor", ["MP_COMPRESSIVE_STRENGTH", self.propertyID], proxyArgumentIndices=[1])
|
|
19
|
+
def getDilationParameterFactor(self) -> float:
|
|
20
|
+
return self._callFunction("getDoubleFactor", ["MP_DILATION_PARAMETER", self.propertyID], proxyArgumentIndices=[1])
|
|
21
|
+
def getMbParameterFactor(self) -> float:
|
|
22
|
+
return self._callFunction("getDoubleFactor", ["MP_MB_PARAMETER", self.propertyID], proxyArgumentIndices=[1])
|
|
23
|
+
def getResidualMbParameterFactor(self) -> float:
|
|
24
|
+
return self._callFunction("getDoubleFactor", ["MP_MB_PARAMETER_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
25
|
+
def getHoekMartinMiFactor(self) -> float:
|
|
26
|
+
return self._callFunction("getDoubleFactor", ["MP_MI_TENSION_CUTOFF", self.propertyID], proxyArgumentIndices=[1])
|
|
27
|
+
def getSParameterFactor(self) -> float:
|
|
28
|
+
return self._callFunction("getDoubleFactor", ["MP_S_PARAMETER", self.propertyID], proxyArgumentIndices=[1])
|
|
29
|
+
def getResidualSParameterFactor(self) -> float:
|
|
30
|
+
return self._callFunction("getDoubleFactor", ["MP_S_PARAMETER_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
31
|
+
def getTensileCutoffFactor(self) -> float:
|
|
32
|
+
return self._callFunction("getDoubleFactor", ["MP_UD_TENSION_CUTOFF", self.propertyID], proxyArgumentIndices=[1])
|
|
33
|
+
class JointedGeneralizedHoekBrownDefinedStageFactor(JointedGeneralizedHoekBrownStageFactor):
|
|
34
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
35
|
+
super().__init__(client, ID, propertyID)
|
|
36
|
+
def setAParameterFactor(self, value: float):
|
|
37
|
+
return self._callFunction("setDoubleFactor", ["MP_A_PARAMETER", value, self.propertyID], proxyArgumentIndices=[2])
|
|
38
|
+
def setResidualAParameterFactor(self, value: float):
|
|
39
|
+
return self._callFunction("setDoubleFactor", ["MP_A_PARAMETER_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
40
|
+
def setCompressiveStrengthFactor(self, value: float):
|
|
41
|
+
return self._callFunction("setDoubleFactor", ["MP_COMPRESSIVE_STRENGTH", value, self.propertyID], proxyArgumentIndices=[2])
|
|
42
|
+
def setDilationParameterFactor(self, value: float):
|
|
43
|
+
return self._callFunction("setDoubleFactor", ["MP_DILATION_PARAMETER", value, self.propertyID], proxyArgumentIndices=[2])
|
|
44
|
+
def setMbParameterFactor(self, value: float):
|
|
45
|
+
return self._callFunction("setDoubleFactor", ["MP_MB_PARAMETER", value, self.propertyID], proxyArgumentIndices=[2])
|
|
46
|
+
def setResidualMbParameterFactor(self, value: float):
|
|
47
|
+
return self._callFunction("setDoubleFactor", ["MP_MB_PARAMETER_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
48
|
+
def setHoekMartinMiFactor(self, value: float):
|
|
49
|
+
return self._callFunction("setDoubleFactor", ["MP_MI_TENSION_CUTOFF", value, self.propertyID], proxyArgumentIndices=[2])
|
|
50
|
+
def setSParameterFactor(self, value: float):
|
|
51
|
+
return self._callFunction("setDoubleFactor", ["MP_S_PARAMETER", value, self.propertyID], proxyArgumentIndices=[2])
|
|
52
|
+
def setResidualSParameterFactor(self, value: float):
|
|
53
|
+
return self._callFunction("setDoubleFactor", ["MP_S_PARAMETER_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
54
|
+
def setTensileCutoffFactor(self, value: float):
|
|
55
|
+
return self._callFunction("setDoubleFactor", ["MP_UD_TENSION_CUTOFF", value, self.propertyID], proxyArgumentIndices=[2])
|
|
56
|
+
class JointedGeneralizedHoekBrown(PropertyProxy):
|
|
57
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
58
|
+
super().__init__(client, ID, documentProxyID)
|
|
59
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[JointedGeneralizedHoekBrownDefinedStageFactor, JointedGeneralizedHoekBrownStageFactor](self._client, stageFactorInterfaceID, ID, JointedGeneralizedHoekBrownDefinedStageFactor, JointedGeneralizedHoekBrownStageFactor)
|
|
60
|
+
def getMaterialType(self) -> MaterialType:
|
|
61
|
+
return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
|
|
62
|
+
def setMaterialType(self, value: MaterialType):
|
|
63
|
+
return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
|
|
64
|
+
def getCompressiveStrength(self) -> float:
|
|
65
|
+
return self._getDoubleProperty("MP_COMPRESSIVE_STRENGTH")
|
|
66
|
+
def setCompressiveStrength(self, value: float):
|
|
67
|
+
return self._setDoubleProperty("MP_COMPRESSIVE_STRENGTH", value)
|
|
68
|
+
def getMbParameter(self) -> float:
|
|
69
|
+
return self._getDoubleProperty("MP_MB_PARAMETER")
|
|
70
|
+
def setMbParameter(self, value: float):
|
|
71
|
+
return self._setDoubleProperty("MP_MB_PARAMETER", value)
|
|
72
|
+
def getSParameter(self) -> float:
|
|
73
|
+
return self._getDoubleProperty("MP_S_PARAMETER")
|
|
74
|
+
def setSParameter(self, value: float):
|
|
75
|
+
return self._setDoubleProperty("MP_S_PARAMETER", value)
|
|
76
|
+
def getAParameter(self) -> float:
|
|
77
|
+
return self._getDoubleProperty("MP_A_PARAMETER")
|
|
78
|
+
def setAParameter(self, value: float):
|
|
79
|
+
return self._setDoubleProperty("MP_A_PARAMETER", value)
|
|
80
|
+
def getGSIParameter(self) -> float:
|
|
81
|
+
return self._getDoubleProperty("MP_GSI_PARAMETER")
|
|
82
|
+
def setGSIParameter(self, value: float):
|
|
83
|
+
return self._setDoubleProperty("MP_GSI_PARAMETER", value)
|
|
84
|
+
def getMiParameter(self) -> float:
|
|
85
|
+
return self._getDoubleProperty("MP_MI_PARAMETER")
|
|
86
|
+
def setMiParameter(self, value: float):
|
|
87
|
+
return self._setDoubleProperty("MP_MI_PARAMETER", value)
|
|
88
|
+
def getDParameter(self) -> float:
|
|
89
|
+
return self._getDoubleProperty("MP_D_PARAMETER")
|
|
90
|
+
def setDParameter(self, value: float):
|
|
91
|
+
return self._setDoubleProperty("MP_D_PARAMETER", value)
|
|
92
|
+
def getTensileCutoffType(self) -> TensileCutoffOptions:
|
|
93
|
+
return TensileCutoffOptions(self._getEnumETensileCutoffOptionsProperty("MP_TENSION_CUTOFF_OPTIONS"))
|
|
94
|
+
def setTensileCutoffType(self, value: TensileCutoffOptions):
|
|
95
|
+
return self._setEnumETensileCutoffOptionsProperty("MP_TENSION_CUTOFF_OPTIONS", value)
|
|
96
|
+
def getTensileCutoff(self) -> float:
|
|
97
|
+
return self._getDoubleProperty("MP_UD_TENSION_CUTOFF")
|
|
98
|
+
def setTensileCutoff(self, value: float):
|
|
99
|
+
return self._setDoubleProperty("MP_UD_TENSION_CUTOFF", value)
|
|
100
|
+
def getHoekMartinMi(self) -> float:
|
|
101
|
+
return self._getDoubleProperty("MP_MI_TENSION_CUTOFF")
|
|
102
|
+
def setHoekMartinMi(self, value: float):
|
|
103
|
+
return self._setDoubleProperty("MP_MI_TENSION_CUTOFF", value)
|
|
104
|
+
def getResidualMbParameter(self) -> float:
|
|
105
|
+
return self._getDoubleProperty("MP_MB_PARAMETER_RES")
|
|
106
|
+
def setResidualMbParameter(self, value: float):
|
|
107
|
+
return self._setDoubleProperty("MP_MB_PARAMETER_RES", value)
|
|
108
|
+
def getResidualSParameter(self) -> float:
|
|
109
|
+
return self._getDoubleProperty("MP_S_PARAMETER_RES")
|
|
110
|
+
def setResidualSParameter(self, value: float):
|
|
111
|
+
return self._setDoubleProperty("MP_S_PARAMETER_RES", value)
|
|
112
|
+
def getResidualAParameter(self) -> float:
|
|
113
|
+
return self._getDoubleProperty("MP_A_PARAMETER_RES")
|
|
114
|
+
def setResidualAParameter(self, value: float):
|
|
115
|
+
return self._setDoubleProperty("MP_A_PARAMETER_RES", value)
|
|
116
|
+
def getResidualGSIParameter(self) -> float:
|
|
117
|
+
return self._getDoubleProperty("MP_GSI_PARAMETER_RES")
|
|
118
|
+
def setResidualGSIParameter(self, value: float):
|
|
119
|
+
return self._setDoubleProperty("MP_GSI_PARAMETER_RES", value)
|
|
120
|
+
def getResidualMiParameter(self) -> float:
|
|
121
|
+
return self._getDoubleProperty("MP_MI_PARAMETER_RES")
|
|
122
|
+
def setResidualMiParameter(self, value: float):
|
|
123
|
+
return self._setDoubleProperty("MP_MI_PARAMETER_RES", value)
|
|
124
|
+
def getResidualDParameter(self) -> float:
|
|
125
|
+
return self._getDoubleProperty("MP_D_PARAMETER_RES")
|
|
126
|
+
def setResidualDParameter(self, value: float):
|
|
127
|
+
return self._setDoubleProperty("MP_D_PARAMETER_RES", value)
|
|
128
|
+
def getDilationParameter(self) -> float:
|
|
129
|
+
return self._getDoubleProperty("MP_DILATION_PARAMETER")
|
|
130
|
+
def setDilationParameter(self, value: float):
|
|
131
|
+
return self._setDoubleProperty("MP_DILATION_PARAMETER", value)
|
|
132
|
+
def getApplySSRShearStrengthReduction(self) -> bool:
|
|
133
|
+
return self._getBoolProperty("MP_APPLY_SSR")
|
|
134
|
+
def setApplySSRShearStrengthReduction(self, value: bool):
|
|
135
|
+
return self._setBoolProperty("MP_APPLY_SSR", value)
|
|
136
|
+
def getJointOptions(self) -> MaterialJointOptions:
|
|
137
|
+
return MaterialJointOptions(self._client, self._callFunction("getJointOptions", [], keepReturnValueReference = True), self.documentProxyID)
|
|
138
|
+
def setProperties(self, MaterialType : MaterialType = None, CompressiveStrength : float = None, MbParameter : float = None, SParameter : float = None, AParameter : float = None, GSIParameter : float = None, MiParameter : float = None, DParameter : float = None, TensileCutoffType : TensileCutoffOptions = None, TensileCutoff : float = None, HoekMartinMi : float = None, ResidualMbParameter : float = None, ResidualSParameter : float = None, ResidualAParameter : float = None, ResidualGSIParameter : float = None, ResidualMiParameter : float = None, ResidualDParameter : float = None, DilationParameter : float = None, ApplySSRShearStrengthReduction : bool = None):
|
|
139
|
+
if MaterialType is not None:
|
|
140
|
+
self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
|
|
141
|
+
if CompressiveStrength is not None:
|
|
142
|
+
self._setDoubleProperty("MP_COMPRESSIVE_STRENGTH", CompressiveStrength)
|
|
143
|
+
if MbParameter is not None:
|
|
144
|
+
self._setDoubleProperty("MP_MB_PARAMETER", MbParameter)
|
|
145
|
+
if SParameter is not None:
|
|
146
|
+
self._setDoubleProperty("MP_S_PARAMETER", SParameter)
|
|
147
|
+
if AParameter is not None:
|
|
148
|
+
self._setDoubleProperty("MP_A_PARAMETER", AParameter)
|
|
149
|
+
if GSIParameter is not None:
|
|
150
|
+
self._setDoubleProperty("MP_GSI_PARAMETER", GSIParameter)
|
|
151
|
+
if MiParameter is not None:
|
|
152
|
+
self._setDoubleProperty("MP_MI_PARAMETER", MiParameter)
|
|
153
|
+
if DParameter is not None:
|
|
154
|
+
self._setDoubleProperty("MP_D_PARAMETER", DParameter)
|
|
155
|
+
if TensileCutoffType is not None:
|
|
156
|
+
self._setEnumETensileCutoffOptionsProperty("MP_TENSION_CUTOFF_OPTIONS", TensileCutoffType)
|
|
157
|
+
if TensileCutoff is not None:
|
|
158
|
+
self._setDoubleProperty("MP_UD_TENSION_CUTOFF", TensileCutoff)
|
|
159
|
+
if HoekMartinMi is not None:
|
|
160
|
+
self._setDoubleProperty("MP_MI_TENSION_CUTOFF", HoekMartinMi)
|
|
161
|
+
if ResidualMbParameter is not None:
|
|
162
|
+
self._setDoubleProperty("MP_MB_PARAMETER_RES", ResidualMbParameter)
|
|
163
|
+
if ResidualSParameter is not None:
|
|
164
|
+
self._setDoubleProperty("MP_S_PARAMETER_RES", ResidualSParameter)
|
|
165
|
+
if ResidualAParameter is not None:
|
|
166
|
+
self._setDoubleProperty("MP_A_PARAMETER_RES", ResidualAParameter)
|
|
167
|
+
if ResidualGSIParameter is not None:
|
|
168
|
+
self._setDoubleProperty("MP_GSI_PARAMETER_RES", ResidualGSIParameter)
|
|
169
|
+
if ResidualMiParameter is not None:
|
|
170
|
+
self._setDoubleProperty("MP_MI_PARAMETER_RES", ResidualMiParameter)
|
|
171
|
+
if ResidualDParameter is not None:
|
|
172
|
+
self._setDoubleProperty("MP_D_PARAMETER_RES", ResidualDParameter)
|
|
173
|
+
if DilationParameter is not None:
|
|
174
|
+
self._setDoubleProperty("MP_DILATION_PARAMETER", DilationParameter)
|
|
175
|
+
if ApplySSRShearStrengthReduction is not None:
|
|
176
|
+
self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
|
|
177
|
+
def getProperties(self):
|
|
178
|
+
return {
|
|
179
|
+
"MaterialType" : self.getMaterialType(),
|
|
180
|
+
"CompressiveStrength" : self.getCompressiveStrength(),
|
|
181
|
+
"MbParameter" : self.getMbParameter(),
|
|
182
|
+
"SParameter" : self.getSParameter(),
|
|
183
|
+
"AParameter" : self.getAParameter(),
|
|
184
|
+
"GSIParameter" : self.getGSIParameter(),
|
|
185
|
+
"MiParameter" : self.getMiParameter(),
|
|
186
|
+
"DParameter" : self.getDParameter(),
|
|
187
|
+
"TensileCutoffType" : self.getTensileCutoffType(),
|
|
188
|
+
"TensileCutoff" : self.getTensileCutoff(),
|
|
189
|
+
"HoekMartinMi" : self.getHoekMartinMi(),
|
|
190
|
+
"ResidualMbParameter" : self.getResidualMbParameter(),
|
|
191
|
+
"ResidualSParameter" : self.getResidualSParameter(),
|
|
192
|
+
"ResidualAParameter" : self.getResidualAParameter(),
|
|
193
|
+
"ResidualGSIParameter" : self.getResidualGSIParameter(),
|
|
194
|
+
"ResidualMiParameter" : self.getResidualMiParameter(),
|
|
195
|
+
"ResidualDParameter" : self.getResidualDParameter(),
|
|
196
|
+
"DilationParameter" : self.getDilationParameter(),
|
|
197
|
+
"ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
|
|
198
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.MaterialJointOptions import MaterialJointOptions
|
|
7
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
8
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
9
|
+
class JointedMohrCoulombStageFactor(ProxyObject):
|
|
10
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
11
|
+
super().__init__(client, ID)
|
|
12
|
+
self.propertyID = propertyID
|
|
13
|
+
def getResidualCohesionFactor(self) -> float:
|
|
14
|
+
return self._callFunction("getDoubleFactor", ["MP_COHESION_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
15
|
+
def getDilationAngleFactor(self) -> float:
|
|
16
|
+
return self._callFunction("getDoubleFactor", ["MP_DILATION_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
17
|
+
def getResidualFrictionAngleFactor(self) -> float:
|
|
18
|
+
return self._callFunction("getDoubleFactor", ["MP_FRICTION_ANGLE_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
19
|
+
def getPeakCohesionFactor(self) -> float:
|
|
20
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_COHESION", self.propertyID], proxyArgumentIndices=[1])
|
|
21
|
+
def getPeakFrictionAngleFactor(self) -> float:
|
|
22
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_FRICTION_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
23
|
+
def getPeakTensileStrengthFactor(self) -> float:
|
|
24
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_TENSILE_STRENGTH", self.propertyID], proxyArgumentIndices=[1])
|
|
25
|
+
def getResidualTensileStrengthFactor(self) -> float:
|
|
26
|
+
return self._callFunction("getDoubleFactor", ["MP_TENSILE_STRENGTH_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
27
|
+
class JointedMohrCoulombDefinedStageFactor(JointedMohrCoulombStageFactor):
|
|
28
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
29
|
+
super().__init__(client, ID, propertyID)
|
|
30
|
+
def setResidualCohesionFactor(self, value: float):
|
|
31
|
+
return self._callFunction("setDoubleFactor", ["MP_COHESION_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
32
|
+
def setDilationAngleFactor(self, value: float):
|
|
33
|
+
return self._callFunction("setDoubleFactor", ["MP_DILATION_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
34
|
+
def setResidualFrictionAngleFactor(self, value: float):
|
|
35
|
+
return self._callFunction("setDoubleFactor", ["MP_FRICTION_ANGLE_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
36
|
+
def setPeakCohesionFactor(self, value: float):
|
|
37
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_COHESION", value, self.propertyID], proxyArgumentIndices=[2])
|
|
38
|
+
def setPeakFrictionAngleFactor(self, value: float):
|
|
39
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_FRICTION_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
40
|
+
def setPeakTensileStrengthFactor(self, value: float):
|
|
41
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_TENSILE_STRENGTH", value, self.propertyID], proxyArgumentIndices=[2])
|
|
42
|
+
def setResidualTensileStrengthFactor(self, value: float):
|
|
43
|
+
return self._callFunction("setDoubleFactor", ["MP_TENSILE_STRENGTH_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
44
|
+
class JointedMohrCoulomb(PropertyProxy):
|
|
45
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
46
|
+
super().__init__(client, ID, documentProxyID)
|
|
47
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[JointedMohrCoulombDefinedStageFactor, JointedMohrCoulombStageFactor](self._client, stageFactorInterfaceID, ID, JointedMohrCoulombDefinedStageFactor, JointedMohrCoulombStageFactor)
|
|
48
|
+
def getMaterialType(self) -> MaterialType:
|
|
49
|
+
return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
|
|
50
|
+
def setMaterialType(self, value: MaterialType):
|
|
51
|
+
return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
|
|
52
|
+
def getPeakTensileStrength(self) -> float:
|
|
53
|
+
return self._getDoubleProperty("MP_PEAK_TENSILE_STRENGTH")
|
|
54
|
+
def setPeakTensileStrength(self, value: float):
|
|
55
|
+
return self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", value)
|
|
56
|
+
def getPeakFrictionAngle(self) -> float:
|
|
57
|
+
return self._getDoubleProperty("MP_PEAK_FRICTION_ANGLE")
|
|
58
|
+
def setPeakFrictionAngle(self, value: float):
|
|
59
|
+
return self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", value)
|
|
60
|
+
def getPeakCohesion(self) -> float:
|
|
61
|
+
return self._getDoubleProperty("MP_PEAK_COHESION")
|
|
62
|
+
def setPeakCohesion(self, value: float):
|
|
63
|
+
return self._setDoubleProperty("MP_PEAK_COHESION", value)
|
|
64
|
+
def getResidualTensileStrength(self) -> float:
|
|
65
|
+
return self._getDoubleProperty("MP_TENSILE_STRENGTH_RES")
|
|
66
|
+
def setResidualTensileStrength(self, value: float):
|
|
67
|
+
return self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", value)
|
|
68
|
+
def getResidualFrictionAngle(self) -> float:
|
|
69
|
+
return self._getDoubleProperty("MP_FRICTION_ANGLE_RES")
|
|
70
|
+
def setResidualFrictionAngle(self, value: float):
|
|
71
|
+
return self._setDoubleProperty("MP_FRICTION_ANGLE_RES", value)
|
|
72
|
+
def getResidualCohesion(self) -> float:
|
|
73
|
+
return self._getDoubleProperty("MP_COHESION_RES")
|
|
74
|
+
def setResidualCohesion(self, value: float):
|
|
75
|
+
return self._setDoubleProperty("MP_COHESION_RES", value)
|
|
76
|
+
def getDilationAngle(self) -> float:
|
|
77
|
+
return self._getDoubleProperty("MP_DILATION_ANGLE")
|
|
78
|
+
def setDilationAngle(self, value: float):
|
|
79
|
+
return self._setDoubleProperty("MP_DILATION_ANGLE", value)
|
|
80
|
+
def getApplySSRShearStrengthReduction(self) -> bool:
|
|
81
|
+
return self._getBoolProperty("MP_APPLY_SSR")
|
|
82
|
+
def setApplySSRShearStrengthReduction(self, value: bool):
|
|
83
|
+
return self._setBoolProperty("MP_APPLY_SSR", value)
|
|
84
|
+
def getJointOptions(self) -> MaterialJointOptions:
|
|
85
|
+
return MaterialJointOptions(self._client, self._callFunction("getJointOptions", [], keepReturnValueReference = True), self.documentProxyID)
|
|
86
|
+
def setProperties(self, MaterialType : MaterialType = None, PeakTensileStrength : float = None, PeakFrictionAngle : float = None, PeakCohesion : float = None, ResidualTensileStrength : float = None, ResidualFrictionAngle : float = None, ResidualCohesion : float = None, DilationAngle : float = None, ApplySSRShearStrengthReduction : bool = None):
|
|
87
|
+
if MaterialType is not None:
|
|
88
|
+
self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
|
|
89
|
+
if PeakTensileStrength is not None:
|
|
90
|
+
self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", PeakTensileStrength)
|
|
91
|
+
if PeakFrictionAngle is not None:
|
|
92
|
+
self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", PeakFrictionAngle)
|
|
93
|
+
if PeakCohesion is not None:
|
|
94
|
+
self._setDoubleProperty("MP_PEAK_COHESION", PeakCohesion)
|
|
95
|
+
if ResidualTensileStrength is not None:
|
|
96
|
+
self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", ResidualTensileStrength)
|
|
97
|
+
if ResidualFrictionAngle is not None:
|
|
98
|
+
self._setDoubleProperty("MP_FRICTION_ANGLE_RES", ResidualFrictionAngle)
|
|
99
|
+
if ResidualCohesion is not None:
|
|
100
|
+
self._setDoubleProperty("MP_COHESION_RES", ResidualCohesion)
|
|
101
|
+
if DilationAngle is not None:
|
|
102
|
+
self._setDoubleProperty("MP_DILATION_ANGLE", DilationAngle)
|
|
103
|
+
if ApplySSRShearStrengthReduction is not None:
|
|
104
|
+
self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
|
|
105
|
+
def getProperties(self):
|
|
106
|
+
return {
|
|
107
|
+
"MaterialType" : self.getMaterialType(),
|
|
108
|
+
"PeakTensileStrength" : self.getPeakTensileStrength(),
|
|
109
|
+
"PeakFrictionAngle" : self.getPeakFrictionAngle(),
|
|
110
|
+
"PeakCohesion" : self.getPeakCohesion(),
|
|
111
|
+
"ResidualTensileStrength" : self.getResidualTensileStrength(),
|
|
112
|
+
"ResidualFrictionAngle" : self.getResidualFrictionAngle(),
|
|
113
|
+
"ResidualCohesion" : self.getResidualCohesion(),
|
|
114
|
+
"DilationAngle" : self.getDilationAngle(),
|
|
115
|
+
"ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
|
|
116
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ManzariAndDafaliasStrength(PropertyProxy):
|
|
7
|
+
def getCriticalStateM(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_M")
|
|
9
|
+
def setCriticalStateM(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_M", value)
|
|
11
|
+
def getCParameter(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_C")
|
|
13
|
+
def setCParameter(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_C", value)
|
|
15
|
+
def getLambdaC(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_LAMBDA_C")
|
|
17
|
+
def setLambdaC(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_LAMBDA_C", value)
|
|
19
|
+
def getE0Parameter(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_E0")
|
|
21
|
+
def setE0Parameter(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_E0", value)
|
|
23
|
+
def getXiParameter(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_XI")
|
|
25
|
+
def setXiParameter(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_XI", value)
|
|
27
|
+
def getYieldSurfaceM(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_YIELD_SURFACE_M")
|
|
29
|
+
def setYieldSurfaceM(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_YIELD_SURFACE_M", value)
|
|
31
|
+
def getH0Parameter(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_PLASTIC_MODULUS_H0")
|
|
33
|
+
def setH0Parameter(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_PLASTIC_MODULUS_H0", value)
|
|
35
|
+
def getChParameter(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_PLASTIC_MODULUS_CH")
|
|
37
|
+
def setChParameter(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_PLASTIC_MODULUS_CH", value)
|
|
39
|
+
def getNbParameter(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_PLASTIC_MODULUS_NB")
|
|
41
|
+
def setNbParameter(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_PLASTIC_MODULUS_NB", value)
|
|
43
|
+
def getA0Parameter(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_DILATANCY_A0")
|
|
45
|
+
def setA0Parameter(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_DILATANCY_A0", value)
|
|
47
|
+
def getNdParameter(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_DILATANCY_ND")
|
|
49
|
+
def setNdParameter(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_DILATANCY_ND", value)
|
|
51
|
+
def getZmax(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_ZMAX")
|
|
53
|
+
def setZmax(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_ZMAX", value)
|
|
55
|
+
def getCzParameter(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_CZ")
|
|
57
|
+
def setCzParameter(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_CZ", value)
|
|
59
|
+
def getApplySSRShearStrengthReduction(self) -> bool:
|
|
60
|
+
return self._getBoolProperty("MP_APPLY_SSR")
|
|
61
|
+
def setApplySSRShearStrengthReduction(self, value: bool):
|
|
62
|
+
return self._setBoolProperty("MP_APPLY_SSR", value)
|
|
63
|
+
def setProperties(self, CriticalStateM : float = None, CParameter : float = None, LambdaC : float = None, E0Parameter : float = None, XiParameter : float = None, YieldSurfaceM : float = None, H0Parameter : float = None, ChParameter : float = None, NbParameter : float = None, A0Parameter : float = None, NdParameter : float = None, Zmax : float = None, CzParameter : float = None, ApplySSRShearStrengthReduction : bool = None):
|
|
64
|
+
if CriticalStateM is not None:
|
|
65
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_M", CriticalStateM)
|
|
66
|
+
if CParameter is not None:
|
|
67
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_C", CParameter)
|
|
68
|
+
if LambdaC is not None:
|
|
69
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_LAMBDA_C", LambdaC)
|
|
70
|
+
if E0Parameter is not None:
|
|
71
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_E0", E0Parameter)
|
|
72
|
+
if XiParameter is not None:
|
|
73
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_XI", XiParameter)
|
|
74
|
+
if YieldSurfaceM is not None:
|
|
75
|
+
self._setDoubleProperty("MP_YIELD_SURFACE_M", YieldSurfaceM)
|
|
76
|
+
if H0Parameter is not None:
|
|
77
|
+
self._setDoubleProperty("MP_PLASTIC_MODULUS_H0", H0Parameter)
|
|
78
|
+
if ChParameter is not None:
|
|
79
|
+
self._setDoubleProperty("MP_PLASTIC_MODULUS_CH", ChParameter)
|
|
80
|
+
if NbParameter is not None:
|
|
81
|
+
self._setDoubleProperty("MP_PLASTIC_MODULUS_NB", NbParameter)
|
|
82
|
+
if A0Parameter is not None:
|
|
83
|
+
self._setDoubleProperty("MP_DILATANCY_A0", A0Parameter)
|
|
84
|
+
if NdParameter is not None:
|
|
85
|
+
self._setDoubleProperty("MP_DILATANCY_ND", NdParameter)
|
|
86
|
+
if Zmax is not None:
|
|
87
|
+
self._setDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_ZMAX", Zmax)
|
|
88
|
+
if CzParameter is not None:
|
|
89
|
+
self._setDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_CZ", CzParameter)
|
|
90
|
+
if ApplySSRShearStrengthReduction is not None:
|
|
91
|
+
self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
|
|
92
|
+
def getProperties(self):
|
|
93
|
+
return {
|
|
94
|
+
"CriticalStateM" : self.getCriticalStateM(),
|
|
95
|
+
"CParameter" : self.getCParameter(),
|
|
96
|
+
"LambdaC" : self.getLambdaC(),
|
|
97
|
+
"E0Parameter" : self.getE0Parameter(),
|
|
98
|
+
"XiParameter" : self.getXiParameter(),
|
|
99
|
+
"YieldSurfaceM" : self.getYieldSurfaceM(),
|
|
100
|
+
"H0Parameter" : self.getH0Parameter(),
|
|
101
|
+
"ChParameter" : self.getChParameter(),
|
|
102
|
+
"NbParameter" : self.getNbParameter(),
|
|
103
|
+
"A0Parameter" : self.getA0Parameter(),
|
|
104
|
+
"NdParameter" : self.getNdParameter(),
|
|
105
|
+
"Zmax" : self.getZmax(),
|
|
106
|
+
"CzParameter" : self.getCzParameter(),
|
|
107
|
+
"ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
|
|
108
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 ModifiedCamClayStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getCriticalStateSlopeFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_CRITICAL_STATE_SLOPE", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getGammaFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_GAMMA", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getKappaFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_KAPPA", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getLambdaFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_LAMBDA", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getNParameterFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_N", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getOverconsolidationRatioFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_OVERCONSOLIDATION_RATIO", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getPreconsolidationStressFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["MP_PRECONSOLIDATION_STRESS", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
class ModifiedCamClayDefinedStageFactor(ModifiedCamClayStageFactor):
|
|
27
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
28
|
+
super().__init__(client, ID, propertyID)
|
|
29
|
+
def setCriticalStateSlopeFactor(self, value: float):
|
|
30
|
+
return self._callFunction("setDoubleFactor", ["MP_CRITICAL_STATE_SLOPE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
31
|
+
def setGammaFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_GAMMA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setKappaFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_KAPPA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setLambdaFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_LAMBDA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setNParameterFactor(self, value: float):
|
|
38
|
+
return self._callFunction("setDoubleFactor", ["MP_N", value, self.propertyID], proxyArgumentIndices=[2])
|
|
39
|
+
def setOverconsolidationRatioFactor(self, value: float):
|
|
40
|
+
return self._callFunction("setDoubleFactor", ["MP_OVERCONSOLIDATION_RATIO", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
|
+
def setPreconsolidationStressFactor(self, value: float):
|
|
42
|
+
return self._callFunction("setDoubleFactor", ["MP_PRECONSOLIDATION_STRESS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
43
|
+
class ModifiedCamClay(PropertyProxy):
|
|
44
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
45
|
+
super().__init__(client, ID, documentProxyID)
|
|
46
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[ModifiedCamClayDefinedStageFactor, ModifiedCamClayStageFactor](self._client, stageFactorInterfaceID, ID, ModifiedCamClayDefinedStageFactor, ModifiedCamClayStageFactor)
|
|
47
|
+
def getCriticalStateSlope(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_CRITICAL_STATE_SLOPE")
|
|
49
|
+
def setCriticalStateSlope(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_CRITICAL_STATE_SLOPE", value)
|
|
51
|
+
def getSpecificVolumeAtUnitPressure(self) -> SpecificVolumeAtUnitPressure:
|
|
52
|
+
return SpecificVolumeAtUnitPressure(self._getEnumESpecificVolumeAtUnitPressureProperty("MP_SPECIFIC_VOLUME_AT_UNIT_PRESSURE"))
|
|
53
|
+
def setSpecificVolumeAtUnitPressure(self, value: SpecificVolumeAtUnitPressure):
|
|
54
|
+
return self._setEnumESpecificVolumeAtUnitPressureProperty("MP_SPECIFIC_VOLUME_AT_UNIT_PRESSURE", value)
|
|
55
|
+
def getNParameter(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_N")
|
|
57
|
+
def setNParameter(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_N", value)
|
|
59
|
+
def getGamma(self) -> float:
|
|
60
|
+
return self._getDoubleProperty("MP_GAMMA")
|
|
61
|
+
def setGamma(self, value: float):
|
|
62
|
+
return self._setDoubleProperty("MP_GAMMA", value)
|
|
63
|
+
def getKappa(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_KAPPA")
|
|
65
|
+
def setKappa(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_KAPPA", value)
|
|
67
|
+
def getInitialStateOfConsolidation(self) -> InitialStateOfConsolidation:
|
|
68
|
+
return InitialStateOfConsolidation(self._getEnumEInitialStateOfConsolidationProperty("MP_INITIAL_STATE_OF_CONSOLIDATION"))
|
|
69
|
+
def setInitialStateOfConsolidation(self, value: InitialStateOfConsolidation):
|
|
70
|
+
return self._setEnumEInitialStateOfConsolidationProperty("MP_INITIAL_STATE_OF_CONSOLIDATION", value)
|
|
71
|
+
def getOverconsolidationRatio(self) -> float:
|
|
72
|
+
return self._getDoubleProperty("MP_OVERCONSOLIDATION_RATIO")
|
|
73
|
+
def setOverconsolidationRatio(self, value: float):
|
|
74
|
+
return self._setDoubleProperty("MP_OVERCONSOLIDATION_RATIO", value)
|
|
75
|
+
def getPreconsolidationStress(self) -> float:
|
|
76
|
+
return self._getDoubleProperty("MP_PRECONSOLIDATION_STRESS")
|
|
77
|
+
def setPreconsolidationStress(self, value: float):
|
|
78
|
+
return self._setDoubleProperty("MP_PRECONSOLIDATION_STRESS", value)
|
|
79
|
+
def getLambda(self) -> float:
|
|
80
|
+
return self._getDoubleProperty("MP_LAMBDA")
|
|
81
|
+
def setLambda(self, value: float):
|
|
82
|
+
return self._setDoubleProperty("MP_LAMBDA", value)
|
|
83
|
+
def setProperties(self, CriticalStateSlope : float = None, SpecificVolumeAtUnitPressure : SpecificVolumeAtUnitPressure = None, NParameter : float = None, Gamma : float = None, Kappa : float = None, InitialStateOfConsolidation : InitialStateOfConsolidation = None, OverconsolidationRatio : float = None, PreconsolidationStress : float = None, Lambda : float = None):
|
|
84
|
+
if CriticalStateSlope is not None:
|
|
85
|
+
self._setDoubleProperty("MP_CRITICAL_STATE_SLOPE", CriticalStateSlope)
|
|
86
|
+
if SpecificVolumeAtUnitPressure is not None:
|
|
87
|
+
self._setEnumESpecificVolumeAtUnitPressureProperty("MP_SPECIFIC_VOLUME_AT_UNIT_PRESSURE", SpecificVolumeAtUnitPressure)
|
|
88
|
+
if NParameter is not None:
|
|
89
|
+
self._setDoubleProperty("MP_N", NParameter)
|
|
90
|
+
if Gamma is not None:
|
|
91
|
+
self._setDoubleProperty("MP_GAMMA", Gamma)
|
|
92
|
+
if Kappa is not None:
|
|
93
|
+
self._setDoubleProperty("MP_KAPPA", Kappa)
|
|
94
|
+
if InitialStateOfConsolidation is not None:
|
|
95
|
+
self._setEnumEInitialStateOfConsolidationProperty("MP_INITIAL_STATE_OF_CONSOLIDATION", InitialStateOfConsolidation)
|
|
96
|
+
if OverconsolidationRatio is not None:
|
|
97
|
+
self._setDoubleProperty("MP_OVERCONSOLIDATION_RATIO", OverconsolidationRatio)
|
|
98
|
+
if PreconsolidationStress is not None:
|
|
99
|
+
self._setDoubleProperty("MP_PRECONSOLIDATION_STRESS", PreconsolidationStress)
|
|
100
|
+
if Lambda is not None:
|
|
101
|
+
self._setDoubleProperty("MP_LAMBDA", Lambda)
|
|
102
|
+
def getProperties(self):
|
|
103
|
+
return {
|
|
104
|
+
"CriticalStateSlope" : self.getCriticalStateSlope(),
|
|
105
|
+
"SpecificVolumeAtUnitPressure" : self.getSpecificVolumeAtUnitPressure(),
|
|
106
|
+
"NParameter" : self.getNParameter(),
|
|
107
|
+
"Gamma" : self.getGamma(),
|
|
108
|
+
"Kappa" : self.getKappa(),
|
|
109
|
+
"InitialStateOfConsolidation" : self.getInitialStateOfConsolidation(),
|
|
110
|
+
"OverconsolidationRatio" : self.getOverconsolidationRatio(),
|
|
111
|
+
"PreconsolidationStress" : self.getPreconsolidationStress(),
|
|
112
|
+
"Lambda" : self.getLambda(),
|
|
113
|
+
}
|