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,94 @@
|
|
|
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 VerticalStressRatio(PropertyProxy):
|
|
7
|
+
def getMaterialType(self) -> MaterialType:
|
|
8
|
+
return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
|
|
9
|
+
def setMaterialType(self, value: MaterialType):
|
|
10
|
+
return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
|
|
11
|
+
def getUseMaximumShearStrength(self) -> bool:
|
|
12
|
+
return self._getBoolProperty("MP_USE_MAX_SHEAR_STRENGTH")
|
|
13
|
+
def setUseMaximumShearStrength(self, value: bool):
|
|
14
|
+
return self._setBoolProperty("MP_USE_MAX_SHEAR_STRENGTH", value)
|
|
15
|
+
def getUseTensileStrength(self) -> bool:
|
|
16
|
+
return self._getBoolProperty("MP_USE_TENSILE_STRENGTH")
|
|
17
|
+
def setUseTensileStrength(self, value: bool):
|
|
18
|
+
return self._setBoolProperty("MP_USE_TENSILE_STRENGTH", value)
|
|
19
|
+
def getVerticalStressRatio(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_VERTICAL_STRESS_RATIO")
|
|
21
|
+
def setVerticalStressRatio(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_VERTICAL_STRESS_RATIO", value)
|
|
23
|
+
def getMinimumShearStrength(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_MIN_SHEAR_STRENGTH")
|
|
25
|
+
def setMinimumShearStrength(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_MIN_SHEAR_STRENGTH", value)
|
|
27
|
+
def getMaximumShearStrength(self) -> float:
|
|
28
|
+
return self._getDoubleProperty("MP_MAX_SHEAR_STRENGTH")
|
|
29
|
+
def setMaximumShearStrength(self, value: float):
|
|
30
|
+
return self._setDoubleProperty("MP_MAX_SHEAR_STRENGTH", value)
|
|
31
|
+
def getPeakTensileStrength(self) -> float:
|
|
32
|
+
return self._getDoubleProperty("MP_PEAK_TENSILE_STRENGTH")
|
|
33
|
+
def setPeakTensileStrength(self, value: float):
|
|
34
|
+
return self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", value)
|
|
35
|
+
def getResidualVerticalStressRatio(self) -> float:
|
|
36
|
+
return self._getDoubleProperty("MP_VERTICAL_STRESS_RATIO_RES")
|
|
37
|
+
def setResidualVerticalStressRatio(self, value: float):
|
|
38
|
+
return self._setDoubleProperty("MP_VERTICAL_STRESS_RATIO_RES", value)
|
|
39
|
+
def getResidualMinimumShearStrength(self) -> float:
|
|
40
|
+
return self._getDoubleProperty("MP_MIN_SHEAR_STRENGTH_RES")
|
|
41
|
+
def setResidualMinimumShearStrength(self, value: float):
|
|
42
|
+
return self._setDoubleProperty("MP_MIN_SHEAR_STRENGTH_RES", value)
|
|
43
|
+
def getResidualMaximumShearStrength(self) -> float:
|
|
44
|
+
return self._getDoubleProperty("MP_MAX_SHEAR_STRENGTH_RES")
|
|
45
|
+
def setResidualMaximumShearStrength(self, value: float):
|
|
46
|
+
return self._setDoubleProperty("MP_MAX_SHEAR_STRENGTH_RES", value)
|
|
47
|
+
def getResidualTensileStrength(self) -> float:
|
|
48
|
+
return self._getDoubleProperty("MP_TENSILE_STRENGTH_RES")
|
|
49
|
+
def setResidualTensileStrength(self, value: float):
|
|
50
|
+
return self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", value)
|
|
51
|
+
def getApplySSRShearStrengthReduction(self) -> bool:
|
|
52
|
+
return self._getBoolProperty("MP_APPLY_SSR")
|
|
53
|
+
def setApplySSRShearStrengthReduction(self, value: bool):
|
|
54
|
+
return self._setBoolProperty("MP_APPLY_SSR", value)
|
|
55
|
+
def setProperties(self, MaterialType : MaterialType = None, UseMaximumShearStrength : bool = None, UseTensileStrength : bool = None, VerticalStressRatio : float = None, MinimumShearStrength : float = None, MaximumShearStrength : float = None, PeakTensileStrength : float = None, ResidualVerticalStressRatio : float = None, ResidualMinimumShearStrength : float = None, ResidualMaximumShearStrength : float = None, ResidualTensileStrength : float = None, ApplySSRShearStrengthReduction : bool = None):
|
|
56
|
+
if MaterialType is not None:
|
|
57
|
+
self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
|
|
58
|
+
if UseMaximumShearStrength is not None:
|
|
59
|
+
self._setBoolProperty("MP_USE_MAX_SHEAR_STRENGTH", UseMaximumShearStrength)
|
|
60
|
+
if UseTensileStrength is not None:
|
|
61
|
+
self._setBoolProperty("MP_USE_TENSILE_STRENGTH", UseTensileStrength)
|
|
62
|
+
if VerticalStressRatio is not None:
|
|
63
|
+
self._setDoubleProperty("MP_VERTICAL_STRESS_RATIO", VerticalStressRatio)
|
|
64
|
+
if MinimumShearStrength is not None:
|
|
65
|
+
self._setDoubleProperty("MP_MIN_SHEAR_STRENGTH", MinimumShearStrength)
|
|
66
|
+
if MaximumShearStrength is not None:
|
|
67
|
+
self._setDoubleProperty("MP_MAX_SHEAR_STRENGTH", MaximumShearStrength)
|
|
68
|
+
if PeakTensileStrength is not None:
|
|
69
|
+
self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", PeakTensileStrength)
|
|
70
|
+
if ResidualVerticalStressRatio is not None:
|
|
71
|
+
self._setDoubleProperty("MP_VERTICAL_STRESS_RATIO_RES", ResidualVerticalStressRatio)
|
|
72
|
+
if ResidualMinimumShearStrength is not None:
|
|
73
|
+
self._setDoubleProperty("MP_MIN_SHEAR_STRENGTH_RES", ResidualMinimumShearStrength)
|
|
74
|
+
if ResidualMaximumShearStrength is not None:
|
|
75
|
+
self._setDoubleProperty("MP_MAX_SHEAR_STRENGTH_RES", ResidualMaximumShearStrength)
|
|
76
|
+
if ResidualTensileStrength is not None:
|
|
77
|
+
self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", ResidualTensileStrength)
|
|
78
|
+
if ApplySSRShearStrengthReduction is not None:
|
|
79
|
+
self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
|
|
80
|
+
def getProperties(self):
|
|
81
|
+
return {
|
|
82
|
+
"MaterialType" : self.getMaterialType(),
|
|
83
|
+
"UseMaximumShearStrength" : self.getUseMaximumShearStrength(),
|
|
84
|
+
"UseTensileStrength" : self.getUseTensileStrength(),
|
|
85
|
+
"VerticalStressRatio" : self.getVerticalStressRatio(),
|
|
86
|
+
"MinimumShearStrength" : self.getMinimumShearStrength(),
|
|
87
|
+
"MaximumShearStrength" : self.getMaximumShearStrength(),
|
|
88
|
+
"PeakTensileStrength" : self.getPeakTensileStrength(),
|
|
89
|
+
"ResidualVerticalStressRatio" : self.getResidualVerticalStressRatio(),
|
|
90
|
+
"ResidualMinimumShearStrength" : self.getResidualMinimumShearStrength(),
|
|
91
|
+
"ResidualMaximumShearStrength" : self.getResidualMaximumShearStrength(),
|
|
92
|
+
"ResidualTensileStrength" : self.getResidualTensileStrength(),
|
|
93
|
+
"ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
|
|
94
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,74 @@
|
|
|
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 ThermalStageFactor(ProxyObject):
|
|
9
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
10
|
+
super().__init__(client, ID)
|
|
11
|
+
self.propertyID = propertyID
|
|
12
|
+
def getThermalGridFactor(self) -> str:
|
|
13
|
+
return self._callFunction("getThermalGridFactor", [self.propertyID], proxyArgumentIndices=[0])
|
|
14
|
+
class ThermalDefinedStageFactor(ThermalStageFactor):
|
|
15
|
+
def __init__(self, client : Client, ID, propertyID):
|
|
16
|
+
super().__init__(client, ID, propertyID)
|
|
17
|
+
def setThermalGridFactor(self, thermalGridName: str):
|
|
18
|
+
return self._callFunction("setThermalGridFactor", [thermalGridName, self.propertyID], proxyArgumentIndices=[1])
|
|
19
|
+
from rs2.modeler.properties.material.thermal.conductivity.Conductivity import Conductivity
|
|
20
|
+
from rs2.modeler.properties.material.thermal.heatcapacity.HeatCapacity import HeatCapacity
|
|
21
|
+
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.SoilUnfrozenWaterContent import SoilUnfrozenWaterContent
|
|
22
|
+
class Thermal(PropertyProxy):
|
|
23
|
+
"""
|
|
24
|
+
:ref:`Material Property Thermal Example`
|
|
25
|
+
"""
|
|
26
|
+
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
27
|
+
super().__init__(client, ID, documentProxyID)
|
|
28
|
+
self.stageFactorInterface = AbsoluteStageFactorGettersInterface[ThermalDefinedStageFactor, ThermalStageFactor](self._client, stageFactorInterfaceID, ID, ThermalDefinedStageFactor, ThermalStageFactor)
|
|
29
|
+
self.Conductivity = Conductivity(client, ID, documentProxyID)
|
|
30
|
+
self.HeatCapacity = HeatCapacity(client, ID, documentProxyID)
|
|
31
|
+
self.SoilUnfrozenWaterContent = SoilUnfrozenWaterContent(client, ID, documentProxyID)
|
|
32
|
+
def getStaticTemperatureMode(self) -> StaticWaterModes:
|
|
33
|
+
return StaticWaterModes(self._getEnumEStaticWaterModesProperty("MP_STATIC_TEMPERATURE_METHOD"))
|
|
34
|
+
def setStaticTemperatureMode(self, value: StaticWaterModes):
|
|
35
|
+
return self._setEnumEStaticWaterModesProperty("MP_STATIC_TEMPERATURE_METHOD", value)
|
|
36
|
+
def getStaticTemperature(self) -> float:
|
|
37
|
+
return self._getDoubleProperty("MP_STATIC_TEMPERATURE_CONST")
|
|
38
|
+
def setStaticTemperature(self, value: float):
|
|
39
|
+
return self._setDoubleProperty("MP_STATIC_TEMPERATURE_CONST", value)
|
|
40
|
+
def getWaterContent(self) -> ThermalWaterContentMethodType:
|
|
41
|
+
return ThermalWaterContentMethodType(self._getEnumEThermalWaterContentMethodTypeProperty("MP_THERMAL_WATER_CONTENT_METHOD"))
|
|
42
|
+
def setWaterContent(self, value: ThermalWaterContentMethodType):
|
|
43
|
+
return self._setEnumEThermalWaterContentMethodTypeProperty("MP_THERMAL_WATER_CONTENT_METHOD", value)
|
|
44
|
+
def getWaterContentValue(self) -> float:
|
|
45
|
+
return self._getDoubleProperty("MP_THERMAL_WATER_CONTENT_VALUE")
|
|
46
|
+
def setWaterContentValue(self, value: float):
|
|
47
|
+
return self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_VALUE", value)
|
|
48
|
+
def getThermalExpansion(self) -> bool:
|
|
49
|
+
return self._getBoolProperty("MP_THERMAL_EXPANSION_IS_ON")
|
|
50
|
+
def setThermalExpansion(self, value: bool):
|
|
51
|
+
return self._setBoolProperty("MP_THERMAL_EXPANSION_IS_ON", value)
|
|
52
|
+
def getExpansionCoefficient(self) -> float:
|
|
53
|
+
return self._getDoubleProperty("MP_THERMAL_EXPANSION_ALPHA")
|
|
54
|
+
def setExpansionCoefficient(self, value: float):
|
|
55
|
+
return self._setDoubleProperty("MP_THERMAL_EXPANSION_ALPHA", value)
|
|
56
|
+
def getDispersivity(self) -> bool:
|
|
57
|
+
return self._getBoolProperty("MP_THERMAL_DISPERSIVITY_IS_ON")
|
|
58
|
+
def setDispersivity(self, value: bool):
|
|
59
|
+
return self._setBoolProperty("MP_THERMAL_DISPERSIVITY_IS_ON", value)
|
|
60
|
+
def getLongitudinalDispersivity(self) -> float:
|
|
61
|
+
return self._getDoubleProperty("MP_THERMAL_DISPERSIVITY_LONGITUDINAL")
|
|
62
|
+
def setLongitudinalDispersivity(self, value: float):
|
|
63
|
+
return self._setDoubleProperty("MP_THERMAL_DISPERSIVITY_LONGITUDINAL", value)
|
|
64
|
+
def getTransverseDispersivity(self) -> float:
|
|
65
|
+
return self._getDoubleProperty("MP_THERMAL_DISPERSIVITY_TRANSVERSE")
|
|
66
|
+
def setTransverseDispersivity(self, value: float):
|
|
67
|
+
return self._setDoubleProperty("MP_THERMAL_DISPERSIVITY_TRANSVERSE", value)
|
|
68
|
+
def setStaticTemperatureGridToUseByName(self, gridName: str):
|
|
69
|
+
"""
|
|
70
|
+
gridName is the name of the grid to be used. "None" and "Default Grid" are available by default.
|
|
71
|
+
"""
|
|
72
|
+
return self._callFunction("setStaticTemperatureGridToUseByName", [gridName])
|
|
73
|
+
def getStaticTemperatureGridToUse(self) -> str:
|
|
74
|
+
return self._callFunction("getStaticTemperatureGridToUse", [])
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
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.thermal.conductivity.ConstantConductivity import ConstantConductivity
|
|
7
|
+
from rs2.modeler.properties.material.thermal.conductivity.Johansen import Johansen
|
|
8
|
+
from rs2.modeler.properties.material.thermal.conductivity.JohansenLu import JohansenLu
|
|
9
|
+
from rs2.modeler.properties.material.thermal.conductivity.Derives import Derives
|
|
10
|
+
from rs2.modeler.properties.material.thermal.conductivity.CoteAndKonrad import CoteAndKonrad
|
|
11
|
+
from rs2.modeler.properties.material.thermal.conductivity.Tabular import Tabular
|
|
12
|
+
class Conductivity(PropertyProxy):
|
|
13
|
+
"""
|
|
14
|
+
:ref:`Material Property Thermal Example`
|
|
15
|
+
"""
|
|
16
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
17
|
+
self.ConstantConductivity = ConstantConductivity(client, ID, documentProxyID)
|
|
18
|
+
self.Johansen = Johansen(client, ID, documentProxyID)
|
|
19
|
+
self.JohansenLu = JohansenLu(client, ID, documentProxyID)
|
|
20
|
+
self.Derives = Derives(client, ID, documentProxyID)
|
|
21
|
+
self.CoteAndKonrad = CoteAndKonrad(client, ID, documentProxyID)
|
|
22
|
+
self.Tabular = Tabular(client, ID, documentProxyID)
|
|
23
|
+
super().__init__(client, ID, documentProxyID)
|
|
24
|
+
def getMethod(self) -> ThermalType:
|
|
25
|
+
return ThermalType(self._getEnumEThermalTypeProperty("MP_THERMAL_TYPE"))
|
|
26
|
+
def setMethod(self, value: ThermalType):
|
|
27
|
+
return self._setEnumEThermalTypeProperty("MP_THERMAL_TYPE", value)
|
|
@@ -0,0 +1,31 @@
|
|
|
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 ConstantConductivity(PropertyProxy):
|
|
7
|
+
def getUnfrozenConductivity(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_THERMAL_UNFROZEN_CONDUCTIVITY")
|
|
9
|
+
def setUnfrozenConductivity(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_THERMAL_UNFROZEN_CONDUCTIVITY", value)
|
|
11
|
+
def getFrozenConductivity(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_FROZEN_CONDUCTIVITY")
|
|
13
|
+
def setFrozenConductivity(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_FROZEN_CONDUCTIVITY", value)
|
|
15
|
+
def getFrozenTemperature(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_FROZEN_TEMPERATURE")
|
|
17
|
+
def setFrozenTemperature(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_FROZEN_TEMPERATURE", value)
|
|
19
|
+
def setProperties(self, UnfrozenConductivity : float = None, FrozenConductivity : float = None, FrozenTemperature : float = None):
|
|
20
|
+
if UnfrozenConductivity is not None:
|
|
21
|
+
self._setDoubleProperty("MP_THERMAL_UNFROZEN_CONDUCTIVITY", UnfrozenConductivity)
|
|
22
|
+
if FrozenConductivity is not None:
|
|
23
|
+
self._setDoubleProperty("MP_THERMAL_FROZEN_CONDUCTIVITY", FrozenConductivity)
|
|
24
|
+
if FrozenTemperature is not None:
|
|
25
|
+
self._setDoubleProperty("MP_THERMAL_FROZEN_TEMPERATURE", FrozenTemperature)
|
|
26
|
+
def getProperties(self):
|
|
27
|
+
return {
|
|
28
|
+
"UnfrozenConductivity" : self.getUnfrozenConductivity(),
|
|
29
|
+
"FrozenConductivity" : self.getFrozenConductivity(),
|
|
30
|
+
"FrozenTemperature" : self.getFrozenTemperature(),
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class CoteAndKonrad(PropertyProxy):
|
|
7
|
+
def getParticleConductivity(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY")
|
|
9
|
+
def setParticleConductivity(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY", value)
|
|
11
|
+
def getUnfrozenKappa(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_UNFROZEN_KAPPA")
|
|
13
|
+
def setUnfrozenKappa(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_UNFROZEN_KAPPA", value)
|
|
15
|
+
def getFrozenKappa(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_FROZEN_KAPPA")
|
|
17
|
+
def setFrozenKappa(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_FROZEN_KAPPA", value)
|
|
19
|
+
def getChi(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_CHI")
|
|
21
|
+
def setChi(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_CHI", value)
|
|
23
|
+
def getEta(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_ETA")
|
|
25
|
+
def setEta(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_ETA", value)
|
|
27
|
+
def setProperties(self, ParticleConductivity : float = None, UnfrozenKappa : float = None, FrozenKappa : float = None, Chi : float = None, Eta : float = None):
|
|
28
|
+
if ParticleConductivity is not None:
|
|
29
|
+
self._setDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY", ParticleConductivity)
|
|
30
|
+
if UnfrozenKappa is not None:
|
|
31
|
+
self._setDoubleProperty("MP_THERMAL_UNFROZEN_KAPPA", UnfrozenKappa)
|
|
32
|
+
if FrozenKappa is not None:
|
|
33
|
+
self._setDoubleProperty("MP_THERMAL_FROZEN_KAPPA", FrozenKappa)
|
|
34
|
+
if Chi is not None:
|
|
35
|
+
self._setDoubleProperty("MP_CHI", Chi)
|
|
36
|
+
if Eta is not None:
|
|
37
|
+
self._setDoubleProperty("MP_ETA", Eta)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"ParticleConductivity" : self.getParticleConductivity(),
|
|
41
|
+
"UnfrozenKappa" : self.getUnfrozenKappa(),
|
|
42
|
+
"FrozenKappa" : self.getFrozenKappa(),
|
|
43
|
+
"Chi" : self.getChi(),
|
|
44
|
+
"Eta" : self.getEta(),
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 Derives(PropertyProxy):
|
|
7
|
+
def getParticleConductivity(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY")
|
|
9
|
+
def setParticleConductivity(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY", value)
|
|
11
|
+
def setProperties(self, ParticleConductivity : float = None):
|
|
12
|
+
if ParticleConductivity is not None:
|
|
13
|
+
self._setDoubleProperty("MP_THERMAL_PARTICLE_CONDUCTIVITY", ParticleConductivity)
|
|
14
|
+
def getProperties(self):
|
|
15
|
+
return {
|
|
16
|
+
"ParticleConductivity" : self.getParticleConductivity(),
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from rs2.modeler.properties.propertyProxy import PropertyProxy
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from enum import Enum, auto
|
|
4
|
+
from typing import List
|
|
5
|
+
from rs2.modeler.properties.PropertyEnums import *
|
|
6
|
+
class Johansen(PropertyProxy):
|
|
7
|
+
def getSoilType(self) -> ThermalSoilType:
|
|
8
|
+
return ThermalSoilType(self._getEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN"))
|
|
9
|
+
def setSoilType(self, value: ThermalSoilType):
|
|
10
|
+
return self._setEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN", value)
|
|
11
|
+
def getQuartzContent(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_QUARTZ_CONTENT")
|
|
13
|
+
def setQuartzContent(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_QUARTZ_CONTENT", value)
|
|
15
|
+
def getDryConductivity(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_DRY_CONDUCTIVITY")
|
|
17
|
+
def setDryConductivity(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_DRY_CONDUCTIVITY", value)
|
|
19
|
+
def getSaturatedUnfrozenConductivity(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_THERMAL_SATURATED_CONDUCTIVITY")
|
|
21
|
+
def setSaturatedUnfrozenConductivity(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_THERMAL_SATURATED_CONDUCTIVITY", value)
|
|
23
|
+
def getSaturatedFrozenConductivity(self) -> float:
|
|
24
|
+
return self._getDoubleProperty("MP_THERMAL_SATURATED_FROZEN_CONDUCTIVITY")
|
|
25
|
+
def setSaturatedFrozenConductivity(self, value: float):
|
|
26
|
+
return self._setDoubleProperty("MP_THERMAL_SATURATED_FROZEN_CONDUCTIVITY", value)
|
|
27
|
+
def setProperties(self, SoilType : ThermalSoilType = None, QuartzContent : float = None, DryConductivity : float = None, SaturatedUnfrozenConductivity : float = None, SaturatedFrozenConductivity : float = None):
|
|
28
|
+
if SoilType is not None:
|
|
29
|
+
self._setEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN", SoilType)
|
|
30
|
+
if QuartzContent is not None:
|
|
31
|
+
self._setDoubleProperty("MP_THERMAL_QUARTZ_CONTENT", QuartzContent)
|
|
32
|
+
if DryConductivity is not None:
|
|
33
|
+
self._setDoubleProperty("MP_THERMAL_DRY_CONDUCTIVITY", DryConductivity)
|
|
34
|
+
if SaturatedUnfrozenConductivity is not None:
|
|
35
|
+
self._setDoubleProperty("MP_THERMAL_SATURATED_CONDUCTIVITY", SaturatedUnfrozenConductivity)
|
|
36
|
+
if SaturatedFrozenConductivity is not None:
|
|
37
|
+
self._setDoubleProperty("MP_THERMAL_SATURATED_FROZEN_CONDUCTIVITY", SaturatedFrozenConductivity)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"SoilType" : self.getSoilType(),
|
|
41
|
+
"QuartzContent" : self.getQuartzContent(),
|
|
42
|
+
"DryConductivity" : self.getDryConductivity(),
|
|
43
|
+
"SaturatedUnfrozenConductivity" : self.getSaturatedUnfrozenConductivity(),
|
|
44
|
+
"SaturatedFrozenConductivity" : self.getSaturatedFrozenConductivity(),
|
|
45
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 JohansenLu(PropertyProxy):
|
|
7
|
+
def getSoilType(self) -> ThermalSoilType:
|
|
8
|
+
return ThermalSoilType(self._getEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN_LU"))
|
|
9
|
+
def setSoilType(self, value: ThermalSoilType):
|
|
10
|
+
return self._setEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN_LU", value)
|
|
11
|
+
def getQuartzContent(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_QUARTZ_CONTENT")
|
|
13
|
+
def setQuartzContent(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_QUARTZ_CONTENT", value)
|
|
15
|
+
def setProperties(self, SoilType : ThermalSoilType = None, QuartzContent : float = None):
|
|
16
|
+
if SoilType is not None:
|
|
17
|
+
self._setEnumEThermalSoilTypeProperty("MP_THERMAL_SOIL_TYPE_JOHANSEN_LU", SoilType)
|
|
18
|
+
if QuartzContent is not None:
|
|
19
|
+
self._setDoubleProperty("MP_THERMAL_QUARTZ_CONTENT", QuartzContent)
|
|
20
|
+
def getProperties(self):
|
|
21
|
+
return {
|
|
22
|
+
"SoilType" : self.getSoilType(),
|
|
23
|
+
"QuartzContent" : self.getQuartzContent(),
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 Tabular(PropertyProxy):
|
|
7
|
+
def getDependence(self) -> ThermalVolumetricDepencenceType:
|
|
8
|
+
return ThermalVolumetricDepencenceType(self._getEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_TABULAR_DEPENDENCE"))
|
|
9
|
+
def setDependence(self, value: ThermalVolumetricDepencenceType):
|
|
10
|
+
return self._setEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_TABULAR_DEPENDENCE", value)
|
|
11
|
+
def setThermalConductivityTemperatureFunction(self, temperature: list[float], conductivity: list[float]):
|
|
12
|
+
return self._callFunction("setThermalConductivityTemperatureFunction", [temperature, conductivity])
|
|
13
|
+
def getThermalConductivityTemperatureFunction(self) -> tuple[list[float],list[float]]:
|
|
14
|
+
"""
|
|
15
|
+
returns tuple (temperatureList, conductivityList).
|
|
16
|
+
"""
|
|
17
|
+
return self._callFunction("getThermalConductivityTemperatureFunction", [])
|
|
18
|
+
def setThermalConductivityWaterContentFunction(self, waterContent: list[float], conductivity: list[float]):
|
|
19
|
+
return self._callFunction("setThermalConductivityWaterContentFunction", [waterContent, conductivity])
|
|
20
|
+
def getThermalConductivityWaterContentFunction(self) -> tuple[list[float],list[float]]:
|
|
21
|
+
"""
|
|
22
|
+
returns tuple (waterContentList, conductivityList).
|
|
23
|
+
"""
|
|
24
|
+
return self._callFunction("getThermalConductivityWaterContentFunction", [])
|
|
25
|
+
def setProperties(self, Dependence : ThermalVolumetricDepencenceType = None):
|
|
26
|
+
if Dependence is not None:
|
|
27
|
+
self._setEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_TABULAR_DEPENDENCE", Dependence)
|
|
28
|
+
def getProperties(self):
|
|
29
|
+
return {
|
|
30
|
+
"Dependence" : self.getDependence(),
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ConstantHeatCapacity(PropertyProxy):
|
|
7
|
+
def getIncludeLatentHeat(self) -> bool:
|
|
8
|
+
return self._getBoolProperty("MP_THERMAL_LATENT_HEAT")
|
|
9
|
+
def setIncludeLatentHeat(self, value: bool):
|
|
10
|
+
return self._setBoolProperty("MP_THERMAL_LATENT_HEAT", value)
|
|
11
|
+
def getUnfrozenVolumetricHeatCapacity(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_UNFROZEN")
|
|
13
|
+
def setUnfrozenVolumetricHeatCapacity(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_UNFROZEN", value)
|
|
15
|
+
def getFrozenVolumetricHeatCapacity(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_FROZEN")
|
|
17
|
+
def setFrozenVolumetricHeatCapacity(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_FROZEN", value)
|
|
19
|
+
def getFrozenTemperature(self) -> float:
|
|
20
|
+
return self._getDoubleProperty("MP_THERMAL_VOLUMETRIC_FROZEN_TEMPERATURE_UNITS")
|
|
21
|
+
def setFrozenTemperature(self, value: float):
|
|
22
|
+
return self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_FROZEN_TEMPERATURE_UNITS", value)
|
|
23
|
+
def setProperties(self, IncludeLatentHeat : bool = None, UnfrozenVolumetricHeatCapacity : float = None, FrozenVolumetricHeatCapacity : float = None, FrozenTemperature : float = None):
|
|
24
|
+
if IncludeLatentHeat is not None:
|
|
25
|
+
self._setBoolProperty("MP_THERMAL_LATENT_HEAT", IncludeLatentHeat)
|
|
26
|
+
if UnfrozenVolumetricHeatCapacity is not None:
|
|
27
|
+
self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_UNFROZEN", UnfrozenVolumetricHeatCapacity)
|
|
28
|
+
if FrozenVolumetricHeatCapacity is not None:
|
|
29
|
+
self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_HEAT_CAPACITY_FROZEN", FrozenVolumetricHeatCapacity)
|
|
30
|
+
if FrozenTemperature is not None:
|
|
31
|
+
self._setDoubleProperty("MP_THERMAL_VOLUMETRIC_FROZEN_TEMPERATURE_UNITS", FrozenTemperature)
|
|
32
|
+
def getProperties(self):
|
|
33
|
+
return {
|
|
34
|
+
"IncludeLatentHeat" : self.getIncludeLatentHeat(),
|
|
35
|
+
"UnfrozenVolumetricHeatCapacity" : self.getUnfrozenVolumetricHeatCapacity(),
|
|
36
|
+
"FrozenVolumetricHeatCapacity" : self.getFrozenVolumetricHeatCapacity(),
|
|
37
|
+
"FrozenTemperature" : self.getFrozenTemperature(),
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 CustomHeatCapacity(PropertyProxy):
|
|
7
|
+
def getIncludeLatentHeat(self) -> bool:
|
|
8
|
+
return self._getBoolProperty("MP_THERMAL_LATENT_HEAT")
|
|
9
|
+
def setIncludeLatentHeat(self, value: bool):
|
|
10
|
+
return self._setBoolProperty("MP_THERMAL_LATENT_HEAT", value)
|
|
11
|
+
def getDependence(self) -> ThermalVolumetricDepencenceType:
|
|
12
|
+
return ThermalVolumetricDepencenceType(self._getEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_DEPENDENCE"))
|
|
13
|
+
def setDependence(self, value: ThermalVolumetricDepencenceType):
|
|
14
|
+
return self._setEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_DEPENDENCE", value)
|
|
15
|
+
def setVolumetricHeatCapacityVsTemperatureTable(self, volumetricHeatCapacity: list[float], temperature: list[float]):
|
|
16
|
+
return self._callFunction("setVolumetricHeatCapacityVsTemperatureTable", [volumetricHeatCapacity, temperature])
|
|
17
|
+
def getVolumetricHeatCapacityVsTemperatureTable(self) -> tuple[list[float],list[float]]:
|
|
18
|
+
"""
|
|
19
|
+
Returns a tuple of lists ([volumetricHeatCapacity],[temperature])
|
|
20
|
+
"""
|
|
21
|
+
return self._callFunction("getVolumetricHeatCapacityVsTemperatureTable", [])
|
|
22
|
+
def setVolumetricHeatCapacityVsWaterContentTable(self, volumetricHeatCapacity: list[float], waterContent: list[float]):
|
|
23
|
+
return self._callFunction("setVolumetricHeatCapacityVsWaterContentTable", [volumetricHeatCapacity, waterContent])
|
|
24
|
+
def getVolumetricHeatCapacityVsWaterContentTable(self) -> tuple[list[float],list[float]]:
|
|
25
|
+
"""
|
|
26
|
+
Returns a tuple of lists ([volumetricHeatCapacity],[waterContent])
|
|
27
|
+
"""
|
|
28
|
+
return self._callFunction("getVolumetricHeatCapacityVsWaterContentTable", [])
|
|
29
|
+
def setProperties(self, IncludeLatentHeat : bool = None, Dependence : ThermalVolumetricDepencenceType = None):
|
|
30
|
+
if IncludeLatentHeat is not None:
|
|
31
|
+
self._setBoolProperty("MP_THERMAL_LATENT_HEAT", IncludeLatentHeat)
|
|
32
|
+
if Dependence is not None:
|
|
33
|
+
self._setEnumEThermalVolumetricDepencenceTypeProperty("MP_THERMAL_DEPENDENCE", Dependence)
|
|
34
|
+
def getProperties(self):
|
|
35
|
+
return {
|
|
36
|
+
"IncludeLatentHeat" : self.getIncludeLatentHeat(),
|
|
37
|
+
"Dependence" : self.getDependence(),
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.thermal.heatcapacity.ConstantHeatCapacity import ConstantHeatCapacity
|
|
7
|
+
from rs2.modeler.properties.material.thermal.heatcapacity.JameNewman import JameNewman
|
|
8
|
+
from rs2.modeler.properties.material.thermal.heatcapacity.CustomHeatCapacity import CustomHeatCapacity
|
|
9
|
+
class HeatCapacity(PropertyProxy):
|
|
10
|
+
"""
|
|
11
|
+
:ref:`Material Property Thermal Example`
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
14
|
+
self.ConstantHeatCapacity = ConstantHeatCapacity(client, ID, documentProxyID)
|
|
15
|
+
self.JameNewman = JameNewman(client, ID, documentProxyID)
|
|
16
|
+
self.CustomHeatCapacity = CustomHeatCapacity(client, ID, documentProxyID)
|
|
17
|
+
super().__init__(client, ID, documentProxyID)
|
|
18
|
+
def getType(self) -> ThermalHeatCapacityType:
|
|
19
|
+
return ThermalHeatCapacityType(self._getEnumEThermalHeatCapacityTypeProperty("MP_THERMAL_HEAT_CAPACITY_TYPE"))
|
|
20
|
+
def setType(self, value: ThermalHeatCapacityType):
|
|
21
|
+
return self._setEnumEThermalHeatCapacityTypeProperty("MP_THERMAL_HEAT_CAPACITY_TYPE", value)
|
|
@@ -0,0 +1,24 @@
|
|
|
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 JameNewman(PropertyProxy):
|
|
7
|
+
def getIncludeLatentHeat(self) -> bool:
|
|
8
|
+
return self._getBoolProperty("MP_THERMAL_LATENT_HEAT")
|
|
9
|
+
def setIncludeLatentHeat(self, value: bool):
|
|
10
|
+
return self._setBoolProperty("MP_THERMAL_LATENT_HEAT", value)
|
|
11
|
+
def getSoilSpecificHeatCapacity(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_SOIL_HEATING_CAPACITY")
|
|
13
|
+
def setSoilSpecificHeatCapacity(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_SOIL_HEATING_CAPACITY", value)
|
|
15
|
+
def setProperties(self, IncludeLatentHeat : bool = None, SoilSpecificHeatCapacity : float = None):
|
|
16
|
+
if IncludeLatentHeat is not None:
|
|
17
|
+
self._setBoolProperty("MP_THERMAL_LATENT_HEAT", IncludeLatentHeat)
|
|
18
|
+
if SoilSpecificHeatCapacity is not None:
|
|
19
|
+
self._setDoubleProperty("MP_THERMAL_SOIL_HEATING_CAPACITY", SoilSpecificHeatCapacity)
|
|
20
|
+
def getProperties(self):
|
|
21
|
+
return {
|
|
22
|
+
"IncludeLatentHeat" : self.getIncludeLatentHeat(),
|
|
23
|
+
"SoilSpecificHeatCapacity" : self.getSoilSpecificHeatCapacity(),
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
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 CustomWaterContent(PropertyProxy):
|
|
7
|
+
def setTemperatureVsUnfrozenWaterContentValues(self, temperature: list[float], unfrozenWaterContent: list[float]):
|
|
8
|
+
return self._callFunction("setTemperatureVsUnfrozenWaterContentValues", [temperature, unfrozenWaterContent])
|
|
9
|
+
def getTemperatureVsUnfrozenWaterContentValues(self) -> tuple[list[float],list[float]]:
|
|
10
|
+
"""
|
|
11
|
+
Returns a tuple of lists [[temperature],[unfrozenWaterContent]]
|
|
12
|
+
"""
|
|
13
|
+
return self._callFunction("getTemperatureVsUnfrozenWaterContentValues", [])
|
|
@@ -0,0 +1,31 @@
|
|
|
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 Konrad(PropertyProxy):
|
|
7
|
+
def getResidualWaterContent(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_THERMAL_WATER_CONTENT_RESIDUAL_WATER_CONTENT")
|
|
9
|
+
def setResidualWaterContent(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_RESIDUAL_WATER_CONTENT", value)
|
|
11
|
+
def getFrozenTemperature(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE")
|
|
13
|
+
def setFrozenTemperature(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE", value)
|
|
15
|
+
def getSolidusTemperature(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_WATER_CONTENT_SOLIDUS_TEMPERATURE")
|
|
17
|
+
def setSolidusTemperature(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_SOLIDUS_TEMPERATURE", value)
|
|
19
|
+
def setProperties(self, ResidualWaterContent : float = None, FrozenTemperature : float = None, SolidusTemperature : float = None):
|
|
20
|
+
if ResidualWaterContent is not None:
|
|
21
|
+
self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_RESIDUAL_WATER_CONTENT", ResidualWaterContent)
|
|
22
|
+
if FrozenTemperature is not None:
|
|
23
|
+
self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE", FrozenTemperature)
|
|
24
|
+
if SolidusTemperature is not None:
|
|
25
|
+
self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_SOLIDUS_TEMPERATURE", SolidusTemperature)
|
|
26
|
+
def getProperties(self):
|
|
27
|
+
return {
|
|
28
|
+
"ResidualWaterContent" : self.getResidualWaterContent(),
|
|
29
|
+
"FrozenTemperature" : self.getFrozenTemperature(),
|
|
30
|
+
"SolidusTemperature" : self.getSolidusTemperature(),
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.thermal.soilunfrozenwatercontent.Konrad import Konrad
|
|
7
|
+
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.TiceAnderson import TiceAnderson
|
|
8
|
+
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.CustomWaterContent import CustomWaterContent
|
|
9
|
+
from rs2.modeler.properties.material.thermal.soilunfrozenwatercontent.hydraulic.HydraulicModel import HydraulicModel
|
|
10
|
+
class SoilUnfrozenWaterContent(PropertyProxy):
|
|
11
|
+
"""
|
|
12
|
+
:ref:`Material Property Thermal Example`
|
|
13
|
+
"""
|
|
14
|
+
def __init__(self, client : Client, ID, documentProxyID):
|
|
15
|
+
self.Konrad = Konrad(client, ID, documentProxyID)
|
|
16
|
+
self.TiceAnderson = TiceAnderson(client, ID, documentProxyID)
|
|
17
|
+
self.CustomWaterContent = CustomWaterContent(client, ID, documentProxyID)
|
|
18
|
+
self.HydraulicModel = HydraulicModel(client, ID, documentProxyID)
|
|
19
|
+
super().__init__(client, ID, documentProxyID)
|
|
20
|
+
def getType(self) -> ThermalWaterContentType:
|
|
21
|
+
return ThermalWaterContentType(self._getEnumEThermalWaterContentTypeProperty("MP_THERMAL_WATER_CONTENT_TYPE"))
|
|
22
|
+
def setType(self, value: ThermalWaterContentType):
|
|
23
|
+
return self._setEnumEThermalWaterContentTypeProperty("MP_THERMAL_WATER_CONTENT_TYPE", value)
|
|
@@ -0,0 +1,31 @@
|
|
|
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 TiceAnderson(PropertyProxy):
|
|
7
|
+
def getInputAlpha(self) -> float:
|
|
8
|
+
return self._getDoubleProperty("MP_THERMAL_INPUT_A")
|
|
9
|
+
def setInputAlpha(self, value: float):
|
|
10
|
+
return self._setDoubleProperty("MP_THERMAL_INPUT_A", value)
|
|
11
|
+
def getInputBeta(self) -> float:
|
|
12
|
+
return self._getDoubleProperty("MP_THERMAL_INPUT_B")
|
|
13
|
+
def setInputBeta(self, value: float):
|
|
14
|
+
return self._setDoubleProperty("MP_THERMAL_INPUT_B", value)
|
|
15
|
+
def getFrozenTemperature(self) -> float:
|
|
16
|
+
return self._getDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE")
|
|
17
|
+
def setFrozenTemperature(self, value: float):
|
|
18
|
+
return self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE", value)
|
|
19
|
+
def setProperties(self, InputAlpha : float = None, InputBeta : float = None, FrozenTemperature : float = None):
|
|
20
|
+
if InputAlpha is not None:
|
|
21
|
+
self._setDoubleProperty("MP_THERMAL_INPUT_A", InputAlpha)
|
|
22
|
+
if InputBeta is not None:
|
|
23
|
+
self._setDoubleProperty("MP_THERMAL_INPUT_B", InputBeta)
|
|
24
|
+
if FrozenTemperature is not None:
|
|
25
|
+
self._setDoubleProperty("MP_THERMAL_WATER_CONTENT_FROZEN_TEMPERATURE", FrozenTemperature)
|
|
26
|
+
def getProperties(self):
|
|
27
|
+
return {
|
|
28
|
+
"InputAlpha" : self.getInputAlpha(),
|
|
29
|
+
"InputBeta" : self.getInputBeta(),
|
|
30
|
+
"FrozenTemperature" : self.getFrozenTemperature(),
|
|
31
|
+
}
|
|
File without changes
|