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,268 @@
|
|
|
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.RelativeStageFactorInterface import RelativeStageFactorInterface
|
|
8
|
+
class StandardBeamStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getUnitWeightFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["LNP_UNIT_WEIGHT", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getThicknessFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["LNP_THICKNESS", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
def getAreaFactor(self) -> float:
|
|
17
|
+
return self._callFunction("getDoubleFactor", ["LNP_AREA", self.propertyID], proxyArgumentIndices=[1])
|
|
18
|
+
def getMomentOfInertiaFactor(self) -> float:
|
|
19
|
+
return self._callFunction("getDoubleFactor", ["LNP_MOMENT_OF_INERTIA", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
+
def getYoungsModulusFactor(self) -> float:
|
|
21
|
+
return self._callFunction("getDoubleFactor", ["LNP_YOUNGS_MODULUS", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getPoissonsRatioFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["LNP_POISSONS_RATIO", self.propertyID], proxyArgumentIndices=[1])
|
|
24
|
+
def getAxialStrainExpansionFactor(self) -> float:
|
|
25
|
+
return self._callFunction("getDoubleFactor", ["LNP_AXIAL_STRAIN", self.propertyID], proxyArgumentIndices=[1])
|
|
26
|
+
def getCompressiveStrengthPeakFactor(self) -> float:
|
|
27
|
+
return self._callFunction("getDoubleFactor", ["LNP_COMPRESSIVE_STRENGTH", self.propertyID], proxyArgumentIndices=[1])
|
|
28
|
+
def getCompressiveStrengthResidualFactor(self) -> float:
|
|
29
|
+
return self._callFunction("getDoubleFactor", ["LNP_COMPRESSIVE_STRENGTH_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
30
|
+
def getTensileStrengthPeakFactor(self) -> float:
|
|
31
|
+
return self._callFunction("getDoubleFactor", ["LNP_TENSILE_STRENGTH", self.propertyID], proxyArgumentIndices=[1])
|
|
32
|
+
def getTensileStrengthResidualFactor(self) -> float:
|
|
33
|
+
return self._callFunction("getDoubleFactor", ["LNP_TENSILE_STRENGTH_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
34
|
+
def getConductivityFactor(self) -> float:
|
|
35
|
+
return self._callFunction("getDoubleFactor", ["LNP_THERAMAL_CONDUCTIVITY", self.propertyID], proxyArgumentIndices=[1])
|
|
36
|
+
def getSpecificHeatCapacityFactor(self) -> float:
|
|
37
|
+
return self._callFunction("getDoubleFactor", ["LNP_THERAMAL_SPECIFIC_HEAT_CAPACITY", self.propertyID], proxyArgumentIndices=[1])
|
|
38
|
+
def getExpansionCoefficientFactor(self) -> float:
|
|
39
|
+
return self._callFunction("getDoubleFactor", ["LNP_THERAMAL_EXPANSION_ALPHA", self.propertyID], proxyArgumentIndices=[1])
|
|
40
|
+
class StandardBeamDefinedStageFactor(StandardBeamStageFactor):
|
|
41
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
42
|
+
super().__init__(client, ID, propertyID)
|
|
43
|
+
def setUnitWeightFactor(self, value: float):
|
|
44
|
+
return self._callFunction("setDoubleFactor", ["LNP_UNIT_WEIGHT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
45
|
+
def setThicknessFactor(self, value: float):
|
|
46
|
+
return self._callFunction("setDoubleFactor", ["LNP_THICKNESS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
47
|
+
def setAreaFactor(self, value: float):
|
|
48
|
+
return self._callFunction("setDoubleFactor", ["LNP_AREA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
49
|
+
def setMomentOfInertiaFactor(self, value: float):
|
|
50
|
+
return self._callFunction("setDoubleFactor", ["LNP_MOMENT_OF_INERTIA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
51
|
+
def setYoungsModulusFactor(self, value: float):
|
|
52
|
+
return self._callFunction("setDoubleFactor", ["LNP_YOUNGS_MODULUS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
53
|
+
def setPoissonsRatioFactor(self, value: float):
|
|
54
|
+
return self._callFunction("setDoubleFactor", ["LNP_POISSONS_RATIO", value, self.propertyID], proxyArgumentIndices=[2])
|
|
55
|
+
def setAxialStrainExpansionFactor(self, value: float):
|
|
56
|
+
return self._callFunction("setDoubleFactor", ["LNP_AXIAL_STRAIN", value, self.propertyID], proxyArgumentIndices=[2])
|
|
57
|
+
def setCompressiveStrengthPeakFactor(self, value: float):
|
|
58
|
+
return self._callFunction("setDoubleFactor", ["LNP_COMPRESSIVE_STRENGTH", value, self.propertyID], proxyArgumentIndices=[2])
|
|
59
|
+
def setCompressiveStrengthResidualFactor(self, value: float):
|
|
60
|
+
return self._callFunction("setDoubleFactor", ["LNP_COMPRESSIVE_STRENGTH_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
61
|
+
def setTensileStrengthPeakFactor(self, value: float):
|
|
62
|
+
return self._callFunction("setDoubleFactor", ["LNP_TENSILE_STRENGTH", value, self.propertyID], proxyArgumentIndices=[2])
|
|
63
|
+
def setTensileStrengthResidualFactor(self, value: float):
|
|
64
|
+
return self._callFunction("setDoubleFactor", ["LNP_TENSILE_STRENGTH_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
65
|
+
def setConductivityFactor(self, value: float):
|
|
66
|
+
return self._callFunction("setDoubleFactor", ["LNP_THERAMAL_CONDUCTIVITY", value, self.propertyID], proxyArgumentIndices=[2])
|
|
67
|
+
def setSpecificHeatCapacityFactor(self, value: float):
|
|
68
|
+
return self._callFunction("setDoubleFactor", ["LNP_THERAMAL_SPECIFIC_HEAT_CAPACITY", value, self.propertyID], proxyArgumentIndices=[2])
|
|
69
|
+
def setExpansionCoefficientFactor(self, value: float):
|
|
70
|
+
return self._callFunction("setDoubleFactor", ["LNP_THERAMAL_EXPANSION_ALPHA", value, self.propertyID], proxyArgumentIndices=[2])
|
|
71
|
+
class StandardBeam(PropertyProxy):
|
|
72
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
73
|
+
super().__init__(client, ID, documentProxyID)
|
|
74
|
+
stageFactorInterfaceID = self._callFunction("getStageFactorInterface", [], keepReturnValueReference=True)
|
|
75
|
+
self.stageFactorInterface = RelativeStageFactorInterface[StandardBeamDefinedStageFactor, StandardBeamStageFactor](self._client, stageFactorInterfaceID, ID, StandardBeamDefinedStageFactor, StandardBeamStageFactor)
|
|
76
|
+
def getUnitWeight(self) -> float:
|
|
77
|
+
return self._getDoubleProperty("LNP_UNIT_WEIGHT")
|
|
78
|
+
def setUnitWeight(self, value: float):
|
|
79
|
+
return self._setDoubleProperty("LNP_UNIT_WEIGHT", value)
|
|
80
|
+
def getIncludeWeightInStressAnalysis(self) -> bool:
|
|
81
|
+
return self._getBoolProperty("LNP_USE_WEIGHT")
|
|
82
|
+
def setIncludeWeightInStressAnalysis(self, value: bool):
|
|
83
|
+
return self._setBoolProperty("LNP_USE_WEIGHT", value)
|
|
84
|
+
def getInitialTemperature(self) -> float:
|
|
85
|
+
return self._getDoubleProperty("LNP_THERAMAL_INITIAL_TEMPERATURE")
|
|
86
|
+
def setInitialTemperature(self, value: float):
|
|
87
|
+
return self._setDoubleProperty("LNP_THERAMAL_INITIAL_TEMPERATURE", value)
|
|
88
|
+
def getMethod(self) -> GeometryChoice:
|
|
89
|
+
return GeometryChoice(self._getEnumEGeometryChoiceProperty("LNP_GEOMETRY_CHOICE"))
|
|
90
|
+
def setMethod(self, value: GeometryChoice):
|
|
91
|
+
return self._setEnumEGeometryChoiceProperty("LNP_GEOMETRY_CHOICE", value)
|
|
92
|
+
def getThickness(self) -> float:
|
|
93
|
+
return self._getDoubleProperty("LNP_THICKNESS")
|
|
94
|
+
def setThickness(self, value: float):
|
|
95
|
+
return self._setDoubleProperty("LNP_THICKNESS", value)
|
|
96
|
+
def getArea(self) -> float:
|
|
97
|
+
return self._getDoubleProperty("LNP_AREA")
|
|
98
|
+
def setArea(self, value: float):
|
|
99
|
+
return self._setDoubleProperty("LNP_AREA", value)
|
|
100
|
+
def getMomentOfInertia(self) -> float:
|
|
101
|
+
return self._getDoubleProperty("LNP_MOMENT_OF_INERTIA")
|
|
102
|
+
def setMomentOfInertia(self, value: float):
|
|
103
|
+
return self._setDoubleProperty("LNP_MOMENT_OF_INERTIA", value)
|
|
104
|
+
def getYoungsModulus(self) -> float:
|
|
105
|
+
return self._getDoubleProperty("LNP_YOUNGS_MODULUS")
|
|
106
|
+
def setYoungsModulus(self, value: float):
|
|
107
|
+
return self._setDoubleProperty("LNP_YOUNGS_MODULUS", value)
|
|
108
|
+
def getPoissonsRatio(self) -> float:
|
|
109
|
+
return self._getDoubleProperty("LNP_POISSONS_RATIO")
|
|
110
|
+
def setPoissonsRatio(self, value: float):
|
|
111
|
+
return self._setDoubleProperty("LNP_POISSONS_RATIO", value)
|
|
112
|
+
def getMaterialType(self) -> MaterialType:
|
|
113
|
+
return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("LNP_MATERIAL_TYPE"))
|
|
114
|
+
def setMaterialType(self, value: MaterialType):
|
|
115
|
+
return self._setEnumEMaterialAnalysisTypesProperty("LNP_MATERIAL_TYPE", value)
|
|
116
|
+
def getCompressiveStrengthPeak(self) -> float:
|
|
117
|
+
return self._getDoubleProperty("LNP_COMPRESSIVE_STRENGTH")
|
|
118
|
+
def setCompressiveStrengthPeak(self, value: float):
|
|
119
|
+
return self._setDoubleProperty("LNP_COMPRESSIVE_STRENGTH", value)
|
|
120
|
+
def getCompressiveStrengthResidual(self) -> float:
|
|
121
|
+
return self._getDoubleProperty("LNP_COMPRESSIVE_STRENGTH_RES")
|
|
122
|
+
def setCompressiveStrengthResidual(self, value: float):
|
|
123
|
+
return self._setDoubleProperty("LNP_COMPRESSIVE_STRENGTH_RES", value)
|
|
124
|
+
def getTensileStrengthPeak(self) -> float:
|
|
125
|
+
return self._getDoubleProperty("LNP_TENSILE_STRENGTH")
|
|
126
|
+
def setTensileStrengthPeak(self, value: float):
|
|
127
|
+
return self._setDoubleProperty("LNP_TENSILE_STRENGTH", value)
|
|
128
|
+
def getTensileStrengthResidual(self) -> float:
|
|
129
|
+
return self._getDoubleProperty("LNP_TENSILE_STRENGTH_RES")
|
|
130
|
+
def setTensileStrengthResidual(self, value: float):
|
|
131
|
+
return self._setDoubleProperty("LNP_TENSILE_STRENGTH_RES", value)
|
|
132
|
+
def getSlidingGap(self) -> bool:
|
|
133
|
+
return self._getBoolProperty("LNP_USE_SLIDING_GAP")
|
|
134
|
+
def setSlidingGap(self, value: bool):
|
|
135
|
+
return self._setBoolProperty("LNP_USE_SLIDING_GAP", value)
|
|
136
|
+
def getStrainAtLocking(self) -> float:
|
|
137
|
+
return self._getDoubleProperty("LNP_STRAIN_AT_LOCKING")
|
|
138
|
+
def setStrainAtLocking(self, value: float):
|
|
139
|
+
return self._setDoubleProperty("LNP_STRAIN_AT_LOCKING", value)
|
|
140
|
+
def getBeamElementFormulation(self) -> LinerFormulation:
|
|
141
|
+
return LinerFormulation(self._getEnumELinerFormulationProperty("LNP_BEAM_ELEMENT_FORMULATION"))
|
|
142
|
+
def setBeamElementFormulation(self, value: LinerFormulation):
|
|
143
|
+
return self._setEnumELinerFormulationProperty("LNP_BEAM_ELEMENT_FORMULATION", value)
|
|
144
|
+
def getAxialStrainExpansion(self) -> float:
|
|
145
|
+
return self._getDoubleProperty("LNP_AXIAL_STRAIN")
|
|
146
|
+
def setAxialStrainExpansion(self, value: float):
|
|
147
|
+
return self._setDoubleProperty("LNP_AXIAL_STRAIN", value)
|
|
148
|
+
def getActivateThermal(self) -> bool:
|
|
149
|
+
return self._getBoolProperty("LNP_THERAMAL_ACTIVATE")
|
|
150
|
+
def setActivateThermal(self, value: bool):
|
|
151
|
+
return self._setBoolProperty("LNP_THERAMAL_ACTIVATE", value)
|
|
152
|
+
def getStaticTemperatureMode(self) -> StaticWaterModes:
|
|
153
|
+
return StaticWaterModes(self._getEnumEStaticWaterModesProperty("LNP_STATIC_TEMPERATURE_METHOD"))
|
|
154
|
+
def setStaticTemperatureMode(self, value: StaticWaterModes):
|
|
155
|
+
return self._setEnumEStaticWaterModesProperty("LNP_STATIC_TEMPERATURE_METHOD", value)
|
|
156
|
+
def getStaticTemperature(self) -> float:
|
|
157
|
+
return self._getDoubleProperty("LNP_STATIC_TEMPERATURE_CONST")
|
|
158
|
+
def setStaticTemperature(self, value: float):
|
|
159
|
+
return self._setDoubleProperty("LNP_STATIC_TEMPERATURE_CONST", value)
|
|
160
|
+
def getConductivity(self) -> float:
|
|
161
|
+
return self._getDoubleProperty("LNP_THERAMAL_CONDUCTIVITY")
|
|
162
|
+
def setConductivity(self, value: float):
|
|
163
|
+
return self._setDoubleProperty("LNP_THERAMAL_CONDUCTIVITY", value)
|
|
164
|
+
def getSpecificHeatCapacity(self) -> float:
|
|
165
|
+
return self._getDoubleProperty("LNP_THERAMAL_SPECIFIC_HEAT_CAPACITY")
|
|
166
|
+
def setSpecificHeatCapacity(self, value: float):
|
|
167
|
+
return self._setDoubleProperty("LNP_THERAMAL_SPECIFIC_HEAT_CAPACITY", value)
|
|
168
|
+
def getThermalExpansion(self) -> bool:
|
|
169
|
+
return self._getBoolProperty("LNP_THERAMAL_EXPANSION_IS_ON")
|
|
170
|
+
def setThermalExpansion(self, value: bool):
|
|
171
|
+
return self._setBoolProperty("LNP_THERAMAL_EXPANSION_IS_ON", value)
|
|
172
|
+
def getExpansionCoefficient(self) -> float:
|
|
173
|
+
return self._getDoubleProperty("LNP_THERAMAL_EXPANSION_ALPHA")
|
|
174
|
+
def setExpansionCoefficient(self, value: float):
|
|
175
|
+
return self._setDoubleProperty("LNP_THERAMAL_EXPANSION_ALPHA", value)
|
|
176
|
+
def getStageLinerProperties(self) -> bool:
|
|
177
|
+
return self._getBoolProperty("LNP_USE_STAGE_LINER")
|
|
178
|
+
def setStageLinerProperties(self, value: bool):
|
|
179
|
+
return self._setBoolProperty("LNP_USE_STAGE_LINER", value)
|
|
180
|
+
def getStaticTemperatureGridToUse(self) -> str:
|
|
181
|
+
return self._callFunction("getStaticTemperatureGridToUse", [])
|
|
182
|
+
def setStaticTemperatureGridToUse(self, gridName: str):
|
|
183
|
+
"""
|
|
184
|
+
Grids "None" and "Default Grid" available by default.
|
|
185
|
+
"""
|
|
186
|
+
return self._callFunction("setStaticTemperatureGridToUse", [gridName])
|
|
187
|
+
def setProperties(self, UnitWeight : float = None, IncludeWeightInStressAnalysis : bool = None, InitialTemperature : float = None, Method : GeometryChoice = None, Thickness : float = None, Area : float = None, MomentOfInertia : float = None, YoungsModulus : float = None, PoissonsRatio : float = None, MaterialType : MaterialType = None, CompressiveStrengthPeak : float = None, CompressiveStrengthResidual : float = None, TensileStrengthPeak : float = None, TensileStrengthResidual : float = None, SlidingGap : bool = None, StrainAtLocking : float = None, BeamElementFormulation : LinerFormulation = None, AxialStrainExpansion : float = None, ActivateThermal : bool = None, StaticTemperatureMode : StaticWaterModes = None, StaticTemperature : float = None, Conductivity : float = None, SpecificHeatCapacity : float = None, ThermalExpansion : bool = None, ExpansionCoefficient : float = None, StageLinerProperties : bool = None):
|
|
188
|
+
if UnitWeight is not None:
|
|
189
|
+
self._setDoubleProperty("LNP_UNIT_WEIGHT", UnitWeight)
|
|
190
|
+
if IncludeWeightInStressAnalysis is not None:
|
|
191
|
+
self._setBoolProperty("LNP_USE_WEIGHT", IncludeWeightInStressAnalysis)
|
|
192
|
+
if InitialTemperature is not None:
|
|
193
|
+
self._setDoubleProperty("LNP_THERAMAL_INITIAL_TEMPERATURE", InitialTemperature)
|
|
194
|
+
if Method is not None:
|
|
195
|
+
self._setEnumEGeometryChoiceProperty("LNP_GEOMETRY_CHOICE", Method)
|
|
196
|
+
if Thickness is not None:
|
|
197
|
+
self._setDoubleProperty("LNP_THICKNESS", Thickness)
|
|
198
|
+
if Area is not None:
|
|
199
|
+
self._setDoubleProperty("LNP_AREA", Area)
|
|
200
|
+
if MomentOfInertia is not None:
|
|
201
|
+
self._setDoubleProperty("LNP_MOMENT_OF_INERTIA", MomentOfInertia)
|
|
202
|
+
if YoungsModulus is not None:
|
|
203
|
+
self._setDoubleProperty("LNP_YOUNGS_MODULUS", YoungsModulus)
|
|
204
|
+
if PoissonsRatio is not None:
|
|
205
|
+
self._setDoubleProperty("LNP_POISSONS_RATIO", PoissonsRatio)
|
|
206
|
+
if MaterialType is not None:
|
|
207
|
+
self._setEnumEMaterialAnalysisTypesProperty("LNP_MATERIAL_TYPE", MaterialType)
|
|
208
|
+
if CompressiveStrengthPeak is not None:
|
|
209
|
+
self._setDoubleProperty("LNP_COMPRESSIVE_STRENGTH", CompressiveStrengthPeak)
|
|
210
|
+
if CompressiveStrengthResidual is not None:
|
|
211
|
+
self._setDoubleProperty("LNP_COMPRESSIVE_STRENGTH_RES", CompressiveStrengthResidual)
|
|
212
|
+
if TensileStrengthPeak is not None:
|
|
213
|
+
self._setDoubleProperty("LNP_TENSILE_STRENGTH", TensileStrengthPeak)
|
|
214
|
+
if TensileStrengthResidual is not None:
|
|
215
|
+
self._setDoubleProperty("LNP_TENSILE_STRENGTH_RES", TensileStrengthResidual)
|
|
216
|
+
if SlidingGap is not None:
|
|
217
|
+
self._setBoolProperty("LNP_USE_SLIDING_GAP", SlidingGap)
|
|
218
|
+
if StrainAtLocking is not None:
|
|
219
|
+
self._setDoubleProperty("LNP_STRAIN_AT_LOCKING", StrainAtLocking)
|
|
220
|
+
if BeamElementFormulation is not None:
|
|
221
|
+
self._setEnumELinerFormulationProperty("LNP_BEAM_ELEMENT_FORMULATION", BeamElementFormulation)
|
|
222
|
+
if AxialStrainExpansion is not None:
|
|
223
|
+
self._setDoubleProperty("LNP_AXIAL_STRAIN", AxialStrainExpansion)
|
|
224
|
+
if ActivateThermal is not None:
|
|
225
|
+
self._setBoolProperty("LNP_THERAMAL_ACTIVATE", ActivateThermal)
|
|
226
|
+
if StaticTemperatureMode is not None:
|
|
227
|
+
self._setEnumEStaticWaterModesProperty("LNP_STATIC_TEMPERATURE_METHOD", StaticTemperatureMode)
|
|
228
|
+
if StaticTemperature is not None:
|
|
229
|
+
self._setDoubleProperty("LNP_STATIC_TEMPERATURE_CONST", StaticTemperature)
|
|
230
|
+
if Conductivity is not None:
|
|
231
|
+
self._setDoubleProperty("LNP_THERAMAL_CONDUCTIVITY", Conductivity)
|
|
232
|
+
if SpecificHeatCapacity is not None:
|
|
233
|
+
self._setDoubleProperty("LNP_THERAMAL_SPECIFIC_HEAT_CAPACITY", SpecificHeatCapacity)
|
|
234
|
+
if ThermalExpansion is not None:
|
|
235
|
+
self._setBoolProperty("LNP_THERAMAL_EXPANSION_IS_ON", ThermalExpansion)
|
|
236
|
+
if ExpansionCoefficient is not None:
|
|
237
|
+
self._setDoubleProperty("LNP_THERAMAL_EXPANSION_ALPHA", ExpansionCoefficient)
|
|
238
|
+
if StageLinerProperties is not None:
|
|
239
|
+
self._setBoolProperty("LNP_USE_STAGE_LINER", StageLinerProperties)
|
|
240
|
+
def getProperties(self):
|
|
241
|
+
return {
|
|
242
|
+
"UnitWeight" : self.getUnitWeight(),
|
|
243
|
+
"IncludeWeightInStressAnalysis" : self.getIncludeWeightInStressAnalysis(),
|
|
244
|
+
"InitialTemperature" : self.getInitialTemperature(),
|
|
245
|
+
"Method" : self.getMethod(),
|
|
246
|
+
"Thickness" : self.getThickness(),
|
|
247
|
+
"Area" : self.getArea(),
|
|
248
|
+
"MomentOfInertia" : self.getMomentOfInertia(),
|
|
249
|
+
"YoungsModulus" : self.getYoungsModulus(),
|
|
250
|
+
"PoissonsRatio" : self.getPoissonsRatio(),
|
|
251
|
+
"MaterialType" : self.getMaterialType(),
|
|
252
|
+
"CompressiveStrengthPeak" : self.getCompressiveStrengthPeak(),
|
|
253
|
+
"CompressiveStrengthResidual" : self.getCompressiveStrengthResidual(),
|
|
254
|
+
"TensileStrengthPeak" : self.getTensileStrengthPeak(),
|
|
255
|
+
"TensileStrengthResidual" : self.getTensileStrengthResidual(),
|
|
256
|
+
"SlidingGap" : self.getSlidingGap(),
|
|
257
|
+
"StrainAtLocking" : self.getStrainAtLocking(),
|
|
258
|
+
"BeamElementFormulation" : self.getBeamElementFormulation(),
|
|
259
|
+
"AxialStrainExpansion" : self.getAxialStrainExpansion(),
|
|
260
|
+
"ActivateThermal" : self.getActivateThermal(),
|
|
261
|
+
"StaticTemperatureMode" : self.getStaticTemperatureMode(),
|
|
262
|
+
"StaticTemperature" : self.getStaticTemperature(),
|
|
263
|
+
"Conductivity" : self.getConductivity(),
|
|
264
|
+
"SpecificHeatCapacity" : self.getSpecificHeatCapacity(),
|
|
265
|
+
"ThermalExpansion" : self.getThermalExpansion(),
|
|
266
|
+
"ExpansionCoefficient" : self.getExpansionCoefficient(),
|
|
267
|
+
"StageLinerProperties" : self.getStageLinerProperties(),
|
|
268
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,152 @@
|
|
|
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 InitialConditionsStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getUnitWeightFactor(self) -> float:
|
|
13
|
+
return self._callFunction("getDoubleFactor", ["MP_UNIT_WEIGHT", self.propertyID], proxyArgumentIndices=[1])
|
|
14
|
+
def getPorosityValueFactor(self) -> float:
|
|
15
|
+
return self._callFunction("getDoubleFactor", ["MP_POROSITY_VALUE", self.propertyID], proxyArgumentIndices=[1])
|
|
16
|
+
class InitialConditionsDefinedStageFactor(InitialConditionsStageFactor):
|
|
17
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
18
|
+
super().__init__(client, ID, propertyID)
|
|
19
|
+
def setUnitWeightFactor(self, value: float):
|
|
20
|
+
return self._callFunction("setDoubleFactor", ["MP_UNIT_WEIGHT", value, self.propertyID], proxyArgumentIndices=[2])
|
|
21
|
+
def setPorosityValueFactor(self, value: float):
|
|
22
|
+
return self._callFunction("setDoubleFactor", ["MP_POROSITY_VALUE", value, self.propertyID], proxyArgumentIndices=[2])
|
|
23
|
+
class InitialConditions(PropertyProxy):
|
|
24
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
25
|
+
super().__init__(client, ID, documentProxyID)
|
|
26
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[InitialConditionsDefinedStageFactor, InitialConditionsStageFactor](self._client, stageFactorInterfaceID, ID, InitialConditionsDefinedStageFactor, InitialConditionsStageFactor)
|
|
27
|
+
def getInitialElementLoading(self) -> InitialElementLoadingType:
|
|
28
|
+
return InitialElementLoadingType(self._getEnumEInitialElementLoadingTypeProperty("MP_INITIAL_ELEMENT_LOADING"))
|
|
29
|
+
def setInitialElementLoading(self, value: InitialElementLoadingType):
|
|
30
|
+
return self._setEnumEInitialElementLoadingTypeProperty("MP_INITIAL_ELEMENT_LOADING", value)
|
|
31
|
+
def getAccountForMoistureContentInUnitWeight(self) -> bool:
|
|
32
|
+
return self._getBoolProperty("MP_ACCOUNT_MOISTURE_UNIT_WEIGHT")
|
|
33
|
+
def setAccountForMoistureContentInUnitWeight(self, value: bool):
|
|
34
|
+
return self._setBoolProperty("MP_ACCOUNT_MOISTURE_UNIT_WEIGHT", value)
|
|
35
|
+
def getDryUnitWeight(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_DRY_UNIT_WEIGHT")
|
|
37
|
+
def setDryUnitWeight(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_DRY_UNIT_WEIGHT", value)
|
|
39
|
+
def getMoistUnitWeight(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_MOIST_UNIT_WEIGHT")
|
|
41
|
+
def setMoistUnitWeight(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_MOIST_UNIT_WEIGHT", value)
|
|
43
|
+
def getSaturatedUnitWeight(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_SATURATED_UNIT_WEIGHT")
|
|
45
|
+
def setSaturatedUnitWeight(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_SATURATED_UNIT_WEIGHT", value)
|
|
47
|
+
def getUnitWeight(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_UNIT_WEIGHT")
|
|
49
|
+
def setUnitWeight(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_UNIT_WEIGHT", value)
|
|
51
|
+
def getPorosityValue(self) -> float:
|
|
52
|
+
return self._getDoubleProperty("MP_POROSITY_VALUE")
|
|
53
|
+
def setPorosityValue(self, value: float):
|
|
54
|
+
return self._setDoubleProperty("MP_POROSITY_VALUE", value)
|
|
55
|
+
def getInitialWaterCondition(self) -> StaticWaterModes:
|
|
56
|
+
return StaticWaterModes(self._getEnumEStaticWaterModesProperty("MP_INITIAL_WATER_CONDITIONS"))
|
|
57
|
+
def setInitialWaterCondition(self, value: StaticWaterModes):
|
|
58
|
+
return self._setEnumEStaticWaterModesProperty("MP_INITIAL_WATER_CONDITIONS", value)
|
|
59
|
+
def getInitialPoreWaterPressure(self) -> float:
|
|
60
|
+
return self._getDoubleProperty("MP_INITIAL_PWP")
|
|
61
|
+
def setInitialPoreWaterPressure(self, value: float):
|
|
62
|
+
return self._setDoubleProperty("MP_INITIAL_PWP", value)
|
|
63
|
+
def getInitialRu(self) -> float:
|
|
64
|
+
return self._getDoubleProperty("MP_INITIAL_RU")
|
|
65
|
+
def setInitialRu(self, value: float):
|
|
66
|
+
return self._setDoubleProperty("MP_INITIAL_RU", value)
|
|
67
|
+
def getInitialHuType(self) -> HuTypes:
|
|
68
|
+
return HuTypes(self._getEnumEHuTypesProperty("MP_INITIAL_HU_TYPE"))
|
|
69
|
+
def setInitialHuType(self, value: HuTypes):
|
|
70
|
+
return self._setEnumEHuTypesProperty("MP_INITIAL_HU_TYPE", value)
|
|
71
|
+
def getInitialHu(self) -> float:
|
|
72
|
+
return self._getDoubleProperty("MP_INITIAL_HU")
|
|
73
|
+
def setInitialHu(self, value: float):
|
|
74
|
+
return self._setDoubleProperty("MP_INITIAL_HU", value)
|
|
75
|
+
def getInitialTemperatureCondition(self) -> StaticWaterModes:
|
|
76
|
+
return StaticWaterModes(self._getEnumEStaticWaterModesProperty("MP_INITIAL_TEMPERATURE_METHOD"))
|
|
77
|
+
def setInitialTemperatureCondition(self, value: StaticWaterModes):
|
|
78
|
+
return self._setEnumEStaticWaterModesProperty("MP_INITIAL_TEMPERATURE_METHOD", value)
|
|
79
|
+
def getInitialTemperature(self) -> float:
|
|
80
|
+
return self._getDoubleProperty("MP_INITIAL_TEMPERATURE_CONST")
|
|
81
|
+
def setInitialTemperature(self, value: float):
|
|
82
|
+
return self._setDoubleProperty("MP_INITIAL_TEMPERATURE_CONST", value)
|
|
83
|
+
def setInitialPiezoByName(self, piezoName: str):
|
|
84
|
+
"""
|
|
85
|
+
piezoName is the id of the piezo line to be used or "None".
|
|
86
|
+
"""
|
|
87
|
+
return self._callFunction("setInitialPiezoByName", [piezoName])
|
|
88
|
+
def getInitialPiezoName(self) -> str:
|
|
89
|
+
"""
|
|
90
|
+
Returns the id of the selected initial piezoLine or "None".
|
|
91
|
+
"""
|
|
92
|
+
return self._callFunction("getInitialPiezoName", [])
|
|
93
|
+
def setInitialGridByName(self, gridName: str):
|
|
94
|
+
"""
|
|
95
|
+
gridName is the name of the grid to be used. "None" and "Default Grid" are available by default.
|
|
96
|
+
"""
|
|
97
|
+
return self._callFunction("setInitialGridByName", [gridName])
|
|
98
|
+
def getInitialGridName(self) -> str:
|
|
99
|
+
return self._callFunction("getInitialGridName", [])
|
|
100
|
+
def setInitialTemperatureGridByName(self, gridName: str):
|
|
101
|
+
"""
|
|
102
|
+
gridName is the name of the grid to be used. "None" and "Default Grid" are available by default.
|
|
103
|
+
"""
|
|
104
|
+
return self._callFunction("setInitialTemperatureGridByName", [gridName])
|
|
105
|
+
def getInitialTemperatureGridName(self) -> str:
|
|
106
|
+
return self._callFunction("getInitialTemperatureGridName", [])
|
|
107
|
+
def setProperties(self, InitialElementLoading : InitialElementLoadingType = None, AccountForMoistureContentInUnitWeight : bool = None, DryUnitWeight : float = None, MoistUnitWeight : float = None, SaturatedUnitWeight : float = None, UnitWeight : float = None, PorosityValue : float = None, InitialWaterCondition : StaticWaterModes = None, InitialPoreWaterPressure : float = None, InitialRu : float = None, InitialHuType : HuTypes = None, InitialHu : float = None, InitialTemperatureCondition : StaticWaterModes = None, InitialTemperature : float = None):
|
|
108
|
+
if InitialElementLoading is not None:
|
|
109
|
+
self._setEnumEInitialElementLoadingTypeProperty("MP_INITIAL_ELEMENT_LOADING", InitialElementLoading)
|
|
110
|
+
if AccountForMoistureContentInUnitWeight is not None:
|
|
111
|
+
self._setBoolProperty("MP_ACCOUNT_MOISTURE_UNIT_WEIGHT", AccountForMoistureContentInUnitWeight)
|
|
112
|
+
if DryUnitWeight is not None:
|
|
113
|
+
self._setDoubleProperty("MP_DRY_UNIT_WEIGHT", DryUnitWeight)
|
|
114
|
+
if MoistUnitWeight is not None:
|
|
115
|
+
self._setDoubleProperty("MP_MOIST_UNIT_WEIGHT", MoistUnitWeight)
|
|
116
|
+
if SaturatedUnitWeight is not None:
|
|
117
|
+
self._setDoubleProperty("MP_SATURATED_UNIT_WEIGHT", SaturatedUnitWeight)
|
|
118
|
+
if UnitWeight is not None:
|
|
119
|
+
self._setDoubleProperty("MP_UNIT_WEIGHT", UnitWeight)
|
|
120
|
+
if PorosityValue is not None:
|
|
121
|
+
self._setDoubleProperty("MP_POROSITY_VALUE", PorosityValue)
|
|
122
|
+
if InitialWaterCondition is not None:
|
|
123
|
+
self._setEnumEStaticWaterModesProperty("MP_INITIAL_WATER_CONDITIONS", InitialWaterCondition)
|
|
124
|
+
if InitialPoreWaterPressure is not None:
|
|
125
|
+
self._setDoubleProperty("MP_INITIAL_PWP", InitialPoreWaterPressure)
|
|
126
|
+
if InitialRu is not None:
|
|
127
|
+
self._setDoubleProperty("MP_INITIAL_RU", InitialRu)
|
|
128
|
+
if InitialHuType is not None:
|
|
129
|
+
self._setEnumEHuTypesProperty("MP_INITIAL_HU_TYPE", InitialHuType)
|
|
130
|
+
if InitialHu is not None:
|
|
131
|
+
self._setDoubleProperty("MP_INITIAL_HU", InitialHu)
|
|
132
|
+
if InitialTemperatureCondition is not None:
|
|
133
|
+
self._setEnumEStaticWaterModesProperty("MP_INITIAL_TEMPERATURE_METHOD", InitialTemperatureCondition)
|
|
134
|
+
if InitialTemperature is not None:
|
|
135
|
+
self._setDoubleProperty("MP_INITIAL_TEMPERATURE_CONST", InitialTemperature)
|
|
136
|
+
def getProperties(self):
|
|
137
|
+
return {
|
|
138
|
+
"InitialElementLoading" : self.getInitialElementLoading(),
|
|
139
|
+
"AccountForMoistureContentInUnitWeight" : self.getAccountForMoistureContentInUnitWeight(),
|
|
140
|
+
"DryUnitWeight" : self.getDryUnitWeight(),
|
|
141
|
+
"MoistUnitWeight" : self.getMoistUnitWeight(),
|
|
142
|
+
"SaturatedUnitWeight" : self.getSaturatedUnitWeight(),
|
|
143
|
+
"UnitWeight" : self.getUnitWeight(),
|
|
144
|
+
"PorosityValue" : self.getPorosityValue(),
|
|
145
|
+
"InitialWaterCondition" : self.getInitialWaterCondition(),
|
|
146
|
+
"InitialPoreWaterPressure" : self.getInitialPoreWaterPressure(),
|
|
147
|
+
"InitialRu" : self.getInitialRu(),
|
|
148
|
+
"InitialHuType" : self.getInitialHuType(),
|
|
149
|
+
"InitialHu" : self.getInitialHu(),
|
|
150
|
+
"InitialTemperatureCondition" : self.getInitialTemperatureCondition(),
|
|
151
|
+
"InitialTemperature" : self.getInitialTemperature(),
|
|
152
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.InitialConditions import InitialConditions
|
|
7
|
+
from rs2.modeler.properties.material.stiffness.Stiffness import Stiffness
|
|
8
|
+
from rs2.modeler.properties.material.strength.Strength import Strength
|
|
9
|
+
from rs2.modeler.properties.material.hydraulic.Hydraulic import Hydraulic
|
|
10
|
+
from rs2.modeler.properties.material.thermal.Thermal import Thermal
|
|
11
|
+
from rs2.modeler.properties.material.datum.Datum import Datum
|
|
12
|
+
from rs2.modeler.properties.material.StageFactors import StageFactors
|
|
13
|
+
class MaterialProperty(PropertyProxy):
|
|
14
|
+
"""
|
|
15
|
+
:ref:`Material Example`
|
|
16
|
+
"""
|
|
17
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
18
|
+
super().__init__(client, ID, documentProxyID)
|
|
19
|
+
strengthStiffnessStageFactorInterface = self._callFunction("getStrengthStiffnessStageFactorInterface", [], keepReturnValueReference=True)
|
|
20
|
+
datumStageFactorInterface = self._callFunction("getDatumStageFactorInterface", [], keepReturnValueReference=True)
|
|
21
|
+
hydroStageFactorInterface = self._callFunction("getHydroStageFactorInterface", [], keepReturnValueReference=True)
|
|
22
|
+
thermalStageFactorInterface = self._callFunction("getThermalStageFactorInterface", [], keepReturnValueReference=True)
|
|
23
|
+
self.StageFactors = StageFactors(client, self._callFunction("getStageFactorManager", [], keepReturnValueReference = True))
|
|
24
|
+
self.InitialConditions = InitialConditions(client, ID, documentProxyID, strengthStiffnessStageFactorInterface)
|
|
25
|
+
self.Stiffness = Stiffness(client, ID, documentProxyID, strengthStiffnessStageFactorInterface)
|
|
26
|
+
self.Strength = Strength(client, ID, documentProxyID, strengthStiffnessStageFactorInterface)
|
|
27
|
+
self.Hydraulic = Hydraulic(client, ID, documentProxyID, hydroStageFactorInterface)
|
|
28
|
+
self.Thermal = Thermal(client, ID, documentProxyID, thermalStageFactorInterface)
|
|
29
|
+
self.Datum = Datum(client, ID, documentProxyID, datumStageFactorInterface)
|
|
30
|
+
def getMaterialName(self) -> str:
|
|
31
|
+
return self._getCStringProperty("MP_NAME")
|
|
32
|
+
def setMaterialName(self, value: str):
|
|
33
|
+
return self._setCStringProperty("MP_NAME", value)
|
|
34
|
+
def getMaterialColor(self) -> int:
|
|
35
|
+
return self._getUnsignedLongProperty("MP_COLOUR")
|
|
36
|
+
def setMaterialColor(self, value: int):
|
|
37
|
+
return self._setUnsignedLongProperty("MP_COLOUR", value)
|
|
38
|
+
def getHatch(self) -> bool:
|
|
39
|
+
return self._getBoolProperty("MP_USE_HATCH")
|
|
40
|
+
def setHatch(self, value: bool):
|
|
41
|
+
return self._setBoolProperty("MP_USE_HATCH", value)
|
|
42
|
+
def getHatchStyle(self) -> HatchStyle:
|
|
43
|
+
return HatchStyle(self._getEnumGdiplusHatchStyleProperty("MP_HATCH_STYLE"))
|
|
44
|
+
def setHatchStyle(self, value: HatchStyle):
|
|
45
|
+
return self._setEnumGdiplusHatchStyleProperty("MP_HATCH_STYLE", value)
|
|
46
|
+
def getHatchColour(self) -> int:
|
|
47
|
+
return self._getUnsignedLongProperty("MP_HATCH_COLOR")
|
|
48
|
+
def setHatchColour(self, value: int):
|
|
49
|
+
return self._setUnsignedLongProperty("MP_HATCH_COLOR", value)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
4
|
+
class StageFactors(ProxyObject):
|
|
5
|
+
"""This interface is specifically for managing the table of stage factors (create, enable/disable, etc...)
|
|
6
|
+
If you would like to modify specific stage factor values, you must get the stage factors through the stage factor interface present in the
|
|
7
|
+
property's module.
|
|
8
|
+
Ex:
|
|
9
|
+
stageFactor = strength.HoekBrown.stageFactorInterface.getDefinedStageFactors()[1]
|
|
10
|
+
stageFactor.setCompressiveStrengthFactor(2)
|
|
11
|
+
"""
|
|
12
|
+
def __init__(self, client : Client, ID):
|
|
13
|
+
super().__init__(client, ID)
|
|
14
|
+
def setStageStrengthStiffnessStageFactors(self, value: bool):
|
|
15
|
+
return self._callFunction("setApplyStrengthStiffnessStageFactors", [value])
|
|
16
|
+
def getStageStrengthStiffnessStageFactors(self) -> bool:
|
|
17
|
+
return self._callFunction("getApplyStrengthStiffnessStageFactors")
|
|
18
|
+
def setStageThermalStageFactors(self, value: bool):
|
|
19
|
+
return self._callFunction("setApplyThermalStageFactors", [value])
|
|
20
|
+
def getStageThermalStageFactors(self) -> bool:
|
|
21
|
+
return self._callFunction("getApplyThermalStageFactors")
|
|
22
|
+
def setStageHydraulicStageFactor(self, value: bool):
|
|
23
|
+
return self._callFunction("setApplyHydraulicStageFactor", [value])
|
|
24
|
+
def getStageHydraulicStageFactor(self) -> bool:
|
|
25
|
+
return self._callFunction("getApplyHydraulicStageFactor")
|
|
26
|
+
def setStageDatumStageFactor(self, value: bool):
|
|
27
|
+
return self._callFunction("setApplyDatumStageFactor", [value])
|
|
28
|
+
def getStageDatumStageFactor(self) -> bool:
|
|
29
|
+
return self._callFunction("getApplyDatumStageFactor")
|
|
30
|
+
def setResetStress(self, value: bool):
|
|
31
|
+
return self._callFunction("setResetStress", [value])
|
|
32
|
+
def getResetStress(self) -> bool:
|
|
33
|
+
return self._callFunction("getResetStress")
|
|
34
|
+
def getDefinedStageFactors(self) -> dict[int, tuple[ProxyObject, ProxyObject, ProxyObject]]:
|
|
35
|
+
"""returns a dictionary of the defined stage factors.
|
|
36
|
+
The key is the stage number and the value is a tuple of stage factors defined for that stage (strengthStiffnessAndDatum, hydraulic, thermal)
|
|
37
|
+
If a stage factor is not enabled, the values for that type will be None.
|
|
38
|
+
Datum and Strength/Stiffness factors are combined and must be managed together.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
dict[int, (ObjectReferenceId, ObjectReferenceId, ObjectReferenceId): dictionary of defined stage factors (strengthStiffnessAndDatum, hydraulic, thermal)
|
|
42
|
+
"""
|
|
43
|
+
definedFactorIds = self._callFunction("getDefinedStageFactors", keepReturnValueReference=True)
|
|
44
|
+
return self._getObjectDictionaryFromReferenceDictionary(definedFactorIds)
|
|
45
|
+
|
|
46
|
+
def getStageFactor(self, stage: int) -> tuple[ProxyObject, ProxyObject, ProxyObject]:
|
|
47
|
+
"""returns the stage factors for the given stage.
|
|
48
|
+
If a stage factor is not enabled, the values for that type will be None.
|
|
49
|
+
Datum and Strength/Stiffness factors are combined and must be managed together.
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
stage (int): stage number
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
(ObjectReferenceId, ObjectReferenceId, ObjectReferenceId): tuple of stage factors (strengthStiffnessAndDatum, hydraulic, thermal)
|
|
56
|
+
"""
|
|
57
|
+
stageFactorIds = self._callFunction("getStageFactor", [stage], keepReturnValueReference=True)
|
|
58
|
+
return self._getObjectTupleFromReferenceTuple(stageFactorIds)
|
|
59
|
+
|
|
60
|
+
def setDefinedStageFactors(self, stageFactors: dict[int, tuple[ProxyObject, ProxyObject, ProxyObject]]):
|
|
61
|
+
"""sets the stage factor table for the material.
|
|
62
|
+
The key is the stage number and the value is a tuple of stage factors defined for that stage (strengthStiffnessAndDatum, hydraulic, thermal)
|
|
63
|
+
If a type of stage factor is not enabled, the values for that type should be None.
|
|
64
|
+
If a tuple of stage factors is provided, a value for all enabled types must be provided.
|
|
65
|
+
Datum and Strength/Stiffness factors are combined and must be managed together.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
stageFactors (dict[int, (ObjectReferenceId, ObjectReferenceId, ObjectReferenceId)]): dictionary of defined stage factors (strengthStiffnessAndDatum, hydraulic, thermal)
|
|
69
|
+
"""
|
|
70
|
+
stageFactorReferences = self._getReferenceDictionaryFromObjectDictionary(stageFactors)
|
|
71
|
+
self._callFunction("setDefinedStageFactors", [stageFactorReferences], proxyArgumentIndices=[0])
|
|
72
|
+
|
|
73
|
+
def createStageFactor(self, stage: int):
|
|
74
|
+
"""creates a stage factor for the material. A factor must be provided for all enabled types.
|
|
75
|
+
"""
|
|
76
|
+
stageFactorReferences = self._callFunction("createStageFactor", [stage], keepReturnValueReference=True)
|
|
77
|
+
return self._getObjectTupleFromReferenceTuple(stageFactorReferences)
|
|
78
|
+
|
|
79
|
+
def _getProxyFromReferenceOrNone(self, ID : int) -> ProxyObject:
|
|
80
|
+
return ProxyObject(self._client, ID) if ID is not None else None
|
|
81
|
+
def _getReferenceFromProxyOrNone(self, proxy : ProxyObject) -> int:
|
|
82
|
+
return proxy._ID if proxy is not None else None
|
|
83
|
+
|
|
84
|
+
def _getObjectTupleFromReferenceTuple(self, stageFactors : tuple[int, int, int]) -> tuple[ProxyObject, ProxyObject, ProxyObject]:
|
|
85
|
+
matFactorProxy = self._getProxyFromReferenceOrNone(stageFactors[0])
|
|
86
|
+
hydroFactorProxy = self._getProxyFromReferenceOrNone(stageFactors[1])
|
|
87
|
+
thermalFactorProxy = self._getProxyFromReferenceOrNone(stageFactors[2])
|
|
88
|
+
return (matFactorProxy, hydroFactorProxy, thermalFactorProxy)
|
|
89
|
+
|
|
90
|
+
def _getReferenceTupleFromObjectTuple(self, stageFactors : tuple[ProxyObject, ProxyObject, ProxyObject]) -> tuple[int, int, int]:
|
|
91
|
+
matFactorId = self._getReferenceFromProxyOrNone(stageFactors[0])
|
|
92
|
+
hydroFactorId = self._getReferenceFromProxyOrNone(stageFactors[1])
|
|
93
|
+
thermalFactorId = self._getReferenceFromProxyOrNone(stageFactors[2])
|
|
94
|
+
return (matFactorId, hydroFactorId, thermalFactorId)
|
|
95
|
+
|
|
96
|
+
def _getObjectDictionaryFromReferenceDictionary(self, stageFactors : dict[int, tuple[int, int, int]]) -> dict[int, tuple[ProxyObject, ProxyObject, ProxyObject]]:
|
|
97
|
+
return {key : self._getObjectTupleFromReferenceTuple(value) for key, value in stageFactors.items()}
|
|
98
|
+
|
|
99
|
+
def _getReferenceDictionaryFromObjectDictionary(self, stageFactors : dict[int, tuple[ProxyObject, ProxyObject, ProxyObject]]) -> dict[int, tuple[int, int, int]]:
|
|
100
|
+
return {key : self._getReferenceTupleFromObjectTuple(value) for key, value in stageFactors.items()}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
3
|
+
class BaseDatum(PropertyProxy):
|
|
4
|
+
def setUsing(self, use : bool):
|
|
5
|
+
self._callFunction("setUsing", [use])
|
|
6
|
+
def getUsing(self) -> bool:
|
|
7
|
+
return bool(self._callFunction("getUsing"))
|
|
8
|
+
def setType(self, type : DatumType):
|
|
9
|
+
self._callFunction("setType", [type.value])
|
|
10
|
+
def getType(self) -> DatumType:
|
|
11
|
+
return DatumType(self._callFunction("getType"))
|
|
12
|
+
def setDatum(self, depth : float):
|
|
13
|
+
self._callFunction("setDatum", [depth])
|
|
14
|
+
def getDatum(self) -> float:
|
|
15
|
+
return self._callFunction("getDatum")
|
|
16
|
+
def setCenter(self, x: float , y : float):
|
|
17
|
+
self._callFunction("setCenter", [x,y])
|
|
18
|
+
def getCenter(self)-> (float, float):
|
|
19
|
+
"""
|
|
20
|
+
Returns the Datum's center as a tuple (x,y)
|
|
21
|
+
"""
|
|
22
|
+
return self._callFunction("getCenter")
|
|
23
|
+
|