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,109 @@
|
|
|
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.MaterialJointStageFactorService_pb2_grpc as MaterialJointStageFactorService_pb2_grpc
|
|
8
|
+
class BartonBandisBase(_ProxyObject, IPropertyGroupAccessors):
|
|
9
|
+
def __init__(self, client: Client, id: str):
|
|
10
|
+
super().__init__(client, id)
|
|
11
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
12
|
+
def getDilationAngle(self) -> float:
|
|
13
|
+
return self._propertyAccessor.getDoubleProperty("DilationAngle")
|
|
14
|
+
def setDilationAngle(self, value: float):
|
|
15
|
+
self._propertyAccessor.setDoubleProperty("DilationAngle", value)
|
|
16
|
+
def getJCS(self) -> float:
|
|
17
|
+
return self._propertyAccessor.getDoubleProperty("JCS")
|
|
18
|
+
def setJCS(self, value: float):
|
|
19
|
+
self._propertyAccessor.setDoubleProperty("JCS", value)
|
|
20
|
+
def getJRC(self) -> float:
|
|
21
|
+
return self._propertyAccessor.getDoubleProperty("JRC")
|
|
22
|
+
def setJRC(self, value: float):
|
|
23
|
+
self._propertyAccessor.setDoubleProperty("JRC", value)
|
|
24
|
+
def getResidualFrictionAngle(self) -> float:
|
|
25
|
+
return self._propertyAccessor.getDoubleProperty("residFric")
|
|
26
|
+
def setResidualFrictionAngle(self, value: float):
|
|
27
|
+
self._propertyAccessor.setDoubleProperty("residFric", value)
|
|
28
|
+
def getResidualStrength(self) -> bool:
|
|
29
|
+
return self._propertyAccessor.getBoolValue("residStrength")
|
|
30
|
+
def setResidualStrength(self, value: bool):
|
|
31
|
+
self._propertyAccessor.setBoolValue("residStrength", value)
|
|
32
|
+
def getProperties(self):
|
|
33
|
+
return {
|
|
34
|
+
"DilationAngle": self.getDilationAngle(),
|
|
35
|
+
"JCS": self.getJCS(),
|
|
36
|
+
"JRC": self.getJRC(),
|
|
37
|
+
"ResidualFrictionAngle": self.getResidualFrictionAngle(),
|
|
38
|
+
"ResidualStrength": self.getResidualStrength(),
|
|
39
|
+
}
|
|
40
|
+
def setProperties(self, DilationAngle: float = None, JCS: float = None, JRC: float = None, ResidualFrictionAngle: float = None, ResidualStrength: bool = None):
|
|
41
|
+
if DilationAngle is not None:
|
|
42
|
+
self.setDilationAngle(DilationAngle)
|
|
43
|
+
if JCS is not None:
|
|
44
|
+
self.setJCS(JCS)
|
|
45
|
+
if JRC is not None:
|
|
46
|
+
self.setJRC(JRC)
|
|
47
|
+
if ResidualFrictionAngle is not None:
|
|
48
|
+
self.setResidualFrictionAngle(ResidualFrictionAngle)
|
|
49
|
+
if ResidualStrength is not None:
|
|
50
|
+
self.setResidualStrength(ResidualStrength)
|
|
51
|
+
class BartonBandisStageFactorBase(IStageFactorBase):
|
|
52
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
53
|
+
super().__init__(id, stageFactorID, client, MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel))
|
|
54
|
+
def getDilationAngleFactor(self) -> float:
|
|
55
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("DilationAngle")
|
|
56
|
+
def getJCSFactor(self) -> float:
|
|
57
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("BartonBandis_JCS")
|
|
58
|
+
def getJRCFactor(self) -> float:
|
|
59
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("BartonBandis_JRC")
|
|
60
|
+
def getFrictionAngleFactor(self) -> float:
|
|
61
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("BartonBandis_FrictionAngle")
|
|
62
|
+
class BartonBandisDefinedStageFactorBase(BartonBandisStageFactorBase):
|
|
63
|
+
def setDilationAngleFactor(self, value: float):
|
|
64
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("DilationAngle", value)
|
|
65
|
+
def setJCSFactor(self, value: float):
|
|
66
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("BartonBandis_JCS", value)
|
|
67
|
+
def setJRCFactor(self, value: float):
|
|
68
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("BartonBandis_JRC", value)
|
|
69
|
+
def setFrictionAngleFactor(self, value: float):
|
|
70
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("BartonBandis_FrictionAngle", value)
|
|
71
|
+
|
|
72
|
+
################ Code below this line will not be overridden ################
|
|
73
|
+
from rs3.properties.material.constitutiveModel.jointOption.PlaneOrientationBase import PlaneOrientationBase
|
|
74
|
+
from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
|
|
75
|
+
from rs3.properties.material.constitutiveModel.jointOption._PropertyAccessor import JointOptionStageFactorPropertyAccessor
|
|
76
|
+
|
|
77
|
+
class BartonBandisStageFactor(BartonBandisStageFactorBase):
|
|
78
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
79
|
+
self._client = client
|
|
80
|
+
self._objectId = stageFactorID
|
|
81
|
+
self.parentID = id
|
|
82
|
+
self._materialID = materialId
|
|
83
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
84
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
85
|
+
|
|
86
|
+
class BartonBandisDefinedStageFactor(BartonBandisDefinedStageFactorBase):
|
|
87
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
88
|
+
self._client = client
|
|
89
|
+
self._objectId = stageFactorID
|
|
90
|
+
self.parentID = id
|
|
91
|
+
self._materialID = materialId
|
|
92
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
93
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
94
|
+
|
|
95
|
+
class BartonBandis(BartonBandisBase, PlaneOrientationBase):
|
|
96
|
+
"""
|
|
97
|
+
Example:
|
|
98
|
+
See :ref:`joint_control_examples`.
|
|
99
|
+
|
|
100
|
+
"""
|
|
101
|
+
def __init__(self, client: Client, materialId : str, jointId: str):
|
|
102
|
+
PlaneOrientationBase.__init__(self, client, materialId, jointId)
|
|
103
|
+
self._client = client
|
|
104
|
+
self._objectId = jointId
|
|
105
|
+
self._materialId = materialId
|
|
106
|
+
self._propertyAccessor = PropertyAccessor(client, materialId, jointId)
|
|
107
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[BartonBandisDefinedStageFactor, BartonBandisStageFactor](jointId, client, BartonBandisDefinedStageFactor, BartonBandisStageFactor, True, materialId)
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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 MaterialJointBase(_ProxyObject, IPropertyGroupAccessors):
|
|
7
|
+
def __init__(self, client: Client, id: str):
|
|
8
|
+
super().__init__(client, id)
|
|
9
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
10
|
+
def getUseStageFactors(self) -> bool:
|
|
11
|
+
return self._propertyAccessor.getBoolValue("UseStageFactors")
|
|
12
|
+
def setUseStageFactors(self, value: bool):
|
|
13
|
+
self._propertyAccessor.setBoolValue("UseStageFactors", value)
|
|
14
|
+
def getProperties(self):
|
|
15
|
+
return {
|
|
16
|
+
"UseStageFactors": self.getUseStageFactors(),
|
|
17
|
+
}
|
|
18
|
+
def setProperties(self, UseStageFactors: bool = None):
|
|
19
|
+
if UseStageFactors is not None:
|
|
20
|
+
self.setUseStageFactors(UseStageFactors)
|
|
21
|
+
|
|
22
|
+
################ Code below this line will not be overridden ################
|
|
23
|
+
from rs3.properties.material.constitutiveModel.jointOption.MohrCoulomb import MohrCoulomb
|
|
24
|
+
from rs3.properties.material.constitutiveModel.jointOption.BartonBandis import BartonBandis
|
|
25
|
+
from rs3.properties.material.constitutiveModel.jointOption.SimpleHyperbolic import SimpleHyperbolic
|
|
26
|
+
import rs3.generatedFiles.MaterialStrengthService_pb2_grpc as MaterialStrengthService_pb2_grpc
|
|
27
|
+
from ._PropertyAccessor import MaterialJointPropertyAccessor
|
|
28
|
+
from rs3.properties.PropertyEnums import *
|
|
29
|
+
class MaterialJoint(MaterialJointBase):
|
|
30
|
+
"""
|
|
31
|
+
Example:
|
|
32
|
+
See :ref:`joint_control_examples`.
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
def __init__(self, client: Client, materialId : str, jointId: str):
|
|
36
|
+
self._client = client
|
|
37
|
+
self._objectId = jointId
|
|
38
|
+
self._materialId = materialId
|
|
39
|
+
self._propertyAccessor = MaterialJointPropertyAccessor(client, materialId, jointId)
|
|
40
|
+
self._stub = MaterialStrengthService_pb2_grpc.MaterialStrengthServiceStub(client.channel)
|
|
41
|
+
self.MohrCoulomb = MohrCoulomb(client, materialId, jointId)
|
|
42
|
+
self.BartonBandis = BartonBandis(client, materialId, jointId)
|
|
43
|
+
self.SimpleHyperbolic = SimpleHyperbolic(client, materialId, jointId)
|
|
44
|
+
|
|
45
|
+
def getSlipCriterion(self) -> MaterialJointSlipCriterionType:
|
|
46
|
+
return self._propertyAccessor.getEnumValue("SlipCriterionType", MaterialJointSlipCriterionType)
|
|
47
|
+
def setSlipCriterion(self, StiffnessType : MaterialJointSlipCriterionType):
|
|
48
|
+
self._propertyAccessor.setEnumValue("SlipCriterionType", StiffnessType.value)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from rs3._client import Client
|
|
2
|
+
from rs3._proxyObject import _ProxyObject
|
|
3
|
+
from rs3.properties.material.constitutiveModel.jointOption.MaterialJoint import MaterialJoint
|
|
4
|
+
import rs3.generatedFiles.MaterialJointService_pb2_grpc as MaterialJointService_pb2_grpc
|
|
5
|
+
import rs3.generatedFiles.MaterialJointService_pb2 as MaterialJointService_pb2
|
|
6
|
+
import rs3.generatedFiles.MaterialDataService_pb2_grpc as MaterialDataService_pb2_grpc
|
|
7
|
+
from ._PropertyAccessor import BasePropertyAccessor
|
|
8
|
+
class MaterialJointOptions(_ProxyObject):
|
|
9
|
+
"""
|
|
10
|
+
Define material joint properites.
|
|
11
|
+
|
|
12
|
+
Example:
|
|
13
|
+
See :ref:`joint_control_examples`.
|
|
14
|
+
"""
|
|
15
|
+
def __init__(self, client: Client, id: str):
|
|
16
|
+
super().__init__(client, id)
|
|
17
|
+
self._stub = MaterialJointService_pb2_grpc.MaterialJointServiceStub(client.channel)
|
|
18
|
+
self._materialDataService = MaterialDataService_pb2_grpc.MaterialDataServiceStub(self._client.channel)
|
|
19
|
+
self._propertyAccessor = BasePropertyAccessor(client, self._objectId, self._materialDataService)
|
|
20
|
+
|
|
21
|
+
def getJoint(self, jointIndex: int) -> MaterialJoint:
|
|
22
|
+
"""
|
|
23
|
+
Get joint of the joint material. jointIndex can be 0, 1, and 2.
|
|
24
|
+
"""
|
|
25
|
+
request = MaterialJointService_pb2.GetJointRequest(objectId=self._objectId,jointIndex=jointIndex)
|
|
26
|
+
result : MaterialJointService_pb2.GetJointResponse = self._client.callFunction(self._stub.GetJoint, request)
|
|
27
|
+
return MaterialJoint(self._client, self._objectId, result.jointId)
|
|
28
|
+
|
|
29
|
+
def setNumberOfJoint(self, value: int):
|
|
30
|
+
self._propertyAccessor.setIntProperty("JointsCount", value)
|
|
31
|
+
def getNumberOfJoint(self) -> int:
|
|
32
|
+
return self._propertyAccessor.getIntProperty("JointsCount")
|
|
@@ -0,0 +1,142 @@
|
|
|
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.MaterialJointStageFactorService_pb2_grpc as MaterialJointStageFactorService_pb2_grpc
|
|
8
|
+
class MohrCoulombBase(_ProxyObject, IPropertyGroupAccessors):
|
|
9
|
+
def __init__(self, client: Client, id: str):
|
|
10
|
+
super().__init__(client, id)
|
|
11
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
12
|
+
def getDilationAngle(self) -> float:
|
|
13
|
+
return self._propertyAccessor.getDoubleProperty("DilationAngle")
|
|
14
|
+
def setDilationAngle(self, value: float):
|
|
15
|
+
self._propertyAccessor.setDoubleProperty("DilationAngle", value)
|
|
16
|
+
def getTensileStrength(self) -> float:
|
|
17
|
+
return self._propertyAccessor.getDoubleProperty("tensileStrength")
|
|
18
|
+
def setTensileStrength(self, value: float):
|
|
19
|
+
self._propertyAccessor.setDoubleProperty("tensileStrength", value)
|
|
20
|
+
def getCohesion(self) -> float:
|
|
21
|
+
return self._propertyAccessor.getDoubleProperty("peakCohe")
|
|
22
|
+
def setCohesion(self, value: float):
|
|
23
|
+
self._propertyAccessor.setDoubleProperty("peakCohe", value)
|
|
24
|
+
def getFrictionAngle(self) -> float:
|
|
25
|
+
return self._propertyAccessor.getDoubleProperty("peakFric")
|
|
26
|
+
def setFrictionAngle(self, value: float):
|
|
27
|
+
self._propertyAccessor.setDoubleProperty("peakFric", value)
|
|
28
|
+
def getResidualStrength(self) -> bool:
|
|
29
|
+
return self._propertyAccessor.getBoolValue("resid")
|
|
30
|
+
def setResidualStrength(self, value: bool):
|
|
31
|
+
self._propertyAccessor.setBoolValue("resid", value)
|
|
32
|
+
def getResidualTensileStrength(self) -> float:
|
|
33
|
+
return self._propertyAccessor.getDoubleProperty("residTensile")
|
|
34
|
+
def setResidualTensileStrength(self, value: float):
|
|
35
|
+
self._propertyAccessor.setDoubleProperty("residTensile", value)
|
|
36
|
+
def getResidualFrictionAngle(self) -> float:
|
|
37
|
+
return self._propertyAccessor.getDoubleProperty("residFric")
|
|
38
|
+
def setResidualFrictionAngle(self, value: float):
|
|
39
|
+
self._propertyAccessor.setDoubleProperty("residFric", value)
|
|
40
|
+
def getResidualCohesion(self) -> float:
|
|
41
|
+
return self._propertyAccessor.getDoubleProperty("residCohe")
|
|
42
|
+
def setResidualCohesion(self, value: float):
|
|
43
|
+
self._propertyAccessor.setDoubleProperty("residCohe", value)
|
|
44
|
+
def getProperties(self):
|
|
45
|
+
return {
|
|
46
|
+
"DilationAngle": self.getDilationAngle(),
|
|
47
|
+
"TensileStrength": self.getTensileStrength(),
|
|
48
|
+
"Cohesion": self.getCohesion(),
|
|
49
|
+
"FrictionAngle": self.getFrictionAngle(),
|
|
50
|
+
"ResidualStrength": self.getResidualStrength(),
|
|
51
|
+
"ResidualTensileStrength": self.getResidualTensileStrength(),
|
|
52
|
+
"ResidualFrictionAngle": self.getResidualFrictionAngle(),
|
|
53
|
+
"ResidualCohesion": self.getResidualCohesion(),
|
|
54
|
+
}
|
|
55
|
+
def setProperties(self, DilationAngle: float = None, TensileStrength: float = None, Cohesion: float = None, FrictionAngle: float = None, ResidualStrength: bool = None, ResidualTensileStrength: float = None, ResidualFrictionAngle: float = None, ResidualCohesion: float = None):
|
|
56
|
+
if DilationAngle is not None:
|
|
57
|
+
self.setDilationAngle(DilationAngle)
|
|
58
|
+
if TensileStrength is not None:
|
|
59
|
+
self.setTensileStrength(TensileStrength)
|
|
60
|
+
if Cohesion is not None:
|
|
61
|
+
self.setCohesion(Cohesion)
|
|
62
|
+
if FrictionAngle is not None:
|
|
63
|
+
self.setFrictionAngle(FrictionAngle)
|
|
64
|
+
if ResidualStrength is not None:
|
|
65
|
+
self.setResidualStrength(ResidualStrength)
|
|
66
|
+
if ResidualTensileStrength is not None:
|
|
67
|
+
self.setResidualTensileStrength(ResidualTensileStrength)
|
|
68
|
+
if ResidualFrictionAngle is not None:
|
|
69
|
+
self.setResidualFrictionAngle(ResidualFrictionAngle)
|
|
70
|
+
if ResidualCohesion is not None:
|
|
71
|
+
self.setResidualCohesion(ResidualCohesion)
|
|
72
|
+
class MohrCoulombStageFactorBase(IStageFactorBase):
|
|
73
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
74
|
+
super().__init__(id, stageFactorID, client, MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel))
|
|
75
|
+
def getDilationAngleFactor(self) -> float:
|
|
76
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("DilationAngle")
|
|
77
|
+
def getTensileStrengthFactor(self) -> float:
|
|
78
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_TensileStrength")
|
|
79
|
+
def getCohesionFactor(self) -> float:
|
|
80
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_CohesionPeak")
|
|
81
|
+
def getFrictionAngleFactor(self) -> float:
|
|
82
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_FrictionAnglePeak")
|
|
83
|
+
def getResidualTensileStrengthFactor(self) -> float:
|
|
84
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_TensileStrengthResidual")
|
|
85
|
+
def getResidualFrictionAngleFactor(self) -> float:
|
|
86
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_FrictionAngleResidual")
|
|
87
|
+
def getResidualCohesionFactor(self) -> float:
|
|
88
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("MohrCoulomb_CohesionResidual")
|
|
89
|
+
class MohrCoulombDefinedStageFactorBase(MohrCoulombStageFactorBase):
|
|
90
|
+
def setDilationAngleFactor(self, value: float):
|
|
91
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("DilationAngle", value)
|
|
92
|
+
def setTensileStrengthFactor(self, value: float):
|
|
93
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_TensileStrength", value)
|
|
94
|
+
def setCohesionFactor(self, value: float):
|
|
95
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_CohesionPeak", value)
|
|
96
|
+
def setFrictionAngleFactor(self, value: float):
|
|
97
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_FrictionAnglePeak", value)
|
|
98
|
+
def setResidualTensileStrengthFactor(self, value: float):
|
|
99
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_TensileStrengthResidual", value)
|
|
100
|
+
def setResidualFrictionAngleFactor(self, value: float):
|
|
101
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_FrictionAngleResidual", value)
|
|
102
|
+
def setResidualCohesionFactor(self, value: float):
|
|
103
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("MohrCoulomb_CohesionResidual", value)
|
|
104
|
+
|
|
105
|
+
################ Code below this line will not be overridden ################
|
|
106
|
+
from rs3.properties.material.constitutiveModel.jointOption.PlaneOrientationBase import PlaneOrientationBase
|
|
107
|
+
from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
|
|
108
|
+
from rs3.properties.material.constitutiveModel.jointOption._PropertyAccessor import JointOptionStageFactorPropertyAccessor
|
|
109
|
+
|
|
110
|
+
class MohrCoulombStageFactor(MohrCoulombStageFactorBase):
|
|
111
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
112
|
+
self._client = client
|
|
113
|
+
self._objectId = stageFactorID
|
|
114
|
+
self.parentID = id
|
|
115
|
+
self._materialID = materialId
|
|
116
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
117
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
118
|
+
|
|
119
|
+
class MohrCoulombDefinedStageFactor(MohrCoulombDefinedStageFactorBase):
|
|
120
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
121
|
+
self._client = client
|
|
122
|
+
self._objectId = stageFactorID
|
|
123
|
+
self.parentID = id
|
|
124
|
+
self._materialID = materialId
|
|
125
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
126
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
127
|
+
|
|
128
|
+
class MohrCoulomb(MohrCoulombBase, PlaneOrientationBase):
|
|
129
|
+
"""
|
|
130
|
+
Example:
|
|
131
|
+
See :ref:`joint_control_examples`.
|
|
132
|
+
|
|
133
|
+
"""
|
|
134
|
+
def __init__(self, client: Client, materialId : str, jointId: str):
|
|
135
|
+
PlaneOrientationBase.__init__(self, client, materialId, jointId)
|
|
136
|
+
self._client = client
|
|
137
|
+
self._objectId = jointId
|
|
138
|
+
self._materialID = materialId
|
|
139
|
+
self._propertyAccessor = PropertyAccessor(client, materialId, jointId)
|
|
140
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[MohrCoulombDefinedStageFactor, MohrCoulombStageFactor](jointId, client, MohrCoulombDefinedStageFactor, MohrCoulombStageFactor, True, materialId)
|
|
141
|
+
|
|
142
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from rs3._proxyObject import _ProxyObject
|
|
2
|
+
from rs3._client import Client
|
|
3
|
+
from ._PropertyAccessor import PropertyAccessor
|
|
4
|
+
import rs3.generatedFiles.MaterialJointSetSlipCriterionService_pb2_grpc as MaterialJointSetSlipCriterionService_pb2_grpc
|
|
5
|
+
import rs3.generatedFiles.MaterialJointSetSlipCriterionService_pb2 as MaterialJointSetSlipCriterionService_pb2
|
|
6
|
+
import rs3.generatedFiles.CommonMessages_pb2 as CommonMessages_pb2
|
|
7
|
+
from rs3.properties.PropertyEnums import *
|
|
8
|
+
|
|
9
|
+
class PlaneOrientationBase(_ProxyObject):
|
|
10
|
+
def __init__(self, client: Client, materialId: str, objectId : str):
|
|
11
|
+
super().__init__(client, objectId)
|
|
12
|
+
self._stub = MaterialJointSetSlipCriterionService_pb2_grpc.MaterialJointSetSlipCriterionServiceStub(client.channel)
|
|
13
|
+
self._propertyAccessor = PropertyAccessor(client, materialId, objectId)
|
|
14
|
+
self._materialId = materialId
|
|
15
|
+
|
|
16
|
+
def getPlaneOrientationDefinedBy(self) -> PlaneOrientationType:
|
|
17
|
+
return self._propertyAccessor.getEnumValue("SelectedDirectionType", PlaneOrientationType)
|
|
18
|
+
def setPlaneOrientationDefinedBy(self, planarDirectionType: PlaneOrientationType):
|
|
19
|
+
return self._propertyAccessor.setEnumValue("SelectedDirectionType", planarDirectionType.value)
|
|
20
|
+
|
|
21
|
+
def getVector(self) -> tuple[float, float, float]:
|
|
22
|
+
"""
|
|
23
|
+
Returns:
|
|
24
|
+
tuple[float, float, float]:
|
|
25
|
+
A 3D vector `(x, y, z)` representing the direction in model coordinates.
|
|
26
|
+
"""
|
|
27
|
+
request = MaterialJointSetSlipCriterionService_pb2.GetJointOptionVectorPropertyRequest(materialId=self._materialId, objectId=self._objectId)
|
|
28
|
+
response : MaterialJointSetSlipCriterionService_pb2.GetJointOptionVectorPropertyResponse = self._client.callFunction(self._stub.GetJointOptionVectorProperty, request)
|
|
29
|
+
return (response.value.x, response.value.y, response.value.z)
|
|
30
|
+
def setVector(self, value : tuple[float, float, float]):
|
|
31
|
+
"""
|
|
32
|
+
Args:
|
|
33
|
+
NormalDirection (tuple[float, float, float]):
|
|
34
|
+
A 3D vector `(x, y, z)` representing the normal direction in model coordinates.
|
|
35
|
+
"""
|
|
36
|
+
vector = CommonMessages_pb2.Vector3D(x=value[0], y=value[1], z=value[2])
|
|
37
|
+
request = MaterialJointSetSlipCriterionService_pb2.SetJointOptionVectorPropertyRequest(materialId=self._materialId, objectId=self._objectId, value=vector)
|
|
38
|
+
self._client.callFunction(self._stub.SetJointOptionVectorProperty, request)
|
|
39
|
+
|
|
40
|
+
def getTrendPlunge(self) -> tuple[float, float]:
|
|
41
|
+
"""
|
|
42
|
+
Retrieve the orientation in trend-plunge format.
|
|
43
|
+
|
|
44
|
+
Returns:
|
|
45
|
+
tuple[float, float]:
|
|
46
|
+
- trend (float): The compass direction of the horizontal projection of the line (in degrees).
|
|
47
|
+
- plunge (float): The angle between the line and the horizontal plane (in degrees).
|
|
48
|
+
"""
|
|
49
|
+
request = MaterialJointSetSlipCriterionService_pb2.GetJointOptionTrendPlungePropertyRequest(materialId=self._materialId, objectId=self._objectId)
|
|
50
|
+
response : MaterialJointSetSlipCriterionService_pb2.GetJointOptionTrendPlungePropertyResponse = self._client.callFunction(self._stub.GetJointOptionTrendPlungeProperty, request)
|
|
51
|
+
return (response.trend, response.plunge)
|
|
52
|
+
def setTrendPlunge(self, trend : float, plunge : float):
|
|
53
|
+
"""
|
|
54
|
+
Set the orientation in trend-plunge format.
|
|
55
|
+
|
|
56
|
+
Args:
|
|
57
|
+
trend (float):
|
|
58
|
+
The compass direction of the horizontal projection of the line (in degrees).
|
|
59
|
+
plunge (float):
|
|
60
|
+
The angle between the line and the horizontal plane (in degrees).
|
|
61
|
+
"""
|
|
62
|
+
request = MaterialJointSetSlipCriterionService_pb2.SetJointOptionTrendPlungePropertyRequest(materialId=self._materialId, objectId=self._objectId, trend=trend, plunge=plunge)
|
|
63
|
+
self._client.callFunction(self._stub.SetJointOptionTrendPlungeProperty, request)
|
|
64
|
+
|
|
65
|
+
def getDipDipDirection(self) -> tuple[float, float]:
|
|
66
|
+
"""
|
|
67
|
+
Retrieve the orientation in dip-dip direction format.
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
tuple[float, float]:
|
|
71
|
+
- dip (float): The angle between the plane and the horizontal plane (in degrees).
|
|
72
|
+
- dipDirection (float): The compass direction in which the plane is dipping (in degrees).
|
|
73
|
+
|
|
74
|
+
"""
|
|
75
|
+
request = MaterialJointSetSlipCriterionService_pb2.GetJointOptionDipDipDirectionPropertyRequest(materialId=self._materialId, objectId=self._objectId)
|
|
76
|
+
response : MaterialJointSetSlipCriterionService_pb2.GetJointOptionDipDipDirectionPropertyResponse = self._client.callFunction(self._stub.GetJointOptionDipDipDirectionProperty, request)
|
|
77
|
+
return (response.dip, response.dipDirection)
|
|
78
|
+
def setDipDipDirection(self, dip : float, dipDirection : float):
|
|
79
|
+
"""
|
|
80
|
+
Set the orientation in dip-dip direction format.
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
dip (float):
|
|
84
|
+
The angle between the plane and the horizontal plane (in degrees).
|
|
85
|
+
dipDirection (float):
|
|
86
|
+
The compass direction in which the plane is dipping (in degrees).
|
|
87
|
+
|
|
88
|
+
"""
|
|
89
|
+
request = MaterialJointSetSlipCriterionService_pb2.SetJointOptionDipDipDirectionPropertyRequest(materialId=self._materialId, objectId=self._objectId, dip=dip, dipDirection=dipDirection)
|
|
90
|
+
self._client.callFunction(self._stub.SetJointOptionDipDipDirectionProperty, request)
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
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.MaterialJointStageFactorService_pb2_grpc as MaterialJointStageFactorService_pb2_grpc
|
|
8
|
+
class SimpleHyperbolicBase(_ProxyObject, IPropertyGroupAccessors):
|
|
9
|
+
def __init__(self, client: Client, id: str):
|
|
10
|
+
super().__init__(client, id)
|
|
11
|
+
self._propertyAccessor = PropertyAccessor(client, id)
|
|
12
|
+
def getDilationAngle(self) -> float:
|
|
13
|
+
return self._propertyAccessor.getDoubleProperty("DilationAngle")
|
|
14
|
+
def setDilationAngle(self, value: float):
|
|
15
|
+
self._propertyAccessor.setDoubleProperty("DilationAngle", value)
|
|
16
|
+
def getAdhesion(self) -> float:
|
|
17
|
+
return self._propertyAccessor.getDoubleProperty("peakAdhesion")
|
|
18
|
+
def setAdhesion(self, value: float):
|
|
19
|
+
self._propertyAccessor.setDoubleProperty("peakAdhesion", value)
|
|
20
|
+
def getFrictionAngle(self) -> float:
|
|
21
|
+
return self._propertyAccessor.getDoubleProperty("peakFric")
|
|
22
|
+
def setFrictionAngle(self, value: float):
|
|
23
|
+
self._propertyAccessor.setDoubleProperty("peakFric", value)
|
|
24
|
+
def getResidualAdhesion(self) -> float:
|
|
25
|
+
return self._propertyAccessor.getDoubleProperty("residAdhesion")
|
|
26
|
+
def setResidualAdhesion(self, value: float):
|
|
27
|
+
self._propertyAccessor.setDoubleProperty("residAdhesion", value)
|
|
28
|
+
def getResidualFrictionAngle(self) -> float:
|
|
29
|
+
return self._propertyAccessor.getDoubleProperty("residFric")
|
|
30
|
+
def setResidualFrictionAngle(self, value: float):
|
|
31
|
+
self._propertyAccessor.setDoubleProperty("residFric", value)
|
|
32
|
+
def getProperties(self):
|
|
33
|
+
return {
|
|
34
|
+
"DilationAngle": self.getDilationAngle(),
|
|
35
|
+
"Adhesion": self.getAdhesion(),
|
|
36
|
+
"FrictionAngle": self.getFrictionAngle(),
|
|
37
|
+
"ResidualAdhesion": self.getResidualAdhesion(),
|
|
38
|
+
"ResidualFrictionAngle": self.getResidualFrictionAngle(),
|
|
39
|
+
}
|
|
40
|
+
def setProperties(self, DilationAngle: float = None, Adhesion: float = None, FrictionAngle: float = None, ResidualAdhesion: float = None, ResidualFrictionAngle: float = None):
|
|
41
|
+
if DilationAngle is not None:
|
|
42
|
+
self.setDilationAngle(DilationAngle)
|
|
43
|
+
if Adhesion is not None:
|
|
44
|
+
self.setAdhesion(Adhesion)
|
|
45
|
+
if FrictionAngle is not None:
|
|
46
|
+
self.setFrictionAngle(FrictionAngle)
|
|
47
|
+
if ResidualAdhesion is not None:
|
|
48
|
+
self.setResidualAdhesion(ResidualAdhesion)
|
|
49
|
+
if ResidualFrictionAngle is not None:
|
|
50
|
+
self.setResidualFrictionAngle(ResidualFrictionAngle)
|
|
51
|
+
class SimpleHyperbolicStageFactorBase(IStageFactorBase):
|
|
52
|
+
def __init__(self, id : str, stageFactorID : str, client : Client):
|
|
53
|
+
super().__init__(id, stageFactorID, client, MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel))
|
|
54
|
+
def getDilationRatioFactor(self) -> float:
|
|
55
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("SimpleHyperbolic_DilationRatio")
|
|
56
|
+
def getAdhesionFactor(self) -> float:
|
|
57
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("SimpleHyperbolic_AdhesionPeak")
|
|
58
|
+
def getFrictionAngleFactor(self) -> float:
|
|
59
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("SimpleHyperbolic_FrictionAnglePeak")
|
|
60
|
+
def getResidualAdhesionFactor(self) -> float:
|
|
61
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("SimpleHyperbolic_AdhesionResidual")
|
|
62
|
+
def getResidualFrictionAngleFactor(self) -> float:
|
|
63
|
+
return self._stageFactorPropertyAccessor.getDoubleProperty("SimpleHyperbolic_FrictionAngleResidual")
|
|
64
|
+
class SimpleHyperbolicDefinedStageFactorBase(SimpleHyperbolicStageFactorBase):
|
|
65
|
+
def setDilationRatioFactor(self, value: float):
|
|
66
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("SimpleHyperbolic_DilationRatio", value)
|
|
67
|
+
def setAdhesionFactor(self, value: float):
|
|
68
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("SimpleHyperbolic_AdhesionPeak", value)
|
|
69
|
+
def setFrictionAngleFactor(self, value: float):
|
|
70
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("SimpleHyperbolic_FrictionAnglePeak", value)
|
|
71
|
+
def setResidualAdhesionFactor(self, value: float):
|
|
72
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("SimpleHyperbolic_AdhesionResidual", value)
|
|
73
|
+
def setResidualFrictionAngleFactor(self, value: float):
|
|
74
|
+
self._stageFactorPropertyAccessor.setDoubleProperty("SimpleHyperbolic_FrictionAngleResidual", value)
|
|
75
|
+
|
|
76
|
+
################ Code below this line will not be overridden ################
|
|
77
|
+
from rs3.properties.material.constitutiveModel.jointOption.PlaneOrientationBase import PlaneOrientationBase
|
|
78
|
+
from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
|
|
79
|
+
from rs3.properties.material.constitutiveModel.jointOption._PropertyAccessor import JointOptionStageFactorPropertyAccessor
|
|
80
|
+
|
|
81
|
+
class SimpleHyperbolicStageFactor(SimpleHyperbolicStageFactorBase):
|
|
82
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
83
|
+
self._client = client
|
|
84
|
+
self._objectId = stageFactorID
|
|
85
|
+
self.parentID = id
|
|
86
|
+
self._materialID = materialId
|
|
87
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
88
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
89
|
+
|
|
90
|
+
class SimpleHyperbolicDefinedStageFactor(SimpleHyperbolicDefinedStageFactorBase):
|
|
91
|
+
def __init__(self, id : str, stageFactorID : str, client : Client, materialId : str):
|
|
92
|
+
self._client = client
|
|
93
|
+
self._objectId = stageFactorID
|
|
94
|
+
self.parentID = id
|
|
95
|
+
self._materialID = materialId
|
|
96
|
+
self._stub = MaterialJointStageFactorService_pb2_grpc.MaterialJointStageFactorServiceStub(client.channel)
|
|
97
|
+
self._stageFactorPropertyAccessor = JointOptionStageFactorPropertyAccessor(id, stageFactorID, client, self._stub, self._materialID)
|
|
98
|
+
|
|
99
|
+
class SimpleHyperbolic(SimpleHyperbolicBase, PlaneOrientationBase):
|
|
100
|
+
"""
|
|
101
|
+
Example:
|
|
102
|
+
See :ref:`joint_control_examples`.
|
|
103
|
+
|
|
104
|
+
"""
|
|
105
|
+
def __init__(self, client: Client, materialId : str, jointId: str):
|
|
106
|
+
PlaneOrientationBase.__init__(self, client, materialId, jointId)
|
|
107
|
+
self._client = client
|
|
108
|
+
self._objectId = jointId
|
|
109
|
+
self._materialId = materialId
|
|
110
|
+
self._propertyAccessor = PropertyAccessor(client, materialId, jointId)
|
|
111
|
+
self.StageFactorInterface = AbsoluteStageFactorInterface[SimpleHyperbolicDefinedStageFactor, SimpleHyperbolicStageFactor](jointId, client, SimpleHyperbolicDefinedStageFactor, SimpleHyperbolicStageFactor, True, materialId)
|
|
112
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from rs3.properties._PropertyAccessor import PropertyAccessor as BasePropertyAccessor
|
|
2
|
+
import rs3.generatedFiles.CommonMessages_pb2 as CommonMessages_pb2
|
|
3
|
+
import rs3.generatedFiles.MaterialJointSetSlipCriterionService_pb2_grpc as MaterialJointSetSlipCriterionService_pb2_grpc
|
|
4
|
+
import rs3.generatedFiles.MaterialJointSetSlipCriterionService_pb2 as MaterialJointSetSlipCriterionService_pb2
|
|
5
|
+
import rs3.generatedFiles.MaterialJointStageFactorService_pb2_grpc as MaterialJointStageFactorService_pb2_grpc
|
|
6
|
+
import rs3.generatedFiles.MaterialJointStageFactorService_pb2 as MaterialJointStageFactorService_pb2
|
|
7
|
+
import rs3.generatedFiles.MaterialJointService_pb2_grpc as MaterialJointService_pb2_grpc
|
|
8
|
+
import rs3.generatedFiles.MaterialJointService_pb2 as MaterialJointService_pb2
|
|
9
|
+
from rs3._client import Client
|
|
10
|
+
from rs3.properties.PropertyEnums import *
|
|
11
|
+
class PropertyAccessor(BasePropertyAccessor):
|
|
12
|
+
def __init__(self, client : Client, materialId : str, objectId : str):
|
|
13
|
+
self._stub = MaterialJointSetSlipCriterionService_pb2_grpc.MaterialJointSetSlipCriterionServiceStub(client.channel)
|
|
14
|
+
super().__init__(client, objectId, self._stub)
|
|
15
|
+
self._materialId = materialId
|
|
16
|
+
|
|
17
|
+
def _getProperty(self, propertyName : str) -> CommonMessages_pb2.PropertyValue:
|
|
18
|
+
request = MaterialJointSetSlipCriterionService_pb2.GetJointPropertyRequest(materialId=self._materialId, objectId=self.objectId, propertyName=propertyName)
|
|
19
|
+
response : MaterialJointSetSlipCriterionService_pb2.GetJointPropertyResponse = self._client.callFunction(self._stub.GetJointProperty, request)
|
|
20
|
+
return response.value
|
|
21
|
+
|
|
22
|
+
def _setProperty(self, propertyName : str, value : CommonMessages_pb2.PropertyValue):
|
|
23
|
+
request = MaterialJointSetSlipCriterionService_pb2.SetJointPropertyRequest(materialId=self._materialId, objectId=self.objectId,
|
|
24
|
+
propertyName=propertyName,
|
|
25
|
+
value=value)
|
|
26
|
+
self._client.callFunction(self._stub.SetJointProperty, request)
|
|
27
|
+
|
|
28
|
+
class MaterialJointPropertyAccessor(BasePropertyAccessor):
|
|
29
|
+
def __init__(self, client : Client, materialId : str, objectId : str):
|
|
30
|
+
self._stub = MaterialJointService_pb2_grpc.MaterialJointServiceStub(client.channel)
|
|
31
|
+
super().__init__(client, objectId, self._stub)
|
|
32
|
+
self._materialId = materialId
|
|
33
|
+
|
|
34
|
+
def _getProperty(self, propertyName : str) -> CommonMessages_pb2.PropertyValue:
|
|
35
|
+
request = MaterialJointService_pb2.GetJointPropertyRequest(materialId=self._materialId, objectId=self.objectId, propertyName=propertyName)
|
|
36
|
+
response : MaterialJointService_pb2.GetJointPropertyResponse = self._client.callFunction(self._stub.GetJointProperty, request)
|
|
37
|
+
return response.value
|
|
38
|
+
|
|
39
|
+
def _setProperty(self, propertyName : str, value : CommonMessages_pb2.PropertyValue):
|
|
40
|
+
request = MaterialJointService_pb2.SetJointPropertyRequest(materialId=self._materialId, objectId=self.objectId,
|
|
41
|
+
propertyName=propertyName,
|
|
42
|
+
value=value)
|
|
43
|
+
self._client.callFunction(self._stub.SetJointProperty, request)
|
|
44
|
+
|
|
45
|
+
class JointOptionStageFactorPropertyAccessor(PropertyAccessor):
|
|
46
|
+
def __init__(self, parentObjectId: str, stageFactorId : str, client: Client, stub, materialID: str):
|
|
47
|
+
super().__init__(client, materialID, parentObjectId)
|
|
48
|
+
self._stub = stub
|
|
49
|
+
self.stageFactorId = stageFactorId
|
|
50
|
+
self._materialId = materialID
|
|
51
|
+
|
|
52
|
+
def _getProperty(self, propertyName: str) -> CommonMessages_pb2.PropertyValue:
|
|
53
|
+
request = MaterialJointStageFactorService_pb2.GetMaterialJointStageFactorPropertyRequest(materialId=self._materialId, jointId=self.objectId, stageFactorId=self.stageFactorId, propertyName=propertyName)
|
|
54
|
+
response : MaterialJointStageFactorService_pb2.GetMaterialJointStageFactorPropertyResponse = self._client.callFunction(self._stub.GetStageFactorProperty, request)
|
|
55
|
+
return response.value
|
|
56
|
+
|
|
57
|
+
def _setProperty(self, propertyName: str, value: CommonMessages_pb2.PropertyValue):
|
|
58
|
+
request = MaterialJointStageFactorService_pb2.SetMaterialJointStageFactorPropertyRequest(materialId=self._materialId, jointId=self.objectId, stageFactorId=self.stageFactorId, propertyName=propertyName, value=value)
|
|
59
|
+
self._client.callFunction(self._stub.SetStageFactorProperty, request)
|
|
60
|
+
|
|
61
|
+
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from rs3.properties.PropertyEnums import *
|
|
2
|
+
class BaseStiffness():
|
|
3
|
+
def getUseUnloadingCondition(self) -> bool:
|
|
4
|
+
return self._basePropertyAccessor.getBoolValue("UseUnloading")
|
|
5
|
+
def setUseUnloadingCondition(self, value: bool):
|
|
6
|
+
self._basePropertyAccessor.setBoolValue("UseUnloading", value)
|
|
7
|
+
|
|
8
|
+
def getUnloadingCondition(self) -> UnloadingConditions:
|
|
9
|
+
return self._basePropertyAccessor.getEnumValue("UnloadingStiffness", UnloadingConditions)
|
|
10
|
+
def setUnloadingCondition(self, UnloadingCondition : UnloadingConditions):
|
|
11
|
+
self._basePropertyAccessor.setEnumValue("UnloadingStiffness", UnloadingCondition.value)
|