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,87 @@
|
|
|
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 SoftSoilCreepStrength(PropertyProxy):
|
|
7
|
+
def getFrictionAngle(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_SSC_FRIC_ANGLE")
|
|
9
|
+
def setFrictionAngle(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_SSC_FRIC_ANGLE", value)
|
|
11
|
+
def getCohesion(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_SSC_COHESION")
|
|
13
|
+
def setCohesion(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_SSC_COHESION", value)
|
|
15
|
+
def getTensileStrength(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_SSC_TENSILE")
|
|
17
|
+
def setTensileStrength(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_SSC_TENSILE", value)
|
|
19
|
+
def getDilationAngle(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_SSC_DILATION_ANGLE")
|
|
21
|
+
def setDilationAngle(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_SSC_DILATION_ANGLE", value)
|
|
23
|
+
def getLambda(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_SSC_LAMBDA")
|
|
25
|
+
def setLambda(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_SSC_LAMBDA", value)
|
|
27
|
+
def getKappa(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_SSC_KAPPA")
|
|
29
|
+
def setKappa(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_SSC_KAPPA", value)
|
|
31
|
+
def getK0NormalConsolidation(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_SSC_K0_NORM_CONSOL")
|
|
33
|
+
def setK0NormalConsolidation(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_SSC_K0_NORM_CONSOL", value)
|
|
35
|
+
def getInitialConsolidationCondition(self) -> InitialConsolidation:
|
|
36
|
+
return InitialConsolidation(self._getEnumEInitialConsolidationProperty("MP_SSC_INIT_CONSOL"))
|
|
37
|
+
def setInitialConsolidationCondition(self, value: InitialConsolidation):
|
|
38
|
+
return self._setEnumEInitialConsolidationProperty("MP_SSC_INIT_CONSOL", value)
|
|
39
|
+
def getOCRStress(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_SSC_OCR_STRESS")
|
|
41
|
+
def setOCRStress(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_SSC_OCR_STRESS", value)
|
|
43
|
+
def getInitialMeanStress(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_SSC_INIT_MEAN_STRESS")
|
|
45
|
+
def setInitialMeanStress(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_SSC_INIT_MEAN_STRESS", value)
|
|
47
|
+
def getMu(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_SSC_MU")
|
|
49
|
+
def setMu(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_SSC_MU", value)
|
|
51
|
+
def setProperties(self, FrictionAngle : float = None, Cohesion : float = None, TensileStrength : float = None, DilationAngle : float = None, Lambda : float = None, Kappa : float = None, K0NormalConsolidation : float = None, InitialConsolidationCondition : InitialConsolidation = None, OCRStress : float = None, InitialMeanStress : float = None, Mu : float = None):
|
|
52
|
+
if FrictionAngle is not None:
|
|
53
|
+
self._setDoubleProperty("MP_SSC_FRIC_ANGLE", FrictionAngle)
|
|
54
|
+
if Cohesion is not None:
|
|
55
|
+
self._setDoubleProperty("MP_SSC_COHESION", Cohesion)
|
|
56
|
+
if TensileStrength is not None:
|
|
57
|
+
self._setDoubleProperty("MP_SSC_TENSILE", TensileStrength)
|
|
58
|
+
if DilationAngle is not None:
|
|
59
|
+
self._setDoubleProperty("MP_SSC_DILATION_ANGLE", DilationAngle)
|
|
60
|
+
if Lambda is not None:
|
|
61
|
+
self._setDoubleProperty("MP_SSC_LAMBDA", Lambda)
|
|
62
|
+
if Kappa is not None:
|
|
63
|
+
self._setDoubleProperty("MP_SSC_KAPPA", Kappa)
|
|
64
|
+
if K0NormalConsolidation is not None:
|
|
65
|
+
self._setDoubleProperty("MP_SSC_K0_NORM_CONSOL", K0NormalConsolidation)
|
|
66
|
+
if InitialConsolidationCondition is not None:
|
|
67
|
+
self._setEnumEInitialConsolidationProperty("MP_SSC_INIT_CONSOL", InitialConsolidationCondition)
|
|
68
|
+
if OCRStress is not None:
|
|
69
|
+
self._setDoubleProperty("MP_SSC_OCR_STRESS", OCRStress)
|
|
70
|
+
if InitialMeanStress is not None:
|
|
71
|
+
self._setDoubleProperty("MP_SSC_INIT_MEAN_STRESS", InitialMeanStress)
|
|
72
|
+
if Mu is not None:
|
|
73
|
+
self._setDoubleProperty("MP_SSC_MU", Mu)
|
|
74
|
+
def getProperties(self):
|
|
75
|
+
return {
|
|
76
|
+
"FrictionAngle" : self.getFrictionAngle(),
|
|
77
|
+
"Cohesion" : self.getCohesion(),
|
|
78
|
+
"TensileStrength" : self.getTensileStrength(),
|
|
79
|
+
"DilationAngle" : self.getDilationAngle(),
|
|
80
|
+
"Lambda" : self.getLambda(),
|
|
81
|
+
"Kappa" : self.getKappa(),
|
|
82
|
+
"K0NormalConsolidation" : self.getK0NormalConsolidation(),
|
|
83
|
+
"InitialConsolidationCondition" : self.getInitialConsolidationCondition(),
|
|
84
|
+
"OCRStress" : self.getOCRStress(),
|
|
85
|
+
"InitialMeanStress" : self.getInitialMeanStress(),
|
|
86
|
+
"Mu" : self.getMu(),
|
|
87
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 SoftSoilStrength(PropertyProxy):
|
|
7
|
+
def getFrictionAngle(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_SS_FRICTION_ANGLE")
|
|
9
|
+
def setFrictionAngle(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_SS_FRICTION_ANGLE", value)
|
|
11
|
+
def getCohesion(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_SS_COHESION")
|
|
13
|
+
def setCohesion(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_SS_COHESION", value)
|
|
15
|
+
def getTensileStrength(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_SS_TENSILE")
|
|
17
|
+
def setTensileStrength(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_SS_TENSILE", value)
|
|
19
|
+
def getDilationAngle(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_SS_DILATION_ANGLE")
|
|
21
|
+
def setDilationAngle(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_SS_DILATION_ANGLE", value)
|
|
23
|
+
def getLambda(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_SS_LAMBDA")
|
|
25
|
+
def setLambda(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_SS_LAMBDA", value)
|
|
27
|
+
def getKappa(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_SS_KAPPA")
|
|
29
|
+
def setKappa(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_SS_KAPPA", value)
|
|
31
|
+
def getK0NormalConsolidation(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_SS_K0_NORM_CONSOL")
|
|
33
|
+
def setK0NormalConsolidation(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_SS_K0_NORM_CONSOL", value)
|
|
35
|
+
def getInitialConsolidationCondition(self) -> InitialConsolidation:
|
|
36
|
+
return InitialConsolidation(self._getEnumEInitialConsolidationProperty("MP_SS_INIT_CONSOL"))
|
|
37
|
+
def setInitialConsolidationCondition(self, value: InitialConsolidation):
|
|
38
|
+
return self._setEnumEInitialConsolidationProperty("MP_SS_INIT_CONSOL", value)
|
|
39
|
+
def getOCRStress(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_SS_OCR_STRESS")
|
|
41
|
+
def setOCRStress(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_SS_OCR_STRESS", value)
|
|
43
|
+
def getInitialMeanStress(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_SS_INIT_MEAN_STRESS")
|
|
45
|
+
def setInitialMeanStress(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_SS_INIT_MEAN_STRESS", value)
|
|
47
|
+
def setProperties(self, FrictionAngle : float = None, Cohesion : float = None, TensileStrength : float = None, DilationAngle : float = None, Lambda : float = None, Kappa : float = None, K0NormalConsolidation : float = None, InitialConsolidationCondition : InitialConsolidation = None, OCRStress : float = None, InitialMeanStress : float = None):
|
|
48
|
+
if FrictionAngle is not None:
|
|
49
|
+
self._setDoubleProperty("MP_SS_FRICTION_ANGLE", FrictionAngle)
|
|
50
|
+
if Cohesion is not None:
|
|
51
|
+
self._setDoubleProperty("MP_SS_COHESION", Cohesion)
|
|
52
|
+
if TensileStrength is not None:
|
|
53
|
+
self._setDoubleProperty("MP_SS_TENSILE", TensileStrength)
|
|
54
|
+
if DilationAngle is not None:
|
|
55
|
+
self._setDoubleProperty("MP_SS_DILATION_ANGLE", DilationAngle)
|
|
56
|
+
if Lambda is not None:
|
|
57
|
+
self._setDoubleProperty("MP_SS_LAMBDA", Lambda)
|
|
58
|
+
if Kappa is not None:
|
|
59
|
+
self._setDoubleProperty("MP_SS_KAPPA", Kappa)
|
|
60
|
+
if K0NormalConsolidation is not None:
|
|
61
|
+
self._setDoubleProperty("MP_SS_K0_NORM_CONSOL", K0NormalConsolidation)
|
|
62
|
+
if InitialConsolidationCondition is not None:
|
|
63
|
+
self._setEnumEInitialConsolidationProperty("MP_SS_INIT_CONSOL", InitialConsolidationCondition)
|
|
64
|
+
if OCRStress is not None:
|
|
65
|
+
self._setDoubleProperty("MP_SS_OCR_STRESS", OCRStress)
|
|
66
|
+
if InitialMeanStress is not None:
|
|
67
|
+
self._setDoubleProperty("MP_SS_INIT_MEAN_STRESS", InitialMeanStress)
|
|
68
|
+
def getProperties(self):
|
|
69
|
+
return {
|
|
70
|
+
"FrictionAngle" : self.getFrictionAngle(),
|
|
71
|
+
"Cohesion" : self.getCohesion(),
|
|
72
|
+
"TensileStrength" : self.getTensileStrength(),
|
|
73
|
+
"DilationAngle" : self.getDilationAngle(),
|
|
74
|
+
"Lambda" : self.getLambda(),
|
|
75
|
+
"Kappa" : self.getKappa(),
|
|
76
|
+
"K0NormalConsolidation" : self.getK0NormalConsolidation(),
|
|
77
|
+
"InitialConsolidationCondition" : self.getInitialConsolidationCondition(),
|
|
78
|
+
"OCRStress" : self.getOCRStress(),
|
|
79
|
+
"InitialMeanStress" : self.getInitialMeanStress(),
|
|
80
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 SofteningHardeningModelStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getHardeningPropertyFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_HARDENING_PROPERTY", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getInitialMeanStressFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_INITIAL_MEAN_STRESS", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getLambdaKappaFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["MP_LAMBDA_KAPPA", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getPeakCohesionFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_COHESION", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getPeakFrictionAngleFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_FRICTION_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getPeakTensileStrengthFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_PEAK_TENSILE_STRENGTH", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getDilationAngleFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["MP_SOFT_HARD_DILATION_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
class SofteningHardeningModelDefinedStageFactor(SofteningHardeningModelStageFactor):
|
|
27
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
28
|
+
super().__init__(client, ID, propertyID)
|
|
29
|
+
def setHardeningPropertyFactor(self, value: float):
|
|
30
|
+
return self._callFunction("setDoubleFactor", ["MP_HARDENING_PROPERTY", value, self.propertyID], proxyArgumentIndices=[2])
|
|
31
|
+
def setInitialMeanStressFactor(self, value: float):
|
|
32
|
+
return self._callFunction("setDoubleFactor", ["MP_INITIAL_MEAN_STRESS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
|
+
def setLambdaKappaFactor(self, value: float):
|
|
34
|
+
return self._callFunction("setDoubleFactor", ["MP_LAMBDA_KAPPA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
+
def setPeakCohesionFactor(self, value: float):
|
|
36
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_COHESION", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setPeakFrictionAngleFactor(self, value: float):
|
|
38
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_FRICTION_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
39
|
+
def setPeakTensileStrengthFactor(self, value: float):
|
|
40
|
+
return self._callFunction("setDoubleFactor", ["MP_PEAK_TENSILE_STRENGTH", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
|
+
def setDilationAngleFactor(self, value: float):
|
|
42
|
+
return self._callFunction("setDoubleFactor", ["MP_SOFT_HARD_DILATION_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
43
|
+
class SofteningHardeningModel(PropertyProxy):
|
|
44
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
45
|
+
super().__init__(client, ID, documentProxyID)
|
|
46
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[SofteningHardeningModelDefinedStageFactor, SofteningHardeningModelStageFactor](self._client, stageFactorInterfaceID, ID, SofteningHardeningModelDefinedStageFactor, SofteningHardeningModelStageFactor)
|
|
47
|
+
def getPeakTensileStrength(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_PEAK_TENSILE_STRENGTH")
|
|
49
|
+
def setPeakTensileStrength(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", value)
|
|
51
|
+
def getPeakFrictionAngle(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_PEAK_FRICTION_ANGLE")
|
|
53
|
+
def setPeakFrictionAngle(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", value)
|
|
55
|
+
def getPeakCohesion(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_PEAK_COHESION")
|
|
57
|
+
def setPeakCohesion(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_PEAK_COHESION", value)
|
|
59
|
+
def getConeHardeningType(self) -> ConeHardeningTypes:
|
|
60
|
+
return ConeHardeningTypes(self._getEnumEConeHardeningTypesProperty("MP_CONE_HARDENING_TYPE"))
|
|
61
|
+
def setConeHardeningType(self, value: ConeHardeningTypes):
|
|
62
|
+
return self._setEnumEConeHardeningTypesProperty("MP_CONE_HARDENING_TYPE", value)
|
|
63
|
+
def getHardeningProperty(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_HARDENING_PROPERTY")
|
|
65
|
+
def setHardeningProperty(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_HARDENING_PROPERTY", value)
|
|
67
|
+
def getDilationAngle(self) -> float:
|
|
68
|
+
return self._getDoubleProperty("MP_SOFT_HARD_DILATION_ANGLE")
|
|
69
|
+
def setDilationAngle(self, value: float):
|
|
70
|
+
return self._setDoubleProperty("MP_SOFT_HARD_DILATION_ANGLE", value)
|
|
71
|
+
def getConeDilationType(self) -> DilationTypes:
|
|
72
|
+
return DilationTypes(self._getEnumEDilationTypesProperty("MP_CONE_DILATION"))
|
|
73
|
+
def setConeDilationType(self, value: DilationTypes):
|
|
74
|
+
return self._setEnumEDilationTypesProperty("MP_CONE_DILATION", value)
|
|
75
|
+
def getCapType(self) -> CapTypes:
|
|
76
|
+
return CapTypes(self._getEnumECapTypesProperty("MP_SH_CAP_TYPE"))
|
|
77
|
+
def setCapType(self, value: CapTypes):
|
|
78
|
+
return self._setEnumECapTypesProperty("MP_SH_CAP_TYPE", value)
|
|
79
|
+
def getCapHardeningType(self) -> CapHardeningTypes:
|
|
80
|
+
return CapHardeningTypes(self._getEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE"))
|
|
81
|
+
def setCapHardeningType(self, value: CapHardeningTypes):
|
|
82
|
+
return self._setEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE", value)
|
|
83
|
+
def getInitialMeanStress(self) -> float:
|
|
84
|
+
return self._getDoubleProperty("MP_INITIAL_MEAN_STRESS")
|
|
85
|
+
def setInitialMeanStress(self, value: float):
|
|
86
|
+
return self._setDoubleProperty("MP_INITIAL_MEAN_STRESS", value)
|
|
87
|
+
def getLambdaKappa(self) -> float:
|
|
88
|
+
return self._getDoubleProperty("MP_LAMBDA_KAPPA")
|
|
89
|
+
def setLambdaKappa(self, value: float):
|
|
90
|
+
return self._setDoubleProperty("MP_LAMBDA_KAPPA", value)
|
|
91
|
+
def setSHConeHardening(self, plasticStrainVsFrictionAngle: list[tuple[float,float]], plasticStrainVsCohesion: list[tuple[float,float]]):
|
|
92
|
+
"""
|
|
93
|
+
plasticStrainVsFrictionAngle: list of tuples, (plainStrain, frictionAngle)
|
|
94
|
+
plasticStrainVsCohesion: list of tuples, (plasticStrain, Cohesion)
|
|
95
|
+
"""
|
|
96
|
+
return self._callFunction("setSHConeHardening", [plasticStrainVsFrictionAngle, plasticStrainVsCohesion])
|
|
97
|
+
def getSHConeHardening(self) -> tuple[list[tuple[float,float]],list[tuple[float,float]]]:
|
|
98
|
+
"""
|
|
99
|
+
returns a tuple of (plasticStrainVsFrictionAngle, plasticStrainVsCohesion), where
|
|
100
|
+
plasticStrainVsFrictionAngle: list of tuples, (plainStrain, frictionAngle)
|
|
101
|
+
plasticStrainVsCohesion: list of tuples, (plasticStrain, Cohesion)
|
|
102
|
+
"""
|
|
103
|
+
return self._callFunction("getSHConeHardening", [])
|
|
104
|
+
def setSHCapMeanStress(self, meanStress: list[tuple[float,float]]):
|
|
105
|
+
"""
|
|
106
|
+
meanStress is a list of (x,y) tuples.
|
|
107
|
+
"""
|
|
108
|
+
return self._callFunction("setSHCapMeanStress", [meanStress])
|
|
109
|
+
def getSHCapMeanStress(self) -> list[tuple[float,float]]:
|
|
110
|
+
"""
|
|
111
|
+
returns a list of (x,y) tuples.
|
|
112
|
+
"""
|
|
113
|
+
return self._callFunction("getSHCapMeanStress", [])
|
|
114
|
+
def setProperties(self, PeakTensileStrength : float = None, PeakFrictionAngle : float = None, PeakCohesion : float = None, ConeHardeningType : ConeHardeningTypes = None, HardeningProperty : float = None, DilationAngle : float = None, ConeDilationType : DilationTypes = None, CapType : CapTypes = None, CapHardeningType : CapHardeningTypes = None, InitialMeanStress : float = None, LambdaKappa : float = None):
|
|
115
|
+
if PeakTensileStrength is not None:
|
|
116
|
+
self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", PeakTensileStrength)
|
|
117
|
+
if PeakFrictionAngle is not None:
|
|
118
|
+
self._setDoubleProperty("MP_PEAK_FRICTION_ANGLE", PeakFrictionAngle)
|
|
119
|
+
if PeakCohesion is not None:
|
|
120
|
+
self._setDoubleProperty("MP_PEAK_COHESION", PeakCohesion)
|
|
121
|
+
if ConeHardeningType is not None:
|
|
122
|
+
self._setEnumEConeHardeningTypesProperty("MP_CONE_HARDENING_TYPE", ConeHardeningType)
|
|
123
|
+
if HardeningProperty is not None:
|
|
124
|
+
self._setDoubleProperty("MP_HARDENING_PROPERTY", HardeningProperty)
|
|
125
|
+
if DilationAngle is not None:
|
|
126
|
+
self._setDoubleProperty("MP_SOFT_HARD_DILATION_ANGLE", DilationAngle)
|
|
127
|
+
if ConeDilationType is not None:
|
|
128
|
+
self._setEnumEDilationTypesProperty("MP_CONE_DILATION", ConeDilationType)
|
|
129
|
+
if CapType is not None:
|
|
130
|
+
self._setEnumECapTypesProperty("MP_SH_CAP_TYPE", CapType)
|
|
131
|
+
if CapHardeningType is not None:
|
|
132
|
+
self._setEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE", CapHardeningType)
|
|
133
|
+
if InitialMeanStress is not None:
|
|
134
|
+
self._setDoubleProperty("MP_INITIAL_MEAN_STRESS", InitialMeanStress)
|
|
135
|
+
if LambdaKappa is not None:
|
|
136
|
+
self._setDoubleProperty("MP_LAMBDA_KAPPA", LambdaKappa)
|
|
137
|
+
def getProperties(self):
|
|
138
|
+
return {
|
|
139
|
+
"PeakTensileStrength" : self.getPeakTensileStrength(),
|
|
140
|
+
"PeakFrictionAngle" : self.getPeakFrictionAngle(),
|
|
141
|
+
"PeakCohesion" : self.getPeakCohesion(),
|
|
142
|
+
"ConeHardeningType" : self.getConeHardeningType(),
|
|
143
|
+
"HardeningProperty" : self.getHardeningProperty(),
|
|
144
|
+
"DilationAngle" : self.getDilationAngle(),
|
|
145
|
+
"ConeDilationType" : self.getConeDilationType(),
|
|
146
|
+
"CapType" : self.getCapType(),
|
|
147
|
+
"CapHardeningType" : self.getCapHardeningType(),
|
|
148
|
+
"InitialMeanStress" : self.getInitialMeanStress(),
|
|
149
|
+
"LambdaKappa" : self.getLambdaKappa(),
|
|
150
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
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.strength.MohrCoulombStrength import MohrCoulombStrength
|
|
7
|
+
from rs2.modeler.properties.material.strength.HoekBrown import HoekBrown
|
|
8
|
+
from rs2.modeler.properties.material.strength.DruckerPrager import DruckerPrager
|
|
9
|
+
from rs2.modeler.properties.material.strength.GeneralizedHoekBrown import GeneralizedHoekBrown
|
|
10
|
+
from rs2.modeler.properties.material.strength.DiscreteFunction import DiscreteFunction
|
|
11
|
+
from rs2.modeler.properties.material.strength.CamClay import CamClay
|
|
12
|
+
from rs2.modeler.properties.material.strength.ModifiedCamClay import ModifiedCamClay
|
|
13
|
+
from rs2.modeler.properties.material.strength.MohrCoulombWithCap import MohrCoulombWithCap
|
|
14
|
+
from rs2.modeler.properties.material.strength.SofteningHardeningModel import SofteningHardeningModel
|
|
15
|
+
from rs2.modeler.properties.material.strength.BarcelonaBasic import BarcelonaBasic
|
|
16
|
+
from rs2.modeler.properties.material.strength.NorSandStrength import NorSandStrength
|
|
17
|
+
from rs2.modeler.properties.material.strength.BoundingSurfacePlasticity import BoundingSurfacePlasticity
|
|
18
|
+
from rs2.modeler.properties.material.strength.ManzariAndDafaliasStrength import ManzariAndDafaliasStrength
|
|
19
|
+
from rs2.modeler.properties.material.strength.PM4SandStrength import PM4SandStrength
|
|
20
|
+
from rs2.modeler.properties.material.strength.PM4SiltStrength import PM4SiltStrength
|
|
21
|
+
from rs2.modeler.properties.material.strength.Finn import Finn
|
|
22
|
+
from rs2.modeler.properties.material.strength.BartonBandisStrength import BartonBandisStrength
|
|
23
|
+
from rs2.modeler.properties.material.strength.Hyperbolic import Hyperbolic
|
|
24
|
+
from rs2.modeler.properties.material.strength.PowerCurve import PowerCurve
|
|
25
|
+
from rs2.modeler.properties.material.strength.ShearNormalFunction import ShearNormalFunction
|
|
26
|
+
from rs2.modeler.properties.material.strength.Shansep import Shansep
|
|
27
|
+
from rs2.modeler.properties.material.strength.VerticalStressRatio import VerticalStressRatio
|
|
28
|
+
from rs2.modeler.properties.material.strength.SnowdenModAnisotropicLinear import SnowdenModAnisotropicLinear
|
|
29
|
+
from rs2.modeler.properties.material.strength.AnisotropicLinear import AnisotropicLinear
|
|
30
|
+
from rs2.modeler.properties.material.strength.GeneralizedAnisotropic import GeneralizedAnisotropic
|
|
31
|
+
from rs2.modeler.properties.material.strength.JointedMohrCoulomb import JointedMohrCoulomb
|
|
32
|
+
from rs2.modeler.properties.material.strength.JointedGeneralizedHoekBrown import JointedGeneralizedHoekBrown
|
|
33
|
+
from rs2.modeler.properties.material.strength.ChSoilStrength import ChSoilStrength
|
|
34
|
+
from rs2.modeler.properties.material.strength.CySoilStrength import CySoilStrength
|
|
35
|
+
from rs2.modeler.properties.material.strength.DoubleYieldStrength import DoubleYieldStrength
|
|
36
|
+
from rs2.modeler.properties.material.strength.HardeningSoilStrength import HardeningSoilStrength
|
|
37
|
+
from rs2.modeler.properties.material.strength.HardeningSoilWithSmallStrainStiffness import HardeningSoilWithSmallStrainStiffness
|
|
38
|
+
from rs2.modeler.properties.material.strength.SoftSoilStrength import SoftSoilStrength
|
|
39
|
+
from rs2.modeler.properties.material.strength.SoftSoilCreepStrength import SoftSoilCreepStrength
|
|
40
|
+
from rs2.modeler.properties.material.strength.SwellingRockStrength import SwellingRockStrength
|
|
41
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
42
|
+
from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
|
|
43
|
+
class StrengthStageFactor(ProxyObject):
|
|
44
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
45
|
+
super().__init__(client, ID)
|
|
46
|
+
self.propertyID = propertyID
|
|
47
|
+
def getAirEntryValueFactor(self) -> float:
|
|
48
|
+
return self._callFunction("getDoubleFactor", ["MP_UNSATURATED_AIR_ENTRY_VALUE", self.propertyID], proxyArgumentIndices=[1])
|
|
49
|
+
def getUnsaturatedShearStrengthAngleFactor(self) -> float:
|
|
50
|
+
return self._callFunction("getDoubleFactor", ["MP_UNSATURATED_SHEAR_STRENGTH_ANGLE", self.propertyID], proxyArgumentIndices=[1])
|
|
51
|
+
def getResetYield(self) -> bool:
|
|
52
|
+
return self._callFunction("getResetYield", [])
|
|
53
|
+
class StrengthDefinedStageFactor(StrengthStageFactor):
|
|
54
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
55
|
+
super().__init__(client, ID, propertyID)
|
|
56
|
+
def setAirEntryValueFactor(self, value: float):
|
|
57
|
+
return self._callFunction("setDoubleFactor", ["MP_UNSATURATED_AIR_ENTRY_VALUE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
58
|
+
def setUnsaturatedShearStrengthAngleFactor(self, value: float):
|
|
59
|
+
return self._callFunction("setDoubleFactor", ["MP_UNSATURATED_SHEAR_STRENGTH_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
60
|
+
def setResetYield(self, resetYield: bool):
|
|
61
|
+
return self._callFunction("setResetYield", [resetYield])
|
|
62
|
+
class Strength(PropertyProxy):
|
|
63
|
+
"""
|
|
64
|
+
:ref:`Material Property Strength Example`
|
|
65
|
+
"""
|
|
66
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
67
|
+
super().__init__(client, ID, documentProxyID)
|
|
68
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[StrengthDefinedStageFactor, StrengthStageFactor](self._client, stageFactorInterfaceID, ID, StrengthDefinedStageFactor, StrengthStageFactor)
|
|
69
|
+
self.MohrCoulombStrength = MohrCoulombStrength(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
70
|
+
self.HoekBrown = HoekBrown(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
71
|
+
self.DruckerPrager = DruckerPrager(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
72
|
+
self.GeneralizedHoekBrown = GeneralizedHoekBrown(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
73
|
+
self.DiscreteFunction = DiscreteFunction(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
74
|
+
self.CamClay = CamClay(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
75
|
+
self.ModifiedCamClay = ModifiedCamClay(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
76
|
+
self.MohrCoulombWithCap = MohrCoulombWithCap(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
77
|
+
self.SofteningHardeningModel = SofteningHardeningModel(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
78
|
+
self.BarcelonaBasic = BarcelonaBasic(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
79
|
+
self.NorSandStrength = NorSandStrength(client, ID, documentProxyID)
|
|
80
|
+
self.BoundingSurfacePlasticity = BoundingSurfacePlasticity(client, ID, documentProxyID)
|
|
81
|
+
self.ManzariAndDafaliasStrength = ManzariAndDafaliasStrength(client, ID, documentProxyID)
|
|
82
|
+
self.PM4SandStrength = PM4SandStrength(client, ID, documentProxyID)
|
|
83
|
+
self.PM4SiltStrength = PM4SiltStrength(client, ID, documentProxyID)
|
|
84
|
+
self.Finn = Finn(client, ID, documentProxyID)
|
|
85
|
+
self.BartonBandisStrength = BartonBandisStrength(client, ID, documentProxyID)
|
|
86
|
+
self.Hyperbolic = Hyperbolic(client, ID, documentProxyID)
|
|
87
|
+
self.PowerCurve = PowerCurve(client, ID, documentProxyID)
|
|
88
|
+
self.ShearNormalFunction = ShearNormalFunction(client, ID, documentProxyID)
|
|
89
|
+
self.Shansep = Shansep(client, ID, documentProxyID)
|
|
90
|
+
self.VerticalStressRatio = VerticalStressRatio(client, ID, documentProxyID)
|
|
91
|
+
self.SnowdenModAnisotropicLinear = SnowdenModAnisotropicLinear(client, ID, documentProxyID)
|
|
92
|
+
self.AnisotropicLinear = AnisotropicLinear(client, ID, documentProxyID)
|
|
93
|
+
self.GeneralizedAnisotropic = GeneralizedAnisotropic(client, ID, documentProxyID)
|
|
94
|
+
self.JointedMohrCoulomb = JointedMohrCoulomb(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
95
|
+
self.JointedGeneralizedHoekBrown = JointedGeneralizedHoekBrown(client, ID, documentProxyID, stageFactorInterfaceID)
|
|
96
|
+
self.ChSoilStrength = ChSoilStrength(client, ID, documentProxyID)
|
|
97
|
+
self.CySoilStrength = CySoilStrength(client, ID, documentProxyID)
|
|
98
|
+
self.DoubleYieldStrength = DoubleYieldStrength(client, ID, documentProxyID)
|
|
99
|
+
self.HardeningSoilStrength = HardeningSoilStrength(client, ID, documentProxyID)
|
|
100
|
+
self.HardeningSoilWithSmallStrainStiffness = HardeningSoilWithSmallStrainStiffness(client, ID, documentProxyID)
|
|
101
|
+
self.SoftSoilStrength = SoftSoilStrength(client, ID, documentProxyID)
|
|
102
|
+
self.SoftSoilCreepStrength = SoftSoilCreepStrength(client, ID, documentProxyID)
|
|
103
|
+
self.SwellingRockStrength = SwellingRockStrength(client, ID, documentProxyID)
|
|
104
|
+
def getFailureCriterion(self) -> StrengthCriteriaTypes:
|
|
105
|
+
return StrengthCriteriaTypes(self._getEnumEStrengthCriteriaTypesProperty("MP_FAILURE_CRITERION"))
|
|
106
|
+
def setFailureCriterion(self, value: StrengthCriteriaTypes):
|
|
107
|
+
return self._setEnumEStrengthCriteriaTypesProperty("MP_FAILURE_CRITERION", value)
|
|
108
|
+
def getUnsaturatedBehavior(self) -> UnsaturatedParameterType:
|
|
109
|
+
return UnsaturatedParameterType(self._getEnumEUnsaturatedParameterTypeProperty("MP_UNSATURATED_PARAMETER_TYPE"))
|
|
110
|
+
def setUnsaturatedBehavior(self, value: UnsaturatedParameterType):
|
|
111
|
+
return self._setEnumEUnsaturatedParameterTypeProperty("MP_UNSATURATED_PARAMETER_TYPE", value)
|
|
112
|
+
def getUnsaturatedShearStrengthType(self) -> UnsaturatedShearStrengthType:
|
|
113
|
+
return UnsaturatedShearStrengthType(self._getEnumEUnsaturatedShearStrengthTypeProperty("MP_UNSATURATED_SHEAR_STRENGTH_TYPE"))
|
|
114
|
+
def setUnsaturatedShearStrengthType(self, value: UnsaturatedShearStrengthType):
|
|
115
|
+
return self._setEnumEUnsaturatedShearStrengthTypeProperty("MP_UNSATURATED_SHEAR_STRENGTH_TYPE", value)
|
|
116
|
+
def getUnsaturatedShearStrengthAngle(self) -> float:
|
|
117
|
+
return self._getDoubleProperty("MP_UNSATURATED_SHEAR_STRENGTH_ANGLE")
|
|
118
|
+
def setUnsaturatedShearStrengthAngle(self, value: float):
|
|
119
|
+
return self._setDoubleProperty("MP_UNSATURATED_SHEAR_STRENGTH_ANGLE", value)
|
|
120
|
+
def getAirEntryValue(self) -> float:
|
|
121
|
+
return self._getDoubleProperty("MP_UNSATURATED_AIR_ENTRY_VALUE")
|
|
122
|
+
def setAirEntryValue(self, value: float):
|
|
123
|
+
return self._setDoubleProperty("MP_UNSATURATED_AIR_ENTRY_VALUE", value)
|
|
124
|
+
def getSingleEffectiveStressMethod(self) -> UnsaturatedSingleEffectiveStressMethod:
|
|
125
|
+
return UnsaturatedSingleEffectiveStressMethod(self._getEnumEUnsaturatedSingleEffectiveStressMethodProperty("MP_UNSATURATED_SINGLE_EFFECTIVE_STRESS_METHOD"))
|
|
126
|
+
def setSingleEffectiveStressMethod(self, value: UnsaturatedSingleEffectiveStressMethod):
|
|
127
|
+
return self._setEnumEUnsaturatedSingleEffectiveStressMethodProperty("MP_UNSATURATED_SINGLE_EFFECTIVE_STRESS_METHOD", value)
|
|
128
|
+
def getAlpha(self) -> float:
|
|
129
|
+
return self._getDoubleProperty("MP_UNSATURATED_ALPHA")
|
|
130
|
+
def setAlpha(self, value: float):
|
|
131
|
+
return self._setDoubleProperty("MP_UNSATURATED_ALPHA", value)
|
|
132
|
+
def getAirEntrySuction(self) -> float:
|
|
133
|
+
return self._getDoubleProperty("MP_UNSATURATED_AIR_ENTRY_SUCTION")
|
|
134
|
+
def setAirEntrySuction(self, value: float):
|
|
135
|
+
return self._setDoubleProperty("MP_UNSATURATED_AIR_ENTRY_SUCTION", value)
|
|
136
|
+
def getCriticalSuction(self) -> float:
|
|
137
|
+
return self._getDoubleProperty("MP_UNSATURATED_CRITICAL_SUCTION")
|
|
138
|
+
def setCriticalSuction(self, value: float):
|
|
139
|
+
return self._setDoubleProperty("MP_UNSATURATED_CRITICAL_SUCTION", value)
|
|
140
|
+
def getMaterialParameter(self) -> float:
|
|
141
|
+
return self._getDoubleProperty("MP_UNSATURATED_MATERIAL_PARAMETER")
|
|
142
|
+
def setMaterialParameter(self, value: float):
|
|
143
|
+
return self._setDoubleProperty("MP_UNSATURATED_MATERIAL_PARAMETER", value)
|
|
144
|
+
def getUseCutoff(self) -> bool:
|
|
145
|
+
return self._getBoolProperty("MP_UNSATURATED_USE_CUTOFF")
|
|
146
|
+
def setUseCutoff(self, value: bool):
|
|
147
|
+
return self._setBoolProperty("MP_UNSATURATED_USE_CUTOFF", value)
|
|
148
|
+
def getCutoffValue(self) -> float:
|
|
149
|
+
return self._getDoubleProperty("MP_UNSATURATED_CUTOFF_VALUE")
|
|
150
|
+
def setCutoffValue(self, value: float):
|
|
151
|
+
return self._setDoubleProperty("MP_UNSATURATED_CUTOFF_VALUE", value)
|
|
152
|
+
def getTabularValues(self) -> UnsaturatedTabularValueMethod:
|
|
153
|
+
return UnsaturatedTabularValueMethod(self._getEnumEUnsaturatedTabularValueMethodProperty("MP_UNSATURATED_TABULAR_VALUE_METHOD"))
|
|
154
|
+
def setTabularValues(self, value: UnsaturatedTabularValueMethod):
|
|
155
|
+
return self._setEnumEUnsaturatedTabularValueMethodProperty("MP_UNSATURATED_TABULAR_VALUE_METHOD", value)
|
|
156
|
+
def setUnsaturatedZoneTableWithRespectToSuction(self, coefficients: list[float], values: list[float]):
|
|
157
|
+
"""
|
|
158
|
+
Specify the coefficient and values with respect to suction.
|
|
159
|
+
"""
|
|
160
|
+
return self._callFunction("setUnsaturatedZoneTableWithRespectToSuction", [coefficients, values])
|
|
161
|
+
def getUnsaturatedZoneTableWithRespectToSuction(self) -> tuple[list[float],list[float]]:
|
|
162
|
+
"""
|
|
163
|
+
Returns a tuple of lists where the first element is coefficients and the second is values with respect to suction.
|
|
164
|
+
"""
|
|
165
|
+
return self._callFunction("getUnsaturatedZoneTableWithRespectToSuction", [])
|
|
166
|
+
def setUnsaturatedZoneTableWithRespectToDegreeOfSaturation(self, coefficients: list[float], values: list[float]):
|
|
167
|
+
"""
|
|
168
|
+
Specify the coefficient and values with respect to degree of saturation.
|
|
169
|
+
"""
|
|
170
|
+
return self._callFunction("setUnsaturatedZoneTableWithRespectToDegreeOfSaturation", [coefficients, values])
|
|
171
|
+
def getUnsaturatedZoneTableWithRespectToDegreeOfSaturation(self) -> list[tuple[float,float]]:
|
|
172
|
+
"""
|
|
173
|
+
Returns a tuple of lists where the first element is coefficients and the second is values with respect to degree of saturation.
|
|
174
|
+
"""
|
|
175
|
+
return self._callFunction("getUnsaturatedZoneTableWithRespectToDegreeOfSaturation", [])
|
|
176
|
+
def setUnsaturatedZoneTableWithRespectToEffectiveDegreeOfSaturation(self, coefficients: list[float], values: list[float]):
|
|
177
|
+
"""
|
|
178
|
+
Specify the coefficient and values with respect to effective degree of saturation.
|
|
179
|
+
"""
|
|
180
|
+
return self._callFunction("setUnsaturatedZoneTableWithRespectToEffectiveDegreeOfSaturation", [coefficients, values])
|
|
181
|
+
def getUnsaturatedZoneTableWithRespectToEffectiveDegreeOfSaturation(self) -> list[tuple[float,float]]:
|
|
182
|
+
"""
|
|
183
|
+
Returns a tuple of lists where the first element is coefficients and the second is values with respect to effective degree of saturation.
|
|
184
|
+
"""
|
|
185
|
+
return self._callFunction("getUnsaturatedZoneTableWithRespectToEffectiveDegreeOfSaturation", [])
|
|
@@ -0,0 +1,122 @@
|
|
|
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 SwellingRockStrength(PropertyProxy):
|
|
7
|
+
def getFrictionAngle(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_SR_FRIC_ANGLE")
|
|
9
|
+
def setFrictionAngle(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_SR_FRIC_ANGLE", value)
|
|
11
|
+
def getCohesion(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_SR_COHESION")
|
|
13
|
+
def setCohesion(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_SR_COHESION", value)
|
|
15
|
+
def getTensileStrength(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_SR_TENSILE")
|
|
17
|
+
def setTensileStrength(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_SR_TENSILE", value)
|
|
19
|
+
def getDilationAngle(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_SR_DILATION_ANGLE")
|
|
21
|
+
def setDilationAngle(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_SR_DILATION_ANGLE", value)
|
|
23
|
+
def getA0(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_SR_A0")
|
|
25
|
+
def setA0(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_SR_A0", value)
|
|
27
|
+
def getAElastic(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_SR_A_ELASTIC")
|
|
29
|
+
def setAElastic(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_SR_A_ELASTIC", value)
|
|
31
|
+
def getAPlastic(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_SR_A_PLASTIC")
|
|
33
|
+
def setAPlastic(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_SR_A_PLASTIC", value)
|
|
35
|
+
def getMaximumPlasticVolumetricStrainForAPlastic(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_SR_MAX_PLASTIC_V_STRAIN")
|
|
37
|
+
def setMaximumPlasticVolumetricStrainForAPlastic(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_SR_MAX_PLASTIC_V_STRAIN", value)
|
|
39
|
+
def getKSwellNormal(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_SR_K_SWELL_NORMAL")
|
|
41
|
+
def setKSwellNormal(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_SR_K_SWELL_NORMAL", value)
|
|
43
|
+
def getKSwellTangential(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_SR_K_SWELL_TANGENT")
|
|
45
|
+
def setKSwellTangential(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_SR_K_SWELL_TANGENT", value)
|
|
47
|
+
def getMaximumSwellingStressNormal(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_SR_MAX_STRESS_NORMAL")
|
|
49
|
+
def setMaximumSwellingStressNormal(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_SR_MAX_STRESS_NORMAL", value)
|
|
51
|
+
def getMaximumSwellingStressTangential(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_SR_MAX_STRESS_TANGENT")
|
|
53
|
+
def setMaximumSwellingStressTangential(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_SR_MAX_STRESS_TANGENT", value)
|
|
55
|
+
def getMinimumSwellingStress(self) -> float:
|
|
56
|
+
return self._getDoubleProperty("MP_SR_MIN_STRESS")
|
|
57
|
+
def setMinimumSwellingStress(self, value: float):
|
|
58
|
+
return self._setDoubleProperty("MP_SR_MIN_STRESS", value)
|
|
59
|
+
def getSwellingFormulation(self) -> SwellingForm:
|
|
60
|
+
return SwellingForm(self._getEnumESwellingFormProperty("MP_SR_SWELLING_FORM"))
|
|
61
|
+
def setSwellingFormulation(self, value: SwellingForm):
|
|
62
|
+
return self._setEnumESwellingFormProperty("MP_SR_SWELLING_FORM", value)
|
|
63
|
+
def getWaterCondition(self) -> WaterCondition:
|
|
64
|
+
return WaterCondition(self._getEnumEWaterConditionProperty("MP_SR_WATER_CONDITION"))
|
|
65
|
+
def setWaterCondition(self, value: WaterCondition):
|
|
66
|
+
return self._setEnumEWaterConditionProperty("MP_SR_WATER_CONDITION", value)
|
|
67
|
+
def getSigmaCoupling(self) -> float:
|
|
68
|
+
return self._getDoubleProperty("MP_SR_SIGMA_COUPLING")
|
|
69
|
+
def setSigmaCoupling(self, value: float):
|
|
70
|
+
return self._setDoubleProperty("MP_SR_SIGMA_COUPLING", value)
|
|
71
|
+
def setProperties(self, FrictionAngle : float = None, Cohesion : float = None, TensileStrength : float = None, DilationAngle : float = None, A0 : float = None, AElastic : float = None, APlastic : float = None, MaximumPlasticVolumetricStrainForAPlastic : float = None, KSwellNormal : float = None, KSwellTangential : float = None, MaximumSwellingStressNormal : float = None, MaximumSwellingStressTangential : float = None, MinimumSwellingStress : float = None, SwellingFormulation : SwellingForm = None, WaterCondition : WaterCondition = None, SigmaCoupling : float = None):
|
|
72
|
+
if FrictionAngle is not None:
|
|
73
|
+
self._setDoubleProperty("MP_SR_FRIC_ANGLE", FrictionAngle)
|
|
74
|
+
if Cohesion is not None:
|
|
75
|
+
self._setDoubleProperty("MP_SR_COHESION", Cohesion)
|
|
76
|
+
if TensileStrength is not None:
|
|
77
|
+
self._setDoubleProperty("MP_SR_TENSILE", TensileStrength)
|
|
78
|
+
if DilationAngle is not None:
|
|
79
|
+
self._setDoubleProperty("MP_SR_DILATION_ANGLE", DilationAngle)
|
|
80
|
+
if A0 is not None:
|
|
81
|
+
self._setDoubleProperty("MP_SR_A0", A0)
|
|
82
|
+
if AElastic is not None:
|
|
83
|
+
self._setDoubleProperty("MP_SR_A_ELASTIC", AElastic)
|
|
84
|
+
if APlastic is not None:
|
|
85
|
+
self._setDoubleProperty("MP_SR_A_PLASTIC", APlastic)
|
|
86
|
+
if MaximumPlasticVolumetricStrainForAPlastic is not None:
|
|
87
|
+
self._setDoubleProperty("MP_SR_MAX_PLASTIC_V_STRAIN", MaximumPlasticVolumetricStrainForAPlastic)
|
|
88
|
+
if KSwellNormal is not None:
|
|
89
|
+
self._setDoubleProperty("MP_SR_K_SWELL_NORMAL", KSwellNormal)
|
|
90
|
+
if KSwellTangential is not None:
|
|
91
|
+
self._setDoubleProperty("MP_SR_K_SWELL_TANGENT", KSwellTangential)
|
|
92
|
+
if MaximumSwellingStressNormal is not None:
|
|
93
|
+
self._setDoubleProperty("MP_SR_MAX_STRESS_NORMAL", MaximumSwellingStressNormal)
|
|
94
|
+
if MaximumSwellingStressTangential is not None:
|
|
95
|
+
self._setDoubleProperty("MP_SR_MAX_STRESS_TANGENT", MaximumSwellingStressTangential)
|
|
96
|
+
if MinimumSwellingStress is not None:
|
|
97
|
+
self._setDoubleProperty("MP_SR_MIN_STRESS", MinimumSwellingStress)
|
|
98
|
+
if SwellingFormulation is not None:
|
|
99
|
+
self._setEnumESwellingFormProperty("MP_SR_SWELLING_FORM", SwellingFormulation)
|
|
100
|
+
if WaterCondition is not None:
|
|
101
|
+
self._setEnumEWaterConditionProperty("MP_SR_WATER_CONDITION", WaterCondition)
|
|
102
|
+
if SigmaCoupling is not None:
|
|
103
|
+
self._setDoubleProperty("MP_SR_SIGMA_COUPLING", SigmaCoupling)
|
|
104
|
+
def getProperties(self):
|
|
105
|
+
return {
|
|
106
|
+
"FrictionAngle" : self.getFrictionAngle(),
|
|
107
|
+
"Cohesion" : self.getCohesion(),
|
|
108
|
+
"TensileStrength" : self.getTensileStrength(),
|
|
109
|
+
"DilationAngle" : self.getDilationAngle(),
|
|
110
|
+
"A0" : self.getA0(),
|
|
111
|
+
"AElastic" : self.getAElastic(),
|
|
112
|
+
"APlastic" : self.getAPlastic(),
|
|
113
|
+
"MaximumPlasticVolumetricStrainForAPlastic" : self.getMaximumPlasticVolumetricStrainForAPlastic(),
|
|
114
|
+
"KSwellNormal" : self.getKSwellNormal(),
|
|
115
|
+
"KSwellTangential" : self.getKSwellTangential(),
|
|
116
|
+
"MaximumSwellingStressNormal" : self.getMaximumSwellingStressNormal(),
|
|
117
|
+
"MaximumSwellingStressTangential" : self.getMaximumSwellingStressTangential(),
|
|
118
|
+
"MinimumSwellingStress" : self.getMinimumSwellingStress(),
|
|
119
|
+
"SwellingFormulation" : self.getSwellingFormulation(),
|
|
120
|
+
"WaterCondition" : self.getWaterCondition(),
|
|
121
|
+
"SigmaCoupling" : self.getSigmaCoupling(),
|
|
122
|
+
}
|