RS3Scripting 4.42.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.
- rs3/ApplicationManager.py +77 -0
- rs3/ColorPicker.py +123 -0
- rs3/CommonEnums.py +16 -0
- rs3/Compute.py +105 -0
- rs3/ExternalVolume.py +48 -0
- rs3/Geometry.py +74 -0
- rs3/Model.py +795 -0
- rs3/ModelEnums.py +9 -0
- rs3/RS3Modeler.py +109 -0
- rs3/Restraints.py +91 -0
- rs3/Selection.py +123 -0
- rs3/__init__.py +18 -0
- rs3/_client.py +57 -0
- rs3/_proxyObject.py +5 -0
- rs3/generatedFiles/BFPCommonMessage_pb2.py +38 -0
- rs3/generatedFiles/BFPCommonMessage_pb2.pyi +47 -0
- rs3/generatedFiles/BFPCommonMessage_pb2_grpc.py +24 -0
- rs3/generatedFiles/BeamDataService_pb2.py +37 -0
- rs3/generatedFiles/BeamDataService_pb2.pyi +5 -0
- rs3/generatedFiles/BeamDataService_pb2_grpc.py +226 -0
- rs3/generatedFiles/BeamService_pb2.py +37 -0
- rs3/generatedFiles/BeamService_pb2.pyi +5 -0
- rs3/generatedFiles/BeamService_pb2_grpc.py +140 -0
- rs3/generatedFiles/BeamStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/BeamStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/BeamStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/BeamsResultsQueryService_pb2.py +50 -0
- rs3/generatedFiles/BeamsResultsQueryService_pb2.pyi +48 -0
- rs3/generatedFiles/BeamsResultsQueryService_pb2_grpc.py +141 -0
- rs3/generatedFiles/BoltDataService_pb2.py +37 -0
- rs3/generatedFiles/BoltDataService_pb2.pyi +5 -0
- rs3/generatedFiles/BoltDataService_pb2_grpc.py +226 -0
- rs3/generatedFiles/BoltService_pb2.py +37 -0
- rs3/generatedFiles/BoltService_pb2.pyi +5 -0
- rs3/generatedFiles/BoltService_pb2_grpc.py +140 -0
- rs3/generatedFiles/BoltsResultsQueryService_pb2.py +51 -0
- rs3/generatedFiles/BoltsResultsQueryService_pb2.pyi +75 -0
- rs3/generatedFiles/BoltsResultsQueryService_pb2_grpc.py +141 -0
- rs3/generatedFiles/ClientService_pb2.py +40 -0
- rs3/generatedFiles/ClientService_pb2.pyi +15 -0
- rs3/generatedFiles/ClientService_pb2_grpc.py +97 -0
- rs3/generatedFiles/CommonGeometryMessages_pb2.py +52 -0
- rs3/generatedFiles/CommonGeometryMessages_pb2.pyi +92 -0
- rs3/generatedFiles/CommonGeometryMessages_pb2_grpc.py +24 -0
- rs3/generatedFiles/CommonMessages_pb2.py +66 -0
- rs3/generatedFiles/CommonMessages_pb2.pyi +145 -0
- rs3/generatedFiles/CommonMessages_pb2_grpc.py +24 -0
- rs3/generatedFiles/CompositeLinerDataService_pb2.py +47 -0
- rs3/generatedFiles/CompositeLinerDataService_pb2.pyi +51 -0
- rs3/generatedFiles/CompositeLinerDataService_pb2_grpc.py +227 -0
- rs3/generatedFiles/CompositeLinerResultsQueryService_pb2.py +63 -0
- rs3/generatedFiles/CompositeLinerResultsQueryService_pb2.pyi +139 -0
- rs3/generatedFiles/CompositeLinerResultsQueryService_pb2_grpc.py +314 -0
- rs3/generatedFiles/CompositeLinerService_pb2.py +37 -0
- rs3/generatedFiles/CompositeLinerService_pb2.pyi +5 -0
- rs3/generatedFiles/CompositeLinerService_pb2_grpc.py +140 -0
- rs3/generatedFiles/ComputeService_pb2.py +48 -0
- rs3/generatedFiles/ComputeService_pb2.pyi +56 -0
- rs3/generatedFiles/ComputeService_pb2_grpc.py +147 -0
- rs3/generatedFiles/ExternalVolumesService_pb2.py +45 -0
- rs3/generatedFiles/ExternalVolumesService_pb2.pyi +34 -0
- rs3/generatedFiles/ExternalVolumesService_pb2_grpc.py +270 -0
- rs3/generatedFiles/FieldStressService_pb2.py +37 -0
- rs3/generatedFiles/FieldStressService_pb2.pyi +5 -0
- rs3/generatedFiles/FieldStressService_pb2_grpc.py +140 -0
- rs3/generatedFiles/FieldStressSourceService_pb2.py +85 -0
- rs3/generatedFiles/FieldStressSourceService_pb2.pyi +182 -0
- rs3/generatedFiles/FieldStressSourceService_pb2_grpc.py +657 -0
- rs3/generatedFiles/GaussPointFailureMessage_pb2.py +37 -0
- rs3/generatedFiles/GaussPointFailureMessage_pb2.pyi +14 -0
- rs3/generatedFiles/GaussPointFailureMessage_pb2_grpc.py +24 -0
- rs3/generatedFiles/HydraulicStageFactorService_pb2.py +45 -0
- rs3/generatedFiles/HydraulicStageFactorService_pb2.pyi +36 -0
- rs3/generatedFiles/HydraulicStageFactorService_pb2_grpc.py +227 -0
- rs3/generatedFiles/JointDataService_pb2.py +45 -0
- rs3/generatedFiles/JointDataService_pb2.pyi +30 -0
- rs3/generatedFiles/JointDataService_pb2_grpc.py +313 -0
- rs3/generatedFiles/JointResultsQueryService_pb2.py +54 -0
- rs3/generatedFiles/JointResultsQueryService_pb2.pyi +92 -0
- rs3/generatedFiles/JointResultsQueryService_pb2_grpc.py +141 -0
- rs3/generatedFiles/JointService_pb2.py +45 -0
- rs3/generatedFiles/JointService_pb2.pyi +30 -0
- rs3/generatedFiles/JointService_pb2_grpc.py +227 -0
- rs3/generatedFiles/JointStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/JointStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/JointStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/LinerDataService_pb2.py +37 -0
- rs3/generatedFiles/LinerDataService_pb2.pyi +5 -0
- rs3/generatedFiles/LinerDataService_pb2_grpc.py +226 -0
- rs3/generatedFiles/LinerService_pb2.py +37 -0
- rs3/generatedFiles/LinerService_pb2.pyi +5 -0
- rs3/generatedFiles/LinerService_pb2_grpc.py +140 -0
- rs3/generatedFiles/LinerStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/LinerStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/LinerStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialDataService_pb2.py +37 -0
- rs3/generatedFiles/MaterialDataService_pb2.pyi +5 -0
- rs3/generatedFiles/MaterialDataService_pb2_grpc.py +226 -0
- rs3/generatedFiles/MaterialDatumService_pb2.py +45 -0
- rs3/generatedFiles/MaterialDatumService_pb2.pyi +38 -0
- rs3/generatedFiles/MaterialDatumService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialHydraulicDataService_pb2.py +93 -0
- rs3/generatedFiles/MaterialHydraulicDataService_pb2.pyi +193 -0
- rs3/generatedFiles/MaterialHydraulicDataService_pb2_grpc.py +829 -0
- rs3/generatedFiles/MaterialHydraulicModelService_pb2.py +55 -0
- rs3/generatedFiles/MaterialHydraulicModelService_pb2.pyi +79 -0
- rs3/generatedFiles/MaterialHydraulicModelService_pb2_grpc.py +313 -0
- rs3/generatedFiles/MaterialInitialConditionsService_pb2.py +37 -0
- rs3/generatedFiles/MaterialInitialConditionsService_pb2.pyi +5 -0
- rs3/generatedFiles/MaterialInitialConditionsService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialJointService_pb2.py +49 -0
- rs3/generatedFiles/MaterialJointService_pb2.pyi +52 -0
- rs3/generatedFiles/MaterialJointService_pb2_grpc.py +183 -0
- rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2.py +69 -0
- rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2.pyi +130 -0
- rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2_grpc.py +398 -0
- rs3/generatedFiles/MaterialJointStageFactorService_pb2.py +45 -0
- rs3/generatedFiles/MaterialJointStageFactorService_pb2.pyi +42 -0
- rs3/generatedFiles/MaterialJointStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialStageFactorsService_pb2.py +37 -0
- rs3/generatedFiles/MaterialStageFactorsService_pb2.pyi +5 -0
- rs3/generatedFiles/MaterialStageFactorsService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialStiffnessFormulaService_pb2.py +47 -0
- rs3/generatedFiles/MaterialStiffnessFormulaService_pb2.pyi +54 -0
- rs3/generatedFiles/MaterialStiffnessFormulaService_pb2_grpc.py +140 -0
- rs3/generatedFiles/MaterialStiffnessService_pb2.py +53 -0
- rs3/generatedFiles/MaterialStiffnessService_pb2.pyi +66 -0
- rs3/generatedFiles/MaterialStiffnessService_pb2_grpc.py +313 -0
- rs3/generatedFiles/MaterialStrengthService_pb2.py +105 -0
- rs3/generatedFiles/MaterialStrengthService_pb2.pyi +243 -0
- rs3/generatedFiles/MaterialStrengthService_pb2_grpc.py +833 -0
- rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2.py +47 -0
- rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2.pyi +43 -0
- rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2_grpc.py +228 -0
- rs3/generatedFiles/MeshSettingsService_pb2.py +41 -0
- rs3/generatedFiles/MeshSettingsService_pb2.pyi +16 -0
- rs3/generatedFiles/MeshSettingsService_pb2_grpc.py +184 -0
- rs3/generatedFiles/ModelFunctionService_pb2.py +119 -0
- rs3/generatedFiles/ModelFunctionService_pb2.pyi +331 -0
- rs3/generatedFiles/ModelFunctionService_pb2_grpc.py +871 -0
- rs3/generatedFiles/ModelService_pb2.py +342 -0
- rs3/generatedFiles/ModelService_pb2.pyi +962 -0
- rs3/generatedFiles/ModelService_pb2_grpc.py +3322 -0
- rs3/generatedFiles/PileDataService_pb2.py +55 -0
- rs3/generatedFiles/PileDataService_pb2.pyi +63 -0
- rs3/generatedFiles/PileDataService_pb2_grpc.py +399 -0
- rs3/generatedFiles/PileForepoleResultsQueryService_pb2.py +51 -0
- rs3/generatedFiles/PileForepoleResultsQueryService_pb2.pyi +63 -0
- rs3/generatedFiles/PileForepoleResultsQueryService_pb2_grpc.py +141 -0
- rs3/generatedFiles/PileStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/PileStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/PileStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/PlainStrandCableBoltService_pb2.py +44 -0
- rs3/generatedFiles/PlainStrandCableBoltService_pb2.pyi +30 -0
- rs3/generatedFiles/PlainStrandCableBoltService_pb2_grpc.py +140 -0
- rs3/generatedFiles/ProjectSettingsDataService_pb2.py +69 -0
- rs3/generatedFiles/ProjectSettingsDataService_pb2.pyi +119 -0
- rs3/generatedFiles/ProjectSettingsDataService_pb2_grpc.py +786 -0
- rs3/generatedFiles/RFCApplicationService_pb2.py +34 -0
- rs3/generatedFiles/RFCApplicationService_pb2.pyi +27 -0
- rs3/generatedFiles/RFCApplicationService_pb2_grpc.py +145 -0
- rs3/generatedFiles/RS3ModelerService_pb2.py +50 -0
- rs3/generatedFiles/RS3ModelerService_pb2.pyi +45 -0
- rs3/generatedFiles/RS3ModelerService_pb2_grpc.py +183 -0
- rs3/generatedFiles/RelativeStageFactorService_pb2.py +40 -0
- rs3/generatedFiles/RelativeStageFactorService_pb2.pyi +17 -0
- rs3/generatedFiles/RelativeStageFactorService_pb2_grpc.py +97 -0
- rs3/generatedFiles/RestraintsService_pb2.py +62 -0
- rs3/generatedFiles/RestraintsService_pb2.pyi +84 -0
- rs3/generatedFiles/RestraintsService_pb2_grpc.py +312 -0
- rs3/generatedFiles/ResultsQueryCommonMessage_pb2.py +56 -0
- rs3/generatedFiles/ResultsQueryCommonMessage_pb2.pyi +85 -0
- rs3/generatedFiles/ResultsQueryCommonMessage_pb2_grpc.py +24 -0
- rs3/generatedFiles/ResultsQueryService_pb2.py +87 -0
- rs3/generatedFiles/ResultsQueryService_pb2.pyi +185 -0
- rs3/generatedFiles/ResultsQueryService_pb2_grpc.py +745 -0
- rs3/generatedFiles/SelectionService_pb2.py +49 -0
- rs3/generatedFiles/SelectionService_pb2.pyi +51 -0
- rs3/generatedFiles/SelectionService_pb2_grpc.py +269 -0
- rs3/generatedFiles/SolidsResultsQueryService_pb2.py +93 -0
- rs3/generatedFiles/SolidsResultsQueryService_pb2.pyi +213 -0
- rs3/generatedFiles/SolidsResultsQueryService_pb2_grpc.py +195 -0
- rs3/generatedFiles/StageFactorService_pb2.py +58 -0
- rs3/generatedFiles/StageFactorService_pb2.pyi +79 -0
- rs3/generatedFiles/StageFactorService_pb2_grpc.py +226 -0
- rs3/generatedFiles/StiffnessStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/StiffnessStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/StiffnessStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/StrengthStageFactorService_pb2.py +37 -0
- rs3/generatedFiles/StrengthStageFactorService_pb2.pyi +5 -0
- rs3/generatedFiles/StrengthStageFactorService_pb2_grpc.py +140 -0
- rs3/generatedFiles/WaterByLocationDataService_pb2.py +61 -0
- rs3/generatedFiles/WaterByLocationDataService_pb2.pyi +95 -0
- rs3/generatedFiles/WaterByLocationDataService_pb2_grpc.py +312 -0
- rs3/generatedFiles/WaterPressureGridDataService_pb2.py +63 -0
- rs3/generatedFiles/WaterPressureGridDataService_pb2.pyi +107 -0
- rs3/generatedFiles/WaterPressureGridDataService_pb2_grpc.py +312 -0
- rs3/generatedFiles/__init__.py +3 -0
- rs3/loadings/LoadingEnums.py +6 -0
- rs3/loadings/Loadings.py +15 -0
- rs3/loadings/__init__.py +0 -0
- rs3/loadings/fieldStress/AdvancedConstant.py +115 -0
- rs3/loadings/fieldStress/AdvancedGravity.py +176 -0
- rs3/loadings/fieldStress/Constant.py +119 -0
- rs3/loadings/fieldStress/FieldStress.py +38 -0
- rs3/loadings/fieldStress/Gravity.py +206 -0
- rs3/loadings/fieldStress/_PropertyAccessor.py +41 -0
- rs3/loadings/fieldStress/__init__.py +0 -0
- rs3/mesh/Graded.py +59 -0
- rs3/mesh/Mesh.py +50 -0
- rs3/mesh/MeshEnums.py +16 -0
- rs3/mesh/Uniform.py +35 -0
- rs3/mesh/_PropertyAccessor.py +10 -0
- rs3/mesh/__init__.py +0 -0
- rs3/projectSettings/Dynamic.py +110 -0
- rs3/projectSettings/Groundwater.py +118 -0
- rs3/projectSettings/ProjectSettingEnums.py +108 -0
- rs3/projectSettings/ProjectSettings.py +43 -0
- rs3/projectSettings/ShearStrengthReduction.py +130 -0
- rs3/projectSettings/SolverOptions.py +88 -0
- rs3/projectSettings/Stages.py +162 -0
- rs3/projectSettings/StressAnalysis.py +183 -0
- rs3/projectSettings/Units.py +82 -0
- rs3/projectSettings/_PropertyAccessor.py +133 -0
- rs3/projectSettings/__init__.py +0 -0
- rs3/properties/CustomHydraulicModel.py +129 -0
- rs3/properties/DiscreteFunction.py +147 -0
- rs3/properties/GeneralizedAnisotropicFunction.py +98 -0
- rs3/properties/IPropertyGroupAccessors.py +12 -0
- rs3/properties/PropertyEnums.py +387 -0
- rs3/properties/ShearNormalFunction.py +94 -0
- rs3/properties/SnowdenStrengthFunction.py +115 -0
- rs3/properties/_PropertyAccessor.py +111 -0
- rs3/properties/__init__.py +0 -0
- rs3/properties/beam/Beam.py +86 -0
- rs3/properties/beam/BeamCommon.py +175 -0
- rs3/properties/beam/Standard.py +97 -0
- rs3/properties/beam/Truss.py +23 -0
- rs3/properties/beam/_PropertyAccessor.py +9 -0
- rs3/properties/beam/__init__.py +0 -0
- rs3/properties/bolt/Bolt.py +81 -0
- rs3/properties/bolt/EndAnchored.py +77 -0
- rs3/properties/bolt/FullyBonded.py +78 -0
- rs3/properties/bolt/PlainStrandCable.py +151 -0
- rs3/properties/bolt/Swellex.py +106 -0
- rs3/properties/bolt/Tieback.py +176 -0
- rs3/properties/bolt/_PropertyAccessor.py +7 -0
- rs3/properties/bolt/__init__.py +0 -0
- rs3/properties/groundwater/WaterByLocation.py +83 -0
- rs3/properties/groundwater/WaterGrid.py +120 -0
- rs3/properties/groundwater/_PropertyAccessor.py +36 -0
- rs3/properties/groundwater/__init__.py +0 -0
- rs3/properties/joint/BartonBandis.py +118 -0
- rs3/properties/joint/GeosyntheticHyperbolic.py +158 -0
- rs3/properties/joint/Joint.py +176 -0
- rs3/properties/joint/MaterialDependent.py +107 -0
- rs3/properties/joint/MohrCoulomb.py +169 -0
- rs3/properties/joint/NoneSlip.py +68 -0
- rs3/properties/joint/_PropertyAccessor.py +9 -0
- rs3/properties/joint/__init__.py +0 -0
- rs3/properties/liner/Geosynthetic.py +85 -0
- rs3/properties/liner/Liner.py +83 -0
- rs3/properties/liner/ReinforcedConcrete.py +216 -0
- rs3/properties/liner/Standard.py +183 -0
- rs3/properties/liner/_PropertyAccessor.py +7 -0
- rs3/properties/liner/__init__.py +0 -0
- rs3/properties/liningComposition/LiningComposition.py +244 -0
- rs3/properties/liningComposition/_PropertyAccessor.py +7 -0
- rs3/properties/liningComposition/__init__.py +0 -0
- rs3/properties/material/Material.py +74 -0
- rs3/properties/material/__init__.py +0 -0
- rs3/properties/material/constitutiveModel/AnisotropicLinear.py +149 -0
- rs3/properties/material/constitutiveModel/AnisotropicLinearPlanarBase.py +72 -0
- rs3/properties/material/constitutiveModel/BarcelonaBasic.py +158 -0
- rs3/properties/material/constitutiveModel/BartonBandis.py +77 -0
- rs3/properties/material/constitutiveModel/BaseConstitutiveModel.py +11 -0
- rs3/properties/material/constitutiveModel/BoundingSurfacePlasticity.py +88 -0
- rs3/properties/material/constitutiveModel/CamClay.py +144 -0
- rs3/properties/material/constitutiveModel/ChSoil.py +111 -0
- rs3/properties/material/constitutiveModel/ConstitutiveModel.py +87 -0
- rs3/properties/material/constitutiveModel/CySoil.py +137 -0
- rs3/properties/material/constitutiveModel/DiscreteFunction.py +39 -0
- rs3/properties/material/constitutiveModel/DoubleYield.py +130 -0
- rs3/properties/material/constitutiveModel/DruckerPrager.py +136 -0
- rs3/properties/material/constitutiveModel/GeneralizedAnisotropic.py +39 -0
- rs3/properties/material/constitutiveModel/GeneralizedHoekBrown.py +226 -0
- rs3/properties/material/constitutiveModel/HardeningSoil.py +156 -0
- rs3/properties/material/constitutiveModel/HardeningSoilWithSmallStrain.py +170 -0
- rs3/properties/material/constitutiveModel/HoekBrown.py +125 -0
- rs3/properties/material/constitutiveModel/Hyperbolic.py +77 -0
- rs3/properties/material/constitutiveModel/JointedGeneralizedHoekBrown.py +184 -0
- rs3/properties/material/constitutiveModel/JointedMohrCoulomb.py +173 -0
- rs3/properties/material/constitutiveModel/ManzariAndDafalias.py +148 -0
- rs3/properties/material/constitutiveModel/ModifiedCamClay.py +11 -0
- rs3/properties/material/constitutiveModel/MohrCoulomb.py +147 -0
- rs3/properties/material/constitutiveModel/MohrCoulombUnsaturatedZoneCalculations.py +80 -0
- rs3/properties/material/constitutiveModel/MohrCoulombWithCap.py +154 -0
- rs3/properties/material/constitutiveModel/Norsand.py +146 -0
- rs3/properties/material/constitutiveModel/PowerCurve.py +119 -0
- rs3/properties/material/constitutiveModel/Shansep.py +214 -0
- rs3/properties/material/constitutiveModel/ShearNormalFunction.py +34 -0
- rs3/properties/material/constitutiveModel/SnowdenAnisotropicLinear.py +108 -0
- rs3/properties/material/constitutiveModel/SoftSoil.py +104 -0
- rs3/properties/material/constitutiveModel/SoftSoilCreep.py +111 -0
- rs3/properties/material/constitutiveModel/SofteningHardening.py +214 -0
- rs3/properties/material/constitutiveModel/SwellingRock.py +202 -0
- rs3/properties/material/constitutiveModel/UnsaturatedZoneCalculations.py +138 -0
- rs3/properties/material/constitutiveModel/VerticalStressRatio.py +113 -0
- rs3/properties/material/constitutiveModel/_PropertyAccessor.py +96 -0
- rs3/properties/material/constitutiveModel/__init__.py +0 -0
- rs3/properties/material/constitutiveModel/jointOption/BartonBandis.py +109 -0
- rs3/properties/material/constitutiveModel/jointOption/MaterialJoint.py +48 -0
- rs3/properties/material/constitutiveModel/jointOption/MaterialJointOptions.py +32 -0
- rs3/properties/material/constitutiveModel/jointOption/MohrCoulomb.py +142 -0
- rs3/properties/material/constitutiveModel/jointOption/PlaneOrientationBase.py +92 -0
- rs3/properties/material/constitutiveModel/jointOption/SimpleHyperbolic.py +112 -0
- rs3/properties/material/constitutiveModel/jointOption/_PropertyAccessor.py +61 -0
- rs3/properties/material/constitutiveModel/jointOption/__init__.py +0 -0
- rs3/properties/material/constitutiveModel/stiffness/BaseStiffness.py +11 -0
- rs3/properties/material/constitutiveModel/stiffness/DuncanChangHyperbolic.py +128 -0
- rs3/properties/material/constitutiveModel/stiffness/GeneralizedHoekBrownEstimation.py +50 -0
- rs3/properties/material/constitutiveModel/stiffness/LinearIsotropic.py +106 -0
- rs3/properties/material/constitutiveModel/stiffness/NonlinearIsotropic.py +104 -0
- rs3/properties/material/constitutiveModel/stiffness/Orthotropic.py +296 -0
- rs3/properties/material/constitutiveModel/stiffness/TransverselyIsotropic.py +186 -0
- rs3/properties/material/constitutiveModel/stiffness/_PropertyAccessor.py +33 -0
- rs3/properties/material/constitutiveModel/stiffness/__init__.py +0 -0
- rs3/properties/material/constitutiveModel/stiffness/formula/Formula1.py +96 -0
- rs3/properties/material/constitutiveModel/stiffness/formula/Formula2.py +136 -0
- rs3/properties/material/constitutiveModel/stiffness/formula/Formula3.py +113 -0
- rs3/properties/material/constitutiveModel/stiffness/formula/_PropertyAccessor.py +37 -0
- rs3/properties/material/constitutiveModel/stiffness/formula/__init__.py +0 -0
- rs3/properties/material/datum/CohesionDatumDependency.py +99 -0
- rs3/properties/material/datum/Datum.py +23 -0
- rs3/properties/material/datum/FrictionAngleDatumDependency.py +99 -0
- rs3/properties/material/datum/YoungsModulusDatumDependency.py +78 -0
- rs3/properties/material/datum/_PropertyAccessor.py +26 -0
- rs3/properties/material/datum/__init__.py +0 -0
- rs3/properties/material/hydraulic/FEAGroundwater/Brooks.py +71 -0
- rs3/properties/material/hydraulic/FEAGroundwater/Custom.py +79 -0
- rs3/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +85 -0
- rs3/properties/material/hydraulic/FEAGroundwater/Fredlund.py +82 -0
- rs3/properties/material/hydraulic/FEAGroundwater/Gardner.py +72 -0
- rs3/properties/material/hydraulic/FEAGroundwater/HydraulicMethodVectors.py +97 -0
- rs3/properties/material/hydraulic/FEAGroundwater/HydraulicParametersCommon.py +157 -0
- rs3/properties/material/hydraulic/FEAGroundwater/Simple.py +37 -0
- rs3/properties/material/hydraulic/FEAGroundwater/VanGenuchten.py +94 -0
- rs3/properties/material/hydraulic/FEAGroundwater/_PropertyAccessor.py +16 -0
- rs3/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
- rs3/properties/material/hydraulic/Hydraulic.py +111 -0
- rs3/properties/material/hydraulic/PhreaticConditions.py +37 -0
- rs3/properties/material/hydraulic/StaticGroundwater.py +100 -0
- rs3/properties/material/hydraulic/WaterConditions.py +110 -0
- rs3/properties/material/hydraulic/_PropertyAccessor.py +31 -0
- rs3/properties/material/hydraulic/__init__.py +0 -0
- rs3/properties/material/initialConditions/InitialConditions.py +108 -0
- rs3/properties/material/initialConditions/_PropertyAccessor.py +11 -0
- rs3/properties/material/initialConditions/__init__.py +0 -0
- rs3/properties/material/stageFactors/StageFactors.py +77 -0
- rs3/properties/material/stageFactors/_PropertyAccessor.py +7 -0
- rs3/properties/material/stageFactors/__init__.py +0 -0
- rs3/properties/pile/EndCondition.py +109 -0
- rs3/properties/pile/Linear.py +69 -0
- rs3/properties/pile/MohrCoulomb.py +123 -0
- rs3/properties/pile/MultiLinear.py +70 -0
- rs3/properties/pile/Pile.py +108 -0
- rs3/properties/pile/PileCommon.py +99 -0
- rs3/properties/pile/_PropertyAccessor.py +9 -0
- rs3/properties/pile/__init__.py +0 -0
- rs3/properties/stageFactors/IStageFactorBase.py +10 -0
- rs3/properties/stageFactors/StageFactorBaseInterfaces.py +24 -0
- rs3/properties/stageFactors/StageFactorInterfaces.py +70 -0
- rs3/properties/stageFactors/_StageFactorInterface.py +48 -0
- rs3/properties/stageFactors/_StageFactorPropertyAccessor.py +18 -0
- rs3/properties/stageFactors/__init__.py +0 -0
- rs3/results/BeamResults.py +181 -0
- rs3/results/BoltResults.py +214 -0
- rs3/results/CompositeLinerResults.py +374 -0
- rs3/results/JointResults.py +160 -0
- rs3/results/PileForepoleResults.py +219 -0
- rs3/results/ResultEnums.py +146 -0
- rs3/results/Results.py +661 -0
- rs3/results/ResultsCommon.py +66 -0
- rs3/results/SolidElementResults.py +175 -0
- rs3/results/SolidNodalResults.py +248 -0
- rs3/results/SolidResults.py +206 -0
- rs3/results/YieldedElement.py +33 -0
- rs3/results/__init__.py +0 -0
- rs3scripting-4.42.0.dist-info/METADATA +70 -0
- rs3scripting-4.42.0.dist-info/RECORD +393 -0
- rs3scripting-4.42.0.dist-info/WHEEL +5 -0
- rs3scripting-4.42.0.dist-info/licenses/License.txt +20 -0
- rs3scripting-4.42.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from rs3._client import Client
|
|
2
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
3
|
+
from rs3._proxyObject import _ProxyObject
|
|
4
|
+
from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
|
|
5
|
+
from rs3.properties.stageFactors.StageFactorBaseInterfaces import AbsoluteStageFactorInterface
|
|
6
|
+
from rs3.properties.PropertyEnums import *
|
|
7
|
+
from rs3.properties.material.hydraulic.FEAGroundwater.HydraulicParametersCommon import HydraulicParametersCommon, HydraulicParametersCommonStageFactor, HydraulicParametersCommonDefinedStageFactor
|
|
8
|
+
|
|
9
|
+
class SimpleStageFactor(HydraulicParametersCommonStageFactor):
|
|
10
|
+
"""
|
|
11
|
+
Examples:
|
|
12
|
+
See :ref:`material_hydraulic_example`.
|
|
13
|
+
"""
|
|
14
|
+
def __init__(self, id: str, stageFactorId: str, client: Client):
|
|
15
|
+
super().__init__(id, stageFactorId, client)
|
|
16
|
+
|
|
17
|
+
class SimpleStageFactor(SimpleStageFactor, HydraulicParametersCommonDefinedStageFactor):
|
|
18
|
+
"""
|
|
19
|
+
Examples:
|
|
20
|
+
See :ref:`material_hydraulic_example`.
|
|
21
|
+
"""
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
class Simple(HydraulicParametersCommon):
|
|
25
|
+
"""
|
|
26
|
+
Examples:
|
|
27
|
+
See :ref:`material_hydraulic_example`.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(self, client: Client, id: str):
|
|
30
|
+
super().__init__(client, id)
|
|
31
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
32
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[SimpleStageFactor, SimpleStageFactor](id, client, SimpleStageFactor, SimpleStageFactor)
|
|
33
|
+
|
|
34
|
+
def setSoilType(self, simpleSoilType : EnhancedSimpleSoilTypes):
|
|
35
|
+
self._propertyAccessor.setEnumValue("SoilType", simpleSoilType.value)
|
|
36
|
+
def getSoilType(self) -> EnhancedSimpleSoilTypes:
|
|
37
|
+
return self._propertyAccessor.getEnumValue("SoilType", EnhancedSimpleSoilTypes)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Generated by RPCBinder in RFC_Common.
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
4
|
+
from rs3._proxyObject import _ProxyObject
|
|
5
|
+
from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
|
|
6
|
+
from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
|
|
7
|
+
import rs3.generatedFiles.HydraulicStageFactorService_pb2_grpc as HydraulicStageFactorService_pb2_grpc
|
|
8
|
+
class VanGenuchtenBase(_ProxyObject, IPropertyGroupAccessors):
|
|
9
|
+
def __init__(self, client: Client, id: str):
|
|
10
|
+
super().__init__(client, id)
|
|
11
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
12
|
+
def getAlpha(self) -> float:
|
|
13
|
+
return self._propertyAccessor.getDoubleProperty("VanGnuAlpha")
|
|
14
|
+
def setAlpha(self, value: float):
|
|
15
|
+
self._propertyAccessor.setDoubleProperty("VanGnuAlpha", value)
|
|
16
|
+
def getN(self) -> float:
|
|
17
|
+
return self._propertyAccessor.getDoubleProperty("VanGnuN")
|
|
18
|
+
def setN(self, value: float):
|
|
19
|
+
self._propertyAccessor.setDoubleProperty("VanGnuN", value)
|
|
20
|
+
def getUseCustomM(self) -> bool:
|
|
21
|
+
return self._propertyAccessor.getBoolValue("UseCustomM")
|
|
22
|
+
def setUseCustomM(self, value: bool):
|
|
23
|
+
self._propertyAccessor.setBoolValue("UseCustomM", value)
|
|
24
|
+
def getM(self) -> float:
|
|
25
|
+
return self._propertyAccessor.getDoubleProperty("VanGnuM")
|
|
26
|
+
def setM(self, value: float):
|
|
27
|
+
self._propertyAccessor.setDoubleProperty("VanGnuM", value)
|
|
28
|
+
def getProperties(self):
|
|
29
|
+
return {
|
|
30
|
+
"Alpha": self.getAlpha(),
|
|
31
|
+
"N": self.getN(),
|
|
32
|
+
"UseCustomM": self.getUseCustomM(),
|
|
33
|
+
"M": self.getM(),
|
|
34
|
+
}
|
|
35
|
+
def setProperties(self, Alpha: float = None, N: float = None, UseCustomM: bool = None, M: float = None):
|
|
36
|
+
if Alpha is not None:
|
|
37
|
+
self.setAlpha(Alpha)
|
|
38
|
+
if N is not None:
|
|
39
|
+
self.setN(N)
|
|
40
|
+
if UseCustomM is not None:
|
|
41
|
+
self.setUseCustomM(UseCustomM)
|
|
42
|
+
if M is not None:
|
|
43
|
+
self.setM(M)
|
|
44
|
+
class VanGenuchtenStageFactorBase(IStageFactorBase):
|
|
45
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
46
|
+
super().__init__(id, stageFactorID, client, HydraulicStageFactorService_pb2_grpc.HydraulicStageFactorServiceStub(client.channel))
|
|
47
|
+
def getAlphaFactor(self) -> float:
|
|
48
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("GW_VanGnuAlpha")
|
|
49
|
+
def getMFactor(self) -> float:
|
|
50
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("GW_VanGnuM")
|
|
51
|
+
def getUseCustomMFactor(self) -> bool:
|
|
52
|
+
return self._stageFactorPropertyAccessor.getBoolValue("GW_UseCustomM")
|
|
53
|
+
def getNFactor(self) -> float:
|
|
54
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("GW_VanGnuN")
|
|
55
|
+
class VanGenuchtenDefinedStageFactorBase(VanGenuchtenStageFactorBase):
|
|
56
|
+
def setAlphaFactor(self, value: float):
|
|
57
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("GW_VanGnuAlpha", value)
|
|
58
|
+
def setMFactor(self, value: float):
|
|
59
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("GW_VanGnuM", value)
|
|
60
|
+
def setUseCustomMFactor(self, value: bool):
|
|
61
|
+
self._stageFactorPropertyAccessor.setBoolValue("GW_UseCustomM", value)
|
|
62
|
+
def setNFactor(self, value: float):
|
|
63
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("GW_VanGnuN", value)
|
|
64
|
+
|
|
65
|
+
################ Code below this line will not be overridden ################
|
|
66
|
+
from rs3.properties.PropertyEnums import *
|
|
67
|
+
from rs3.properties.stageFactors.StageFactorBaseInterfaces import AbsoluteStageFactorInterface
|
|
68
|
+
from rs3.properties.material.hydraulic.FEAGroundwater.HydraulicParametersCommon import HydraulicParametersCommon, HydraulicParametersCommonStageFactor, HydraulicParametersCommonDefinedStageFactor
|
|
69
|
+
|
|
70
|
+
class VanGenuchtenStageFactor(VanGenuchtenStageFactorBase, HydraulicParametersCommonStageFactor):
|
|
71
|
+
"""
|
|
72
|
+
Examples:
|
|
73
|
+
See :ref:`material_hydraulic_example`.
|
|
74
|
+
"""
|
|
75
|
+
def __init__(self, id: str, stageFactorId: str, client: Client):
|
|
76
|
+
super().__init__(id, stageFactorId, client)
|
|
77
|
+
|
|
78
|
+
class VanGenuchtenDefinedStageFactor(VanGenuchtenDefinedStageFactorBase, VanGenuchtenStageFactor, HydraulicParametersCommonDefinedStageFactor):
|
|
79
|
+
"""
|
|
80
|
+
Examples:
|
|
81
|
+
See :ref:`material_hydraulic_example`.
|
|
82
|
+
"""
|
|
83
|
+
pass
|
|
84
|
+
|
|
85
|
+
class VanGenuchten(VanGenuchtenBase, HydraulicParametersCommon):
|
|
86
|
+
"""
|
|
87
|
+
Examples:
|
|
88
|
+
See :ref:`material_hydraulic_example`.
|
|
89
|
+
"""
|
|
90
|
+
def __init__(self, client: Client, id: str):
|
|
91
|
+
super().__init__(client, id)
|
|
92
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[VanGenuchtenDefinedStageFactor, VanGenuchtenStageFactor](id, client, VanGenuchtenDefinedStageFactor, VanGenuchtenStageFactor)
|
|
93
|
+
|
|
94
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from rs3.properties._PropertyAccessor import PropertyAccessor as CommonPropertyAccessor
|
|
2
|
+
import rs3.generatedFiles.MaterialHydraulicModelService_pb2_grpc as MaterialHydraulicModelService_pb2_grpc
|
|
3
|
+
import rs3.generatedFiles.MaterialHydraulicModelService_pb2 as MaterialHydraulicModelService_pb2
|
|
4
|
+
import rs3.generatedFiles.MaterialHydraulicDataService_pb2_grpc as MaterialHydraulicDataService_pb2_grpc
|
|
5
|
+
import rs3.generatedFiles.CommonMessages_pb2 as CommonMessages_pb2
|
|
6
|
+
from rs3._client import Client
|
|
7
|
+
class BasePropertyAccessor(CommonPropertyAccessor):
|
|
8
|
+
def __init__(self, client : Client, objectId : str):
|
|
9
|
+
self._stub = MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel)
|
|
10
|
+
super().__init__(client, objectId, self._stub)
|
|
11
|
+
|
|
12
|
+
class PropertyAccessor(CommonPropertyAccessor):
|
|
13
|
+
def __init__(self, client : Client, objectId : str):
|
|
14
|
+
self._stub = MaterialHydraulicModelService_pb2_grpc.MaterialHydraulicModelServiceStub(client.channel)
|
|
15
|
+
super().__init__(client, objectId, self._stub)
|
|
16
|
+
|
|
File without changes
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Generated by RPCBinder in RFC_Common.
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
4
|
+
from rs3._proxyObject import _ProxyObject
|
|
5
|
+
from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
|
|
6
|
+
class HydraulicBase(_ProxyObject, IPropertyGroupAccessors):
|
|
7
|
+
def __init__(self, client: Client, id: str):
|
|
8
|
+
super().__init__(client, id)
|
|
9
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
10
|
+
def getPorosityValue(self) -> float:
|
|
11
|
+
return self._propertyAccessor.getDoubleProperty("Porosity")
|
|
12
|
+
def setPorosityValue(self, value: float):
|
|
13
|
+
self._propertyAccessor.setDoubleProperty("Porosity", value)
|
|
14
|
+
def getVoidRatio(self) -> float:
|
|
15
|
+
return self._propertyAccessor.getDoubleProperty("VoidRatio")
|
|
16
|
+
def setVoidRatio(self, value: float):
|
|
17
|
+
self._propertyAccessor.setDoubleProperty("VoidRatio", value)
|
|
18
|
+
def getDefineMaximumNegativePoreWaterPressure(self) -> bool:
|
|
19
|
+
return self._propertyAccessor.getBoolValue("UseMaxNegativePWP")
|
|
20
|
+
def setDefineMaximumNegativePoreWaterPressure(self, value: bool):
|
|
21
|
+
self._propertyAccessor.setBoolValue("UseMaxNegativePWP", value)
|
|
22
|
+
def getMaximumNegativePoreWaterPressure(self) -> float:
|
|
23
|
+
return self._propertyAccessor.getDoubleProperty("MaxNegativePWP")
|
|
24
|
+
def setMaximumNegativePoreWaterPressure(self, value: float):
|
|
25
|
+
self._propertyAccessor.setDoubleProperty("MaxNegativePWP", value)
|
|
26
|
+
def getUseBiotsCoefficientForCalculatingEffectiveStress(self) -> bool:
|
|
27
|
+
return self._propertyAccessor.getBoolValue("UseBiotCoefficient")
|
|
28
|
+
def setUseBiotsCoefficientForCalculatingEffectiveStress(self, value: bool):
|
|
29
|
+
self._propertyAccessor.setBoolValue("UseBiotCoefficient", value)
|
|
30
|
+
def getUseCustomBiotsCoefficient(self) -> bool:
|
|
31
|
+
return self._propertyAccessor.getBoolValue("UseCustomBiotCoefficient")
|
|
32
|
+
def setUseCustomBiotsCoefficient(self, value: bool):
|
|
33
|
+
self._propertyAccessor.setBoolValue("UseCustomBiotCoefficient", value)
|
|
34
|
+
def getBiotsCoefficient(self) -> float:
|
|
35
|
+
return self._propertyAccessor.getDoubleProperty("BiotCoefficient")
|
|
36
|
+
def setBiotsCoefficient(self, value: float):
|
|
37
|
+
self._propertyAccessor.setDoubleProperty("BiotCoefficient", value)
|
|
38
|
+
def getProperties(self):
|
|
39
|
+
return {
|
|
40
|
+
"PorosityValue": self.getPorosityValue(),
|
|
41
|
+
"VoidRatio": self.getVoidRatio(),
|
|
42
|
+
"DefineMaximumNegativePoreWaterPressure": self.getDefineMaximumNegativePoreWaterPressure(),
|
|
43
|
+
"MaximumNegativePoreWaterPressure": self.getMaximumNegativePoreWaterPressure(),
|
|
44
|
+
"UseBiotsCoefficientForCalculatingEffectiveStress": self.getUseBiotsCoefficientForCalculatingEffectiveStress(),
|
|
45
|
+
"UseCustomBiotsCoefficient": self.getUseCustomBiotsCoefficient(),
|
|
46
|
+
"BiotsCoefficient": self.getBiotsCoefficient(),
|
|
47
|
+
}
|
|
48
|
+
def setProperties(self, PorosityValue: float = None, VoidRatio: float = None, DefineMaximumNegativePoreWaterPressure: bool = None, MaximumNegativePoreWaterPressure: float = None, UseBiotsCoefficientForCalculatingEffectiveStress: bool = None, UseCustomBiotsCoefficient: bool = None, BiotsCoefficient: float = None):
|
|
49
|
+
if PorosityValue is not None:
|
|
50
|
+
self.setPorosityValue(PorosityValue)
|
|
51
|
+
if VoidRatio is not None:
|
|
52
|
+
self.setVoidRatio(VoidRatio)
|
|
53
|
+
if DefineMaximumNegativePoreWaterPressure is not None:
|
|
54
|
+
self.setDefineMaximumNegativePoreWaterPressure(DefineMaximumNegativePoreWaterPressure)
|
|
55
|
+
if MaximumNegativePoreWaterPressure is not None:
|
|
56
|
+
self.setMaximumNegativePoreWaterPressure(MaximumNegativePoreWaterPressure)
|
|
57
|
+
if UseBiotsCoefficientForCalculatingEffectiveStress is not None:
|
|
58
|
+
self.setUseBiotsCoefficientForCalculatingEffectiveStress(UseBiotsCoefficientForCalculatingEffectiveStress)
|
|
59
|
+
if UseCustomBiotsCoefficient is not None:
|
|
60
|
+
self.setUseCustomBiotsCoefficient(UseCustomBiotsCoefficient)
|
|
61
|
+
if BiotsCoefficient is not None:
|
|
62
|
+
self.setBiotsCoefficient(BiotsCoefficient)
|
|
63
|
+
|
|
64
|
+
################ Code below this line will not be overridden ################
|
|
65
|
+
from rs3.properties.PropertyEnums import *
|
|
66
|
+
from rs3.properties.material.hydraulic.FEAGroundwater.FEAGroundwater import FEAGroundwater
|
|
67
|
+
from rs3.properties.material.hydraulic.StaticGroundwater import StaticGroundwater
|
|
68
|
+
from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
|
|
69
|
+
import rs3.generatedFiles.HydraulicStageFactorService_pb2_grpc as HydraulicStageFactorService_pb2_grpc
|
|
70
|
+
from rs3.properties.stageFactors.StageFactorBaseInterfaces import AbsoluteStageFactorInterface
|
|
71
|
+
class HydraulicStageFactor(IStageFactorBase):
|
|
72
|
+
"""
|
|
73
|
+
Examples:
|
|
74
|
+
See :ref:`material_stage_factors_example`.
|
|
75
|
+
"""
|
|
76
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
77
|
+
super().__init__(id, stageFactorID, client, HydraulicStageFactorService_pb2_grpc.HydraulicStageFactorServiceStub(client.channel))
|
|
78
|
+
def getMaterialBehaviorType(self) -> MaterialBehaviours:
|
|
79
|
+
return self._stageFactorPropertyAccessor.getEnumValue("MaterialBehaviorType", MaterialBehaviours)
|
|
80
|
+
|
|
81
|
+
class HydraulicDefinedStageFactor(HydraulicStageFactor):
|
|
82
|
+
"""
|
|
83
|
+
Examples:
|
|
84
|
+
See :ref:`material_stage_factors_example`.
|
|
85
|
+
"""
|
|
86
|
+
def setMaterialBehaviorType(self, materialBehaviorType : MaterialBehaviours):
|
|
87
|
+
self._stageFactorPropertyAccessor.setEnumValue("MaterialBehaviorType", materialBehaviorType.value)
|
|
88
|
+
|
|
89
|
+
class Hydraulic(HydraulicBase):
|
|
90
|
+
"""
|
|
91
|
+
Examples:
|
|
92
|
+
See :ref:`material_hydraulic_example`.
|
|
93
|
+
"""
|
|
94
|
+
def __init__(self, client: Client, id: str):
|
|
95
|
+
super().__init__(client, id)
|
|
96
|
+
self.FEAGroundwater = FEAGroundwater(client, id)
|
|
97
|
+
self.StaticGroundwater = StaticGroundwater(client, id)
|
|
98
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[HydraulicDefinedStageFactor, HydraulicStageFactor](id, client, HydraulicDefinedStageFactor, HydraulicStageFactor)
|
|
99
|
+
|
|
100
|
+
def setMaterialBehavior(self, materialBehaviorType : MaterialBehaviours):
|
|
101
|
+
self._propertyAccessor.setEnumValue("MaterialBehaviorType", materialBehaviorType.value)
|
|
102
|
+
def getMaterialBehavior(self) -> MaterialBehaviours:
|
|
103
|
+
return self._propertyAccessor.getEnumValue("MaterialBehaviorType", MaterialBehaviours)
|
|
104
|
+
|
|
105
|
+
def setPorosityType(self, porosityType : PorosityType):
|
|
106
|
+
self._propertyAccessor.setEnumValue("IsPorosity", porosityType.value)
|
|
107
|
+
def getPorosityType(self) -> PorosityType:
|
|
108
|
+
return self._propertyAccessor.getEnumValue("IsPorosity", PorosityType)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated by RPCBinder in RFC_Common.
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
4
|
+
from rs3._proxyObject import _ProxyObject
|
|
5
|
+
from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
|
|
6
|
+
class PhreaticConditionsBase(_ProxyObject, IPropertyGroupAccessors):
|
|
7
|
+
def __init__(self, client: Client, id: str):
|
|
8
|
+
super().__init__(client, id)
|
|
9
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
10
|
+
def getName(self) -> str:
|
|
11
|
+
return self._propertyAccessor.getStringValue("Name")
|
|
12
|
+
def setName(self, value: str):
|
|
13
|
+
self._propertyAccessor.setStringValue("Name", value)
|
|
14
|
+
def getUserDefinedValue(self) -> float:
|
|
15
|
+
return self._propertyAccessor.getDoubleProperty("UserDefinedValue")
|
|
16
|
+
def setUserDefinedValue(self, value: float):
|
|
17
|
+
self._propertyAccessor.setDoubleProperty("UserDefinedValue", value)
|
|
18
|
+
def getProperties(self):
|
|
19
|
+
return {
|
|
20
|
+
"Name": self.getName(),
|
|
21
|
+
"UserDefinedValue": self.getUserDefinedValue(),
|
|
22
|
+
}
|
|
23
|
+
def setProperties(self, Name: str = None, UserDefinedValue: float = None):
|
|
24
|
+
if Name is not None:
|
|
25
|
+
self.setName(Name)
|
|
26
|
+
if UserDefinedValue is not None:
|
|
27
|
+
self.setUserDefinedValue(UserDefinedValue)
|
|
28
|
+
|
|
29
|
+
################ Code below this line will not be overridden ################
|
|
30
|
+
from rs3.properties.PropertyEnums import *
|
|
31
|
+
from ._PropertyAccessor import PhreaticConditionsPropertyAccessor
|
|
32
|
+
class PhreaticConditions(PhreaticConditionsBase):
|
|
33
|
+
def __init__(self, client: Client, id: str):
|
|
34
|
+
super().__init__(client, id)
|
|
35
|
+
self._propertyAccessor = PhreaticConditionsPropertyAccessor(client, id)
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from rs3._client import Client
|
|
2
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
3
|
+
from rs3.properties.PropertyEnums import *
|
|
4
|
+
from rs3.properties.material.hydraulic.PhreaticConditions import PhreaticConditions
|
|
5
|
+
from rs3.properties.material.hydraulic.WaterConditions import WaterConditions
|
|
6
|
+
from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
|
|
7
|
+
import rs3.generatedFiles.MaterialHydraulicDataService_pb2_grpc as MaterialHydraulicDataService_pb2_grpc
|
|
8
|
+
import rs3.generatedFiles.HydraulicStageFactorService_pb2_grpc as HydraulicStageFactorService_pb2_grpc
|
|
9
|
+
import rs3.generatedFiles.HydraulicStageFactorService_pb2 as HydraulicStageFactorService_pb2
|
|
10
|
+
from rs3.properties.stageFactors.StageFactorBaseInterfaces import AbsoluteStageFactorInterface
|
|
11
|
+
class StaticGroundwaterStageFactor(IStageFactorBase):
|
|
12
|
+
"""
|
|
13
|
+
Examples:
|
|
14
|
+
See :ref:`material_hydraulic_example`.
|
|
15
|
+
"""
|
|
16
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
17
|
+
self._stub = HydraulicStageFactorService_pb2_grpc.HydraulicStageFactorServiceStub(client.channel)
|
|
18
|
+
super().__init__(id, stageFactorID, client, self._stub)
|
|
19
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
20
|
+
def getWaterCondition(self) -> str:
|
|
21
|
+
"""
|
|
22
|
+
Retrieve the name of the current default water condition in phreatic surface method and initial water condition in the steady state or trainsient state methods of the current material for each stage.
|
|
23
|
+
|
|
24
|
+
Returns:
|
|
25
|
+
str: The name of the initial water condition or "Dry" if the waterType is `DRY`.
|
|
26
|
+
"""
|
|
27
|
+
request = HydraulicStageFactorService_pb2.GetInitialWaterConditionRequest(propertyId=self.parentID, stageFactorId=self._objectId)
|
|
28
|
+
response : HydraulicStageFactorService_pb2.GetInitialWaterConditionResponse = self._client.callFunction(self._stub.GetInitialWaterCondition, request)
|
|
29
|
+
return response.waterTableName
|
|
30
|
+
|
|
31
|
+
class StaticGroundwaterDefinedStageFactor(StaticGroundwaterStageFactor):
|
|
32
|
+
"""
|
|
33
|
+
Examples:
|
|
34
|
+
:ref:`material_hydraulic_example`
|
|
35
|
+
"""
|
|
36
|
+
def setWaterCondition(self, waterType : StaticWaterModes, name : str = ""):
|
|
37
|
+
"""
|
|
38
|
+
Set the default water condition in phreatic surface method and initial water condition in the steady state or trainsient state methods of the current material for each stage.
|
|
39
|
+
|
|
40
|
+
This defines the starting water condition used in hydraulic calculations.
|
|
41
|
+
|
|
42
|
+
- If `waterType` is `DRY`, no `name` is required.
|
|
43
|
+
- If `waterType` refers to a water surface, PWP interpolation surface, or PWP point set, the `name` must match an existing water table.
|
|
44
|
+
- If `waterType` is `USER_DEFINED_VALUE`, the `name` must match an existing user-defined pore water pressure (PWP) or Ru entry.
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
waterType (WaterConditionWaterType):
|
|
48
|
+
The type of water condition to set.
|
|
49
|
+
name (str, optional):
|
|
50
|
+
The name of the water table, PWP dataset, or user-defined PWP to use. Required for all types except `DRY`. Defaults to an empty string.
|
|
51
|
+
|
|
52
|
+
Raises:
|
|
53
|
+
ValueError: If `name` is required for the given `waterType` but is not provided.
|
|
54
|
+
"""
|
|
55
|
+
request = HydraulicStageFactorService_pb2.SetInitialWaterConditionRequest(propertyId=self.parentID, stageFactorId=self._objectId, waterType=waterType.value, waterTableName=name)
|
|
56
|
+
self._client.callFunction(self._stub.SetInitialWaterCondition, request)
|
|
57
|
+
|
|
58
|
+
class StaticGroundwater(WaterConditions):
|
|
59
|
+
"""
|
|
60
|
+
Examples:
|
|
61
|
+
See :ref:`material_hydraulic_example`.
|
|
62
|
+
"""
|
|
63
|
+
def __init__(self, client: Client, id: str):
|
|
64
|
+
super().__init__(client, id)
|
|
65
|
+
self._stub = MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel)
|
|
66
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor](id, client, StaticGroundwaterDefinedStageFactor, StaticGroundwaterStageFactor)
|
|
67
|
+
|
|
68
|
+
def getStaticWaterModeByName(self, waterConditionName: str) -> PhreaticConditions:
|
|
69
|
+
return super().getWaterConditionPropertyByName(waterConditionName=waterConditionName)
|
|
70
|
+
def getAllStaticWaterModes(self) -> list[PhreaticConditions]:
|
|
71
|
+
return super().getWaterConditionProperties()
|
|
72
|
+
|
|
73
|
+
def setStaticWaterMode(self, waterType : StaticWaterModes, name : str = ""):
|
|
74
|
+
"""
|
|
75
|
+
Set the default water condition in phreatic surface method of the current material.
|
|
76
|
+
|
|
77
|
+
This defines the starting water condition used in hydraulic calculations.
|
|
78
|
+
|
|
79
|
+
- If `waterType` is `DRY`, no `name` is required.
|
|
80
|
+
- If `waterType` refers to a water surface, PWP interpolation surface, or PWP point set, the `name` must match an existing water table.
|
|
81
|
+
- If `waterType` is `USER_DEFINED_VALUE`, the `name` must match an existing user-defined pore water pressure (PWP) or Ru entry.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
waterType (WaterConditionWaterType):
|
|
85
|
+
The type of water condition to set.
|
|
86
|
+
name (str, optional):
|
|
87
|
+
The name of the water table, PWP dataset, or user-defined PWP to use. Required for all types except `DRY`. Defaults to an empty string.
|
|
88
|
+
|
|
89
|
+
Raises:
|
|
90
|
+
ValueError: If `name` is required for the given `waterType` but is not provided.
|
|
91
|
+
"""
|
|
92
|
+
super().setWaterConditions(waterType=waterType, name=name)
|
|
93
|
+
def getStaticWaterMode(self) -> str:
|
|
94
|
+
"""
|
|
95
|
+
Retrieve the name of the current default water condition in phreatic surface method of the current material.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
str: The name of the initial water condition or "Dry" if the waterType is `DRY`.
|
|
99
|
+
"""
|
|
100
|
+
return super().getWaterConditions()
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Generated by RPCBinder in RFC_Common.
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import BasePropertyAccessor
|
|
4
|
+
from rs3._proxyObject import _ProxyObject
|
|
5
|
+
from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
|
|
6
|
+
class WaterConditionsBase(_ProxyObject, IPropertyGroupAccessors):
|
|
7
|
+
def __init__(self, client: Client, id: str):
|
|
8
|
+
super().__init__(client, id)
|
|
9
|
+
self._basePropertyAccessor = BasePropertyAccessor(client, id)
|
|
10
|
+
def getStaticHuValue(self) -> float:
|
|
11
|
+
return self._basePropertyAccessor.getDoubleProperty("HuValue")
|
|
12
|
+
def setStaticHuValue(self, value: float):
|
|
13
|
+
self._basePropertyAccessor.setDoubleProperty("HuValue", value)
|
|
14
|
+
def getProperties(self):
|
|
15
|
+
return {
|
|
16
|
+
"StaticHuValue": self.getStaticHuValue(),
|
|
17
|
+
}
|
|
18
|
+
def setProperties(self, StaticHuValue: float = None):
|
|
19
|
+
if StaticHuValue is not None:
|
|
20
|
+
self.setStaticHuValue(StaticHuValue)
|
|
21
|
+
|
|
22
|
+
################ Code below this line will not be overridden ################
|
|
23
|
+
from rs3.properties.PropertyEnums import *
|
|
24
|
+
import rs3.generatedFiles.MaterialHydraulicDataService_pb2_grpc as MaterialHydraulicDataService_pb2_grpc
|
|
25
|
+
import rs3.generatedFiles.MaterialHydraulicDataService_pb2 as MaterialHydraulicDataService_pb2
|
|
26
|
+
from rs3.properties.material.hydraulic.PhreaticConditions import PhreaticConditions
|
|
27
|
+
class WaterConditions(WaterConditionsBase):
|
|
28
|
+
"""
|
|
29
|
+
Examples:
|
|
30
|
+
See :ref:`material_hydraulic_example`.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(self, client: Client, id: str):
|
|
33
|
+
super().__init__(client, id)
|
|
34
|
+
self._stub = MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel)
|
|
35
|
+
|
|
36
|
+
def setStaticHuType(self, value : HuTypes):
|
|
37
|
+
self._basePropertyAccessor.setEnumValue("HuFactorType", value.value)
|
|
38
|
+
def getStaticHuType(self) -> HuTypes:
|
|
39
|
+
return self._basePropertyAccessor.getEnumValue("HuFactorType", HuTypes)
|
|
40
|
+
|
|
41
|
+
def createNewWaterCondition(self, waterConditionName: str, userDefinedType : HydraulicParameterType, value : float) -> None:
|
|
42
|
+
"""
|
|
43
|
+
Create a new water condition entry with the specified name, parameter type, and value for the current material.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
waterConditionName (str):
|
|
47
|
+
The name of the new water condition (e.g., "Pore Water Pressure 1").
|
|
48
|
+
userDefinedType (HydraulicParameterType):
|
|
49
|
+
The type of hydraulic parameter (e.g. PWP or Ru) to associate with this water condition
|
|
50
|
+
value (float):
|
|
51
|
+
The numerical value associated with the water condition.
|
|
52
|
+
"""
|
|
53
|
+
request = MaterialHydraulicDataService_pb2.CreateNewWaterConditionRequest(objectId=self._objectId, waterConditionName=waterConditionName, userDefinedType=userDefinedType.value, value=value)
|
|
54
|
+
self._client.callFunction(self._stub.CreateNewWaterCondition, request)
|
|
55
|
+
|
|
56
|
+
def deleteWaterCondition(self, waterConditionName: str) -> None:
|
|
57
|
+
"""
|
|
58
|
+
Delete an existing water condition for the current material.
|
|
59
|
+
|
|
60
|
+
After deletion, the material's water condition will default to **DRY**.
|
|
61
|
+
|
|
62
|
+
Args:
|
|
63
|
+
waterConditionName (str):
|
|
64
|
+
The name of the water condition to delete (e.g., "Pore Water Pressure 1").
|
|
65
|
+
"""
|
|
66
|
+
request = MaterialHydraulicDataService_pb2.DeleteWaterConditionRequest(objectId=self._objectId, waterConditionName=waterConditionName)
|
|
67
|
+
self._client.callFunction(self._stub.DeleteWaterCondition, request)
|
|
68
|
+
|
|
69
|
+
def getWaterConditionPropertyByName(self, waterConditionName: str) -> PhreaticConditions:
|
|
70
|
+
request = MaterialHydraulicDataService_pb2.GetWaterConditionPropertyByNameRequest(objectId=self._objectId, waterConditionName=waterConditionName)
|
|
71
|
+
response : MaterialHydraulicDataService_pb2.GetWaterConditionPropertyByNameResponse = self._client.callFunction(self._stub.GetWaterConditionPropertyByName, request)
|
|
72
|
+
return PhreaticConditions(self._client, response.result)
|
|
73
|
+
|
|
74
|
+
def getWaterConditionProperties(self) -> list[PhreaticConditions]:
|
|
75
|
+
request = MaterialHydraulicDataService_pb2.GetWaterConditionPropertiesRequest(objectId=self._objectId)
|
|
76
|
+
response : MaterialHydraulicDataService_pb2.GetWaterConditionPropertiesResponse = self._client.callFunction(self._stub.GetWaterConditionProperties, request)
|
|
77
|
+
return [PhreaticConditions(self._client, obj) for obj in response.result]
|
|
78
|
+
|
|
79
|
+
def setWaterConditions(self, waterType : StaticWaterModes, name : str = ""):
|
|
80
|
+
"""
|
|
81
|
+
Set the default water condition in phreatic surface method and initial water condition in the steady state or trainsient state methods of the current material.
|
|
82
|
+
|
|
83
|
+
This defines the starting water condition used in hydraulic calculations.
|
|
84
|
+
|
|
85
|
+
- If `waterType` is `DRY`, no `name` is required.
|
|
86
|
+
- If `waterType` refers to a water surface, PWP interpolation surface, or PWP point set, the `name` must match an existing water table.
|
|
87
|
+
- If `waterType` is `USER_DEFINED_VALUE`, the `name` must match an existing user-defined pore water pressure (PWP) or Ru entry.
|
|
88
|
+
|
|
89
|
+
Args:
|
|
90
|
+
waterType (WaterConditionWaterType):
|
|
91
|
+
The type of water condition to set.
|
|
92
|
+
name (str, optional):
|
|
93
|
+
The name of the water table, PWP dataset, or user-defined PWP to use. Required for all types except `DRY`. Defaults to an empty string.
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
ValueError: If `name` is required for the given `waterType` but is not provided.
|
|
97
|
+
"""
|
|
98
|
+
request = MaterialHydraulicDataService_pb2.SetInitialWaterConditionRequest(objectId=self._objectId, waterType=waterType.value, waterTableName=name)
|
|
99
|
+
self._client.callFunction(self._stub.SetInitialWaterCondition, request)
|
|
100
|
+
|
|
101
|
+
def getWaterConditions(self) -> str:
|
|
102
|
+
"""
|
|
103
|
+
Retrieve the name of the current default water condition in phreatic surface method and initial water condition in the steady state or trainsient state methods of the current material.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
str: The name of the initial water condition or "Dry" if the waterType is `DRY`.
|
|
107
|
+
"""
|
|
108
|
+
request = MaterialHydraulicDataService_pb2.GetInitialWaterConditionRequest(objectId=self._objectId)
|
|
109
|
+
response : MaterialHydraulicDataService_pb2.GetInitialWaterConditionResponse = self._client.callFunction(self._stub.GetInitialWaterCondition, request)
|
|
110
|
+
return response.waterTableName
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from rs3.properties._PropertyAccessor import PropertyAccessor
|
|
2
|
+
import rs3.generatedFiles.MaterialHydraulicDataService_pb2_grpc as MaterialHydraulicDataService_pb2_grpc
|
|
3
|
+
import rs3.generatedFiles.CommonMessages_pb2 as CommonMessages_pb2
|
|
4
|
+
from rs3._client import Client
|
|
5
|
+
class _HydraulicPropertyAccessor(PropertyAccessor):
|
|
6
|
+
def __init__(self, client : Client, objectId : str):
|
|
7
|
+
super().__init__(client, objectId, MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel))
|
|
8
|
+
|
|
9
|
+
class BasePropertyAccessor(_HydraulicPropertyAccessor):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
class PropertyAccessor(_HydraulicPropertyAccessor):
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
class PhreaticConditionsPropertyAccessor(PropertyAccessor):
|
|
16
|
+
def __init__(self, client : Client, objectId : str):
|
|
17
|
+
self._client = client
|
|
18
|
+
self._stub = MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel)
|
|
19
|
+
self._object = objectId
|
|
20
|
+
|
|
21
|
+
def _getProperty(self, propertyName : str) -> CommonMessages_pb2.PropertyValue:
|
|
22
|
+
request = CommonMessages_pb2.GetPropertyRequest(objectId=self._object, propertyName=propertyName)
|
|
23
|
+
response : CommonMessages_pb2.GetPropertyResponse = self._client.callFunction(self._stub.GetWaterConditionValue, request)
|
|
24
|
+
return response.value
|
|
25
|
+
|
|
26
|
+
def _setProperty(self, propertyName : str, value : CommonMessages_pb2.PropertyValue):
|
|
27
|
+
request = CommonMessages_pb2.SetPropertyRequest(objectId=self._object,
|
|
28
|
+
propertyName=propertyName,
|
|
29
|
+
value=value)
|
|
30
|
+
self._client.callFunction(self._stub.SetWaterConditionValue, request)
|
|
31
|
+
|
|
File without changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Generated by RPCBinder in RFC_Common.
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
4
|
+
from rs3._proxyObject import _ProxyObject
|
|
5
|
+
from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
|
|
6
|
+
class InitialConditionsBase(_ProxyObject, IPropertyGroupAccessors):
|
|
7
|
+
def __init__(self, client: Client, id: str):
|
|
8
|
+
super().__init__(client, id)
|
|
9
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
10
|
+
def getUnitWeight(self) -> float:
|
|
11
|
+
return self._propertyAccessor.getDoubleProperty("UnitWeight")
|
|
12
|
+
def setUnitWeight(self, value: float):
|
|
13
|
+
self._propertyAccessor.setDoubleProperty("UnitWeight", value)
|
|
14
|
+
def getAccountForMoistureContentInUnitWeight(self) -> bool:
|
|
15
|
+
return self._propertyAccessor.getBoolValue("UseMoistureUnitWeight")
|
|
16
|
+
def setAccountForMoistureContentInUnitWeight(self, value: bool):
|
|
17
|
+
self._propertyAccessor.setBoolValue("UseMoistureUnitWeight", value)
|
|
18
|
+
def getDryUnitWeight(self) -> float:
|
|
19
|
+
return self._propertyAccessor.getDoubleProperty("DryUnitWeight")
|
|
20
|
+
def setDryUnitWeight(self, value: float):
|
|
21
|
+
self._propertyAccessor.setDoubleProperty("DryUnitWeight", value)
|
|
22
|
+
def getMoistureUnitWeight(self) -> float:
|
|
23
|
+
return self._propertyAccessor.getDoubleProperty("MoistureUnitWeight")
|
|
24
|
+
def setMoistureUnitWeight(self, value: float):
|
|
25
|
+
self._propertyAccessor.setDoubleProperty("MoistureUnitWeight", value)
|
|
26
|
+
def getSaturatedUnitWeight(self) -> float:
|
|
27
|
+
return self._propertyAccessor.getDoubleProperty("SaturatedUnitWeight")
|
|
28
|
+
def setSaturatedUnitWeight(self, value: float):
|
|
29
|
+
self._propertyAccessor.setDoubleProperty("SaturatedUnitWeight", value)
|
|
30
|
+
def getProperties(self):
|
|
31
|
+
return {
|
|
32
|
+
"UnitWeight": self.getUnitWeight(),
|
|
33
|
+
"AccountForMoistureContentInUnitWeight": self.getAccountForMoistureContentInUnitWeight(),
|
|
34
|
+
"DryUnitWeight": self.getDryUnitWeight(),
|
|
35
|
+
"MoistureUnitWeight": self.getMoistureUnitWeight(),
|
|
36
|
+
"SaturatedUnitWeight": self.getSaturatedUnitWeight(),
|
|
37
|
+
}
|
|
38
|
+
def setProperties(self, UnitWeight: float = None, AccountForMoistureContentInUnitWeight: bool = None, DryUnitWeight: float = None, MoistureUnitWeight: float = None, SaturatedUnitWeight: float = None):
|
|
39
|
+
if UnitWeight is not None:
|
|
40
|
+
self.setUnitWeight(UnitWeight)
|
|
41
|
+
if AccountForMoistureContentInUnitWeight is not None:
|
|
42
|
+
self.setAccountForMoistureContentInUnitWeight(AccountForMoistureContentInUnitWeight)
|
|
43
|
+
if DryUnitWeight is not None:
|
|
44
|
+
self.setDryUnitWeight(DryUnitWeight)
|
|
45
|
+
if MoistureUnitWeight is not None:
|
|
46
|
+
self.setMoistureUnitWeight(MoistureUnitWeight)
|
|
47
|
+
if SaturatedUnitWeight is not None:
|
|
48
|
+
self.setSaturatedUnitWeight(SaturatedUnitWeight)
|
|
49
|
+
|
|
50
|
+
################ Code below this line will not be overridden ################
|
|
51
|
+
from rs3.properties.PropertyEnums import *
|
|
52
|
+
from rs3.properties.material.hydraulic.PhreaticConditions import PhreaticConditions
|
|
53
|
+
from rs3.properties.material.hydraulic.WaterConditions import WaterConditions
|
|
54
|
+
from ._PropertyAccessor import HydraulicPropertyAccessor
|
|
55
|
+
class InitialConditions(InitialConditionsBase, WaterConditions):
|
|
56
|
+
"""
|
|
57
|
+
Examples:
|
|
58
|
+
See :ref:`material_initial_conditions_example`.
|
|
59
|
+
"""
|
|
60
|
+
def __init__(self, client: Client, id: str):
|
|
61
|
+
super().__init__(client, id)
|
|
62
|
+
self._basePropertyAccessor = HydraulicPropertyAccessor(client, id)
|
|
63
|
+
def getInitialElementLoading(self) -> InitialElementLoadingType:
|
|
64
|
+
return self._propertyAccessor.getEnumValue("InitialElementLoading", InitialElementLoadingType)
|
|
65
|
+
def setInitialElementLoading(self, initialElementLoading : InitialElementLoadingType):
|
|
66
|
+
self._propertyAccessor.setEnumValue("InitialElementLoading", initialElementLoading.value)
|
|
67
|
+
|
|
68
|
+
def getDryUnitWeight(self) -> float:
|
|
69
|
+
return self._propertyAccessor.getDoubleProperty("DryUnitWeight")
|
|
70
|
+
|
|
71
|
+
def getApplyInitialWaterConditions(self) -> bool:
|
|
72
|
+
return self._basePropertyAccessor.getBoolValue("apply_initial_water")
|
|
73
|
+
def setApplyInitialWaterConditions(self, value: bool):
|
|
74
|
+
self._basePropertyAccessor.setBoolValue("apply_initial_water", value)
|
|
75
|
+
|
|
76
|
+
def getInitialWaterConditionPropertyByName(self, waterConditionName: str) -> PhreaticConditions:
|
|
77
|
+
return super().getWaterConditionPropertyByName(waterConditionName=waterConditionName)
|
|
78
|
+
def getAllInitialWaterConditionProperties(self) -> list[PhreaticConditions]:
|
|
79
|
+
return super().getWaterConditionProperties()
|
|
80
|
+
|
|
81
|
+
def setInitialWaterCondition(self, waterType : StaticWaterModes, name : str = ""):
|
|
82
|
+
"""
|
|
83
|
+
Set the initial water condition in the steady state or trainsient state methods of the current material.
|
|
84
|
+
|
|
85
|
+
This defines the starting water condition used in hydraulic calculations.
|
|
86
|
+
|
|
87
|
+
- If `waterType` is `DRY`, no `name` is required.
|
|
88
|
+
- If `waterType` refers to a water surface, PWP interpolation surface, or PWP point set, the `name` must match an existing water table.
|
|
89
|
+
- If `waterType` is `USER_DEFINED_VALUE`, the `name` must match an existing user-defined pore water pressure (PWP) or Ru entry.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
waterType (WaterConditionWaterType):
|
|
93
|
+
The type of water condition to set.
|
|
94
|
+
name (str, optional):
|
|
95
|
+
The name of the water table, PWP dataset, or user-defined PWP to use. Required for all types except `DRY`. Defaults to an empty string.
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
ValueError: If `name` is required for the given `waterType` but is not provided.
|
|
99
|
+
"""
|
|
100
|
+
super().setWaterConditions(waterType=waterType, name=name)
|
|
101
|
+
def getInitialWaterCondition(self) -> str:
|
|
102
|
+
"""
|
|
103
|
+
Retrieve the name of the current initial water condition in the steady state or trainsient state methods of the current material.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
str: The name of the initial water condition or "Dry" if the waterType is `DRY`.
|
|
107
|
+
"""
|
|
108
|
+
return super().getWaterConditions()
|