RS2Scripting 11.24.2__tar.gz → 11.26.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rs2scripting-11.24.2/src/RS2Scripting.egg-info → rs2scripting-11.26.0}/PKG-INFO +12 -16
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/README.md +10 -14
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/pyproject.toml +1 -1
- {rs2scripting-11.24.2 → rs2scripting-11.26.0/src/RS2Scripting.egg-info}/PKG-INFO +12 -16
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/SOURCES.txt +2 -0
- rs2scripting-11.26.0/src/rs2/BaseModel.py +83 -0
- rs2scripting-11.26.0/src/rs2/Units.py +35 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/_common/Client.py +1 -1
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterEnums.py +5 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterGraphEnums.py +11 -1
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/InterpreterModel.py +3 -4
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/RS2Interpreter.py +75 -77
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/HistoryQueryResults.py +12 -8
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/MaterialQueryResults.py +16 -11
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/MeshResults.py +7 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/TimeQueryResults.py +21 -16
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/BoltResult.py +16 -12
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/CompositeResult.py +16 -12
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/JointResult.py +10 -9
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/LinerResult.py +10 -7
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/Model.py +41 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/RS2Modeler.py +78 -80
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +2 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/AbsoluteStageFactorInterface.py +2 -0
- rs2scripting-11.26.0/src/rs2/modeler/properties/HydroDistributionFunction.py +18 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/MaterialJoint.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/PropertyEnums.py +17 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/RelativeStageFactorInterface.py +2 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Bolt.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/BartonBandis.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/BartonBandisMaterial.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/DisplacementDependent.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/HyperbolicSoftening.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/Joint.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MaterialDependent.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MohrCoulomb.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/MohrCoulombMaterial.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/NoneSlip.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/CableTruss.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/Geosynthetic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/Liner.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/ReinforcedConcrete.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/StandardBeam.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/InitialConditions.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/MaterialProperty.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/StageFactors.py +4 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/Datum.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/Hydraulic.py +6 -3
- rs2scripting-11.26.0/src/rs2/modeler/properties/material/hydraulic/HydroDistribution.py +165 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Isotropic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Orthotropic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Stiffness.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BarcelonaBasic.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BartonBandisStrength.py +11 -11
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/CamClay.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DiscreteFunction.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DruckerPrager.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HoekBrown.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ModifiedCamClay.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/MohrCoulombStrength.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +6 -5
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SofteningHardeningModel.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Strength.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/Thermal.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/ForceDisplacement.py +3 -2
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Pile.py +3 -3
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/utilities/ApplicationManager.py +10 -4
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/utilities/ColorPicker.py +10 -4
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testExampleCode.py +3 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testSaveAs.py +45 -43
- rs2scripting-11.24.2/src/rs2/BaseModel.py +0 -46
- rs2scripting-11.24.2/src/rs2/Units.py +0 -15
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/License.txt +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/setup.cfg +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/dependency_links.txt +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/requires.txt +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/RS2Scripting.egg-info/top_level.txt +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/_common/ProxyObject.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/_common/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/_common/documentProxy.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/_UtilityResult.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/supportResults/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/CompositeProperty.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/DiscreteFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/MaterialJointOptions.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/ShearNormalFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/SnowdenAnisotropicFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/StructuralInterface.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/UserDefinedWaterMode.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/EndAnchored.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/FullyBonded.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/PlainStrandCable.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Swellex.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/Tieback.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/bolt/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/joint/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/liner/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/BaseDatum.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/PeakResidualDatum.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/SimpleDatum.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/datum/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/hydraulic/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ChSoil.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Custom.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/CySoil.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/DoubleYield.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/HardeningSoil.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Norsand.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Pm4Sand.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/Pm4Silt.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SoftSoil.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/SwellingRock.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/ViscoElastic.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/stiffness/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/AnisotropicLinear.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ChSoilStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/CySoilStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/DoubleYieldStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Finn.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HardeningSoilStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Hyperbolic.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/NorSandStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PM4SandStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PM4SiltStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/PowerCurve.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/Shansep.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/ShearNormalFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SoftSoilStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/SwellingRockStrength.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/VerticalStressRatio.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/strength/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Derives.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Johansen.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/Tabular.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/conductivity/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/heatcapacity/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Beam.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Elastic.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/Linear.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MaterialDependentPile.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MohrCoulombPile.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/MultiLinear.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/pile/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/modeler/properties/propertyProxy.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/utilities/__init__.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testFileOpenWarning.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testInterpreterMultipleFileCloseProgram.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testInterpreterSaveAs.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testInterpreterSingleFileCloseProgram.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testMaterialJointOptions.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testModelerMultipleFileCloseProgram.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testModelerSingleFileCloseProgram.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testOpenFileNoResults.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testShearNormalFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testSnowdenAnisotropicFunction.py +0 -0
- {rs2scripting-11.24.2 → rs2scripting-11.26.0}/tests/testStiffnessYoungModulusE1EZFactor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.26.0
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -102,23 +102,19 @@ To run a sub-folder of tests, navigate to the 'tests' folder, and run:
|
|
|
102
102
|
## Documentation
|
|
103
103
|
The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
104
104
|
1. Create python a virtual environment. Navigate to the root directory of your workspace and run the commands below:
|
|
105
|
-
```python -m venv
|
|
106
|
-
```
|
|
105
|
+
```python -m venv myenv```
|
|
106
|
+
```myenv\Scripts\activate```
|
|
107
107
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
108
|
-
3.
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
4. Install a LaTeX distribution. MiKTeX Reccomended: https://miktex.org/download
|
|
108
|
+
3. Install the documentation requirement packages.
|
|
109
|
+
```pip install -r docs/requirements.txt```
|
|
110
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
112
111
|
5. To generate the documentation run the following:
|
|
113
112
|
```python generateAndBuildDocumentation.py```
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
8. Click the play button to generate the documentation file.
|
|
120
|
-
Note: The first time you generate documentation using TeXworks, a package installation window will appear indicating that numerous packages could not be found. Deselect the "Always show this dialog" checkbox and click the install button.
|
|
121
|
-
9. The Documentation in PDF format will be located here: ```RS2 Python Client Library\docs/_build/pdf/rs2scriptingclientlibrary.pdf```
|
|
113
|
+
|
|
114
|
+
"examples.rst" and "index.rst" files are manually written and should be manually modified. "generateAndBuildDocumentation.py" will not overwrite them.
|
|
115
|
+
|
|
116
|
+
Rocscience logo is saved under _static folder.
|
|
117
|
+
|
|
122
118
|
|
|
123
119
|
### Adding To Documentation
|
|
124
120
|
The following steps can be taken to add a new proxy object to the autogenerated documentation:
|
|
@@ -85,23 +85,19 @@ To run a sub-folder of tests, navigate to the 'tests' folder, and run:
|
|
|
85
85
|
## Documentation
|
|
86
86
|
The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
87
87
|
1. Create python a virtual environment. Navigate to the root directory of your workspace and run the commands below:
|
|
88
|
-
```python -m venv
|
|
89
|
-
```
|
|
88
|
+
```python -m venv myenv```
|
|
89
|
+
```myenv\Scripts\activate```
|
|
90
90
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
91
|
-
3.
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
4. Install a LaTeX distribution. MiKTeX Reccomended: https://miktex.org/download
|
|
91
|
+
3. Install the documentation requirement packages.
|
|
92
|
+
```pip install -r docs/requirements.txt```
|
|
93
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
95
94
|
5. To generate the documentation run the following:
|
|
96
95
|
```python generateAndBuildDocumentation.py```
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
8. Click the play button to generate the documentation file.
|
|
103
|
-
Note: The first time you generate documentation using TeXworks, a package installation window will appear indicating that numerous packages could not be found. Deselect the "Always show this dialog" checkbox and click the install button.
|
|
104
|
-
9. The Documentation in PDF format will be located here: ```RS2 Python Client Library\docs/_build/pdf/rs2scriptingclientlibrary.pdf```
|
|
96
|
+
|
|
97
|
+
"examples.rst" and "index.rst" files are manually written and should be manually modified. "generateAndBuildDocumentation.py" will not overwrite them.
|
|
98
|
+
|
|
99
|
+
Rocscience logo is saved under _static folder.
|
|
100
|
+
|
|
105
101
|
|
|
106
102
|
### Adding To Documentation
|
|
107
103
|
The following steps can be taken to add a new proxy object to the autogenerated documentation:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.26.0
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -102,23 +102,19 @@ To run a sub-folder of tests, navigate to the 'tests' folder, and run:
|
|
|
102
102
|
## Documentation
|
|
103
103
|
The following steps can be taken to regenerate the RS2 Scripting Documentation:
|
|
104
104
|
1. Create python a virtual environment. Navigate to the root directory of your workspace and run the commands below:
|
|
105
|
-
```python -m venv
|
|
106
|
-
```
|
|
105
|
+
```python -m venv myenv```
|
|
106
|
+
```myenv\Scripts\activate```
|
|
107
107
|
2. Rebuild the RS2 library in your virtual environment by following the [Build](#build) section.
|
|
108
|
-
3.
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
4. Install a LaTeX distribution. MiKTeX Reccomended: https://miktex.org/download
|
|
108
|
+
3. Install the documentation requirement packages.
|
|
109
|
+
```pip install -r docs/requirements.txt```
|
|
110
|
+
4. Run .\docs\example_code\runAllExamples.bat file in the folder to update example results. This will run the examples using the version of RS2 you have installed on your machine.
|
|
112
111
|
5. To generate the documentation run the following:
|
|
113
112
|
```python generateAndBuildDocumentation.py```
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
8. Click the play button to generate the documentation file.
|
|
120
|
-
Note: The first time you generate documentation using TeXworks, a package installation window will appear indicating that numerous packages could not be found. Deselect the "Always show this dialog" checkbox and click the install button.
|
|
121
|
-
9. The Documentation in PDF format will be located here: ```RS2 Python Client Library\docs/_build/pdf/rs2scriptingclientlibrary.pdf```
|
|
113
|
+
|
|
114
|
+
"examples.rst" and "index.rst" files are manually written and should be manually modified. "generateAndBuildDocumentation.py" will not overwrite them.
|
|
115
|
+
|
|
116
|
+
Rocscience logo is saved under _static folder.
|
|
117
|
+
|
|
122
118
|
|
|
123
119
|
### Adding To Documentation
|
|
124
120
|
The following steps can be taken to add a new proxy object to the autogenerated documentation:
|
|
@@ -36,6 +36,7 @@ src/rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py
|
|
|
36
36
|
src/rs2/modeler/properties/AbsoluteStageFactorInterface.py
|
|
37
37
|
src/rs2/modeler/properties/CompositeProperty.py
|
|
38
38
|
src/rs2/modeler/properties/DiscreteFunction.py
|
|
39
|
+
src/rs2/modeler/properties/HydroDistributionFunction.py
|
|
39
40
|
src/rs2/modeler/properties/MaterialJoint.py
|
|
40
41
|
src/rs2/modeler/properties/MaterialJointOptions.py
|
|
41
42
|
src/rs2/modeler/properties/PropertyEnums.py
|
|
@@ -81,6 +82,7 @@ src/rs2/modeler/properties/material/datum/PeakResidualDatum.py
|
|
|
81
82
|
src/rs2/modeler/properties/material/datum/SimpleDatum.py
|
|
82
83
|
src/rs2/modeler/properties/material/datum/__init__.py
|
|
83
84
|
src/rs2/modeler/properties/material/hydraulic/Hydraulic.py
|
|
85
|
+
src/rs2/modeler/properties/material/hydraulic/HydroDistribution.py
|
|
84
86
|
src/rs2/modeler/properties/material/hydraulic/StaticGroundwater.py
|
|
85
87
|
src/rs2/modeler/properties/material/hydraulic/__init__.py
|
|
86
88
|
src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from rs2._common.ProxyObject import ProxyObject
|
|
2
|
+
from rs2._common.documentProxy import DocumentProxy
|
|
3
|
+
from rs2.Units import Units
|
|
4
|
+
class BaseModel(ProxyObject):
|
|
5
|
+
|
|
6
|
+
def __init__(self, client, ID):
|
|
7
|
+
super().__init__(client, ID)
|
|
8
|
+
self._documentProxy = self._getDocument()
|
|
9
|
+
|
|
10
|
+
def _getDocument(self):
|
|
11
|
+
documentObjectID = self._callFunction('getDocument', [], keepReturnValueReference=True)
|
|
12
|
+
return DocumentProxy(self._client, documentObjectID)
|
|
13
|
+
|
|
14
|
+
def _enforceFeaFezEnding(self, path: str):
|
|
15
|
+
if not (path.endswith('.fea') or path.endswith('.fez')):
|
|
16
|
+
raise ValueError('Path must end with .fea or .fez')
|
|
17
|
+
|
|
18
|
+
def close(self):
|
|
19
|
+
'''
|
|
20
|
+
Closes the model
|
|
21
|
+
|
|
22
|
+
Examples:
|
|
23
|
+
|
|
24
|
+
.. code::
|
|
25
|
+
|
|
26
|
+
model.close()
|
|
27
|
+
|
|
28
|
+
See a full example in :ref:`Model Example`.
|
|
29
|
+
|
|
30
|
+
'''
|
|
31
|
+
return self._callFunction('close', [])
|
|
32
|
+
|
|
33
|
+
def save(self):
|
|
34
|
+
'''
|
|
35
|
+
Saves the model
|
|
36
|
+
|
|
37
|
+
Examples:
|
|
38
|
+
|
|
39
|
+
.. code::
|
|
40
|
+
|
|
41
|
+
model.save()
|
|
42
|
+
|
|
43
|
+
See a full example in :ref:`Model Example`.
|
|
44
|
+
|
|
45
|
+
'''
|
|
46
|
+
return self._callFunction('save', [])
|
|
47
|
+
|
|
48
|
+
def getUnits(self):
|
|
49
|
+
'''
|
|
50
|
+
|
|
51
|
+
Get Solid, Hydro and Thermal units for your model from RS2Modeler or RS2Interpreter.
|
|
52
|
+
|
|
53
|
+
See Also:
|
|
54
|
+
Each of solid units, hydro units and thermal units of your model can be accessed through `rs2.Units <rs2.Units.html>`_.
|
|
55
|
+
|
|
56
|
+
Examples:
|
|
57
|
+
|
|
58
|
+
.. code-block:: python
|
|
59
|
+
|
|
60
|
+
modeler = RS2Modeler()
|
|
61
|
+
model = modeler.openFile(rf"{current_dir}\example_models\SupportStructuralResults.fez")
|
|
62
|
+
# Get Solid, Hydro and Thermal units of your model
|
|
63
|
+
modelerUnits = model.getUnits()
|
|
64
|
+
print("\\nModeler Units")
|
|
65
|
+
print("\\nSolid Units :")
|
|
66
|
+
# Get solid units
|
|
67
|
+
pprint(modelerUnits.solid_units)
|
|
68
|
+
print("\\nHydro Units :")
|
|
69
|
+
# Get hydro units
|
|
70
|
+
pprint(modelerUnits.hydro_units)
|
|
71
|
+
print("\\nThermal Units :")
|
|
72
|
+
# Get thermal units
|
|
73
|
+
pprint(modelerUnits.thermal_units)
|
|
74
|
+
|
|
75
|
+
See a full example in :ref:`Get Model Units Example`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
'''
|
|
79
|
+
NUM_UNITS = 3
|
|
80
|
+
data = self._callFunction('getUnits', [])
|
|
81
|
+
if (len (data) !=NUM_UNITS) :
|
|
82
|
+
assert False, "Expected 3 units, got " + str(len(data))
|
|
83
|
+
return Units(*data)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
class Units:
|
|
3
|
+
"""
|
|
4
|
+
Attributes:
|
|
5
|
+
solid_units (list[tuple[str]]): List of all solid units for your model.
|
|
6
|
+
hydro_units (list[tuple[str]]): List of all hydraulic units for your model.
|
|
7
|
+
thermal_units (list[tuple[str]]): List of all thermal units for your model.
|
|
8
|
+
|
|
9
|
+
Examples:
|
|
10
|
+
|
|
11
|
+
.. code-block:: python
|
|
12
|
+
|
|
13
|
+
modeler = RS2Modeler()
|
|
14
|
+
model = modeler.openFile(rf"{current_dir}\example_models\SupportStructuralResults.fez")
|
|
15
|
+
# Get Solid, Hydro and Thermal units of your model
|
|
16
|
+
modelerUnits = model.getUnits()
|
|
17
|
+
print("\\nModeler Units")
|
|
18
|
+
print("\\nSolid Units :")
|
|
19
|
+
# Get solid units
|
|
20
|
+
pprint(modelerUnits.solid_units)
|
|
21
|
+
print("\\nHydro Units :")
|
|
22
|
+
# Get hydro units
|
|
23
|
+
pprint(modelerUnits.hydro_units)
|
|
24
|
+
print("\\nThermal Units :")
|
|
25
|
+
# Get thermal units
|
|
26
|
+
pprint(modelerUnits.thermal_units)
|
|
27
|
+
|
|
28
|
+
See a full example in :ref:`Get Model Units Example`.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
def __init__(self, solid_units=None, hydro_units=None, thermal_units=None):
|
|
33
|
+
self.solid_units = solid_units
|
|
34
|
+
self.hydro_units = hydro_units
|
|
35
|
+
self.thermal_units = thermal_units
|
|
@@ -5,7 +5,7 @@ from multiprocessing.connection import Client as multiProcessingClient
|
|
|
5
5
|
|
|
6
6
|
class Client:
|
|
7
7
|
def __init__(self, host, port):
|
|
8
|
-
self.compatibleProgramVersion = "11.
|
|
8
|
+
self.compatibleProgramVersion = "11.026"
|
|
9
9
|
self.connection = self.establishConnection(host, port)
|
|
10
10
|
if self.connection == None:
|
|
11
11
|
raise RuntimeError("Could not establish connection with the server. Make sure the server is started on the application.")
|
|
@@ -28,6 +28,11 @@ class ExportResultType(Enum):
|
|
|
28
28
|
SEEPAGE_TOTAL_HYDRAULIC_GRADIENT = "INTERPRET_HYD_GRAD_TOTAL"
|
|
29
29
|
SEEPAGE_HORIZONTAL_PERMEABILITY = "INTERPRET_PERMEABILITY_X"
|
|
30
30
|
SEEPAGE_VERTICAL_PERMEABILITY = "INTERPRET_PERMEABILITY_Y"
|
|
31
|
+
SEEPAGE_SPATIAL_PERM = "INTERPRET_SPATIAL_PERM"
|
|
32
|
+
SEEPAGE_SPATIAL_WC = "INTERPRET_SPATIAL_WC"
|
|
33
|
+
SEEPAGE_SPATIAL_WC_RES = "INTERPRET_SPATIAL_WC_R"
|
|
34
|
+
SEEPAGE_SPATIAL_CONDY = "INTERPRET_SPATIAL_CONDY"
|
|
35
|
+
SEEPAGE_SPATIAL_ANGLE= "INTERPRET_SPATIAL_ANGLE"
|
|
31
36
|
SEEPAGE_YIELDED_ELEMENTS = "INTERPRET_YIELDED_ELEMENTS"
|
|
32
37
|
SOLID_STRAIN_VOLUMETRIC_STRAIN = "INTERPRET_STRAIN_VOLUMETRIC"
|
|
33
38
|
SOLID_STRAIN_MAX_SHEAR_STRAIN = "INTERPRET_STRAIN_MAX_SHEAR"
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
from enum import Enum, auto
|
|
2
2
|
class HistoryQueryGraphEnums():
|
|
3
|
+
"""
|
|
4
|
+
Set the history query graph.
|
|
5
|
+
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
class VerticalAxisTypes(Enum):
|
|
4
10
|
HORIZONTAL_DISPLACEMENT = 4070
|
|
5
11
|
VERTICAL_DISPLACEMENT = 4071
|
|
@@ -14,8 +20,8 @@ class HistoryQueryGraphEnums():
|
|
|
14
20
|
STRAIN_XX = 4080
|
|
15
21
|
STRAIN_YY = 4081
|
|
16
22
|
STRAIN_XY = 4082
|
|
17
|
-
EXCESS_PORE_PRESSURE = 4083
|
|
18
23
|
# Water
|
|
24
|
+
EXCESS_PORE_PRESSURE = 4083
|
|
19
25
|
PORE_PRESSURE = 4084
|
|
20
26
|
HORIZONTAL_HYDRAULIC_VELOCITY = 4085
|
|
21
27
|
VERTICAL_HYDRAULIC_VELOCITY = 4086
|
|
@@ -33,6 +39,10 @@ class HistoryQueryGraphEnums():
|
|
|
33
39
|
STAGE_LOAD_PERCENTAGE = 9096
|
|
34
40
|
|
|
35
41
|
class TimeQueryGraphEnums():
|
|
42
|
+
"""
|
|
43
|
+
Set the time query graph.
|
|
44
|
+
|
|
45
|
+
"""
|
|
36
46
|
class VerticalAxisTypes(Enum):
|
|
37
47
|
X_VELOCITY = 4041
|
|
38
48
|
X_DISPLACEMENT = 4042
|
|
@@ -18,11 +18,10 @@ class Model(BaseModel):
|
|
|
18
18
|
'''
|
|
19
19
|
Saves the model using the given file name.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.. code-block:: python
|
|
21
|
+
Examples:
|
|
22
|
+
.. code-block:: python
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
model.saveCopyAs('C:/simple_3_stage.fez')
|
|
26
25
|
'''
|
|
27
26
|
formattedFileName = fileName.replace('/', '\\')
|
|
28
27
|
self._enforceFeaFezEnding(formattedFileName)
|
|
@@ -1,78 +1,76 @@
|
|
|
1
|
-
from rsmessages.requestFormat import functionRequest
|
|
2
|
-
from rs2._common.Client import Client
|
|
3
|
-
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
4
|
-
from rs2.interpreter.InterpreterModel import Model
|
|
5
|
-
import winreg
|
|
6
|
-
import time
|
|
7
|
-
|
|
8
|
-
class RS2Interpreter:
|
|
9
|
-
def __init__(self, host = 'localhost', port=60055):
|
|
10
|
-
self.client = Client(host, port)
|
|
11
|
-
|
|
12
|
-
def openFile(self, fileName : str) -> Model:
|
|
13
|
-
'''
|
|
14
|
-
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
''
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
model
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
executablePath
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (time.time() - startTime) > timeout:
|
|
77
|
-
raise TimeoutError("The application did not close within the given timeout time.")
|
|
1
|
+
from rsmessages.requestFormat import functionRequest
|
|
2
|
+
from rs2._common.Client import Client
|
|
3
|
+
from rs2.utilities.ApplicationManager import ApplicationManager
|
|
4
|
+
from rs2.interpreter.InterpreterModel import Model
|
|
5
|
+
import winreg
|
|
6
|
+
import time
|
|
7
|
+
|
|
8
|
+
class RS2Interpreter:
|
|
9
|
+
def __init__(self, host = 'localhost', port=60055):
|
|
10
|
+
self.client = Client(host, port)
|
|
11
|
+
|
|
12
|
+
def openFile(self, fileName : str) -> Model:
|
|
13
|
+
'''
|
|
14
|
+
Takes in the absolute path to an rs2 file to be opened in the modeler.
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
.. code-block:: python
|
|
18
|
+
|
|
19
|
+
model = modeler.openFile('C:/simple_3_stage.fez')
|
|
20
|
+
'''
|
|
21
|
+
request = functionRequest('open_file', [fileName], keepReturnValueReference=True)
|
|
22
|
+
modelObjectId = self.client.callFunction(request)
|
|
23
|
+
model = Model(self.client, modelObjectId)
|
|
24
|
+
return model
|
|
25
|
+
|
|
26
|
+
@classmethod
|
|
27
|
+
def startApplication(cls, port : int, overridePathToExecutable : str = None, timeout : float = 30) -> None:
|
|
28
|
+
"""Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
|
|
29
|
+
|
|
30
|
+
Args:
|
|
31
|
+
port (int): the port to bind the python server to. Use this same port when initializing RS2Modeler
|
|
32
|
+
overridePathToExecutable (str, optional): full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
|
|
33
|
+
timeout (float, optional): the maximum amount of time to wait for the application and server to start.
|
|
34
|
+
|
|
35
|
+
Raises:
|
|
36
|
+
ValueError: Port range must be between ``49152`` and ``65535``, otherwise ValueError is raised
|
|
37
|
+
TimeoutError: if timeout is provided, raises TimeoutError if not able to connect to the server within that time.
|
|
38
|
+
"""
|
|
39
|
+
appManager = ApplicationManager()
|
|
40
|
+
executablePath = overridePathToExecutable if overridePathToExecutable else cls._getApplicationPath()
|
|
41
|
+
appManager.startApplication(executablePath, port, timeout)
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def _getApplicationPath() -> str:
|
|
45
|
+
|
|
46
|
+
registry = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
|
47
|
+
key = winreg.OpenKey(registry, r'SOFTWARE\Rocscience\RS2 11.0')
|
|
48
|
+
installationLocation, type = winreg.QueryValueEx(key, "Install")
|
|
49
|
+
|
|
50
|
+
rs2ModelerInstallLocation = rf"{installationLocation}\Interpret"
|
|
51
|
+
|
|
52
|
+
return rs2ModelerInstallLocation
|
|
53
|
+
|
|
54
|
+
def closeProgram(self, saveModels=True, timeout=30):
|
|
55
|
+
'''
|
|
56
|
+
Closes the modeler program. All unsaved models are saved by default.
|
|
57
|
+
|
|
58
|
+
Examples:
|
|
59
|
+
.. code-block:: python
|
|
60
|
+
|
|
61
|
+
#Saves all models before closing
|
|
62
|
+
modeler.closeProgram(True)
|
|
63
|
+
|
|
64
|
+
#Closes without saving any models
|
|
65
|
+
modeler.closeProgram(False)
|
|
66
|
+
'''
|
|
67
|
+
request = functionRequest('closeProgram', [saveModels])
|
|
68
|
+
portUsed = self.client.callFunction(request)
|
|
69
|
+
self.client.closeConnection()
|
|
70
|
+
appManager = ApplicationManager()
|
|
71
|
+
portIsAvailable = False
|
|
72
|
+
startTime = time.time()
|
|
73
|
+
while not portIsAvailable:
|
|
74
|
+
if (time.time() - startTime) > timeout:
|
|
75
|
+
raise TimeoutError("The application did not close within the given timeout time.")
|
|
78
76
|
portIsAvailable = appManager._isPortAvailable(portUsed)
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
class HistoryQueryResult:
|
|
2
2
|
"""
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
This class shows History Query Result.
|
|
4
|
+
|
|
5
|
+
Attributes:
|
|
6
|
+
x_location (double): X-Coordinate for history query point.
|
|
7
|
+
y_location (double): Y-Coordinate for history query point.
|
|
8
|
+
horizontal_axis_result (double): Horizontal Axis Result for history query point.
|
|
9
|
+
vertical_axis_result (double): Vertical Axis Result for history query point.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Examples:
|
|
13
|
+
:ref:`History Query Example`
|
|
11
14
|
"""
|
|
15
|
+
|
|
12
16
|
def __init__(self, x_location, y_location, horizontal_axis_result, vertical_axis_result):
|
|
13
17
|
self.horizontal_axis_result = horizontal_axis_result
|
|
14
18
|
self.vertical_axis_result = vertical_axis_result
|
|
@@ -2,14 +2,17 @@ from rs2.interpreter._UtilityResult import *
|
|
|
2
2
|
|
|
3
3
|
class QueryResult:
|
|
4
4
|
"""
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
y_location (double): Y-Coordinate for material query point.
|
|
11
|
-
distance (double): Distance for material query point.
|
|
5
|
+
|
|
6
|
+
Attributes:
|
|
7
|
+
x_location (double): X-Coordinate for material query point.
|
|
8
|
+
y_location (double): Y-Coordinate for material query point.
|
|
9
|
+
distance (double): Distance for material query point.
|
|
12
10
|
value (double): Result type value for material query point.
|
|
11
|
+
|
|
12
|
+
Examples:
|
|
13
|
+
|
|
14
|
+
:ref:`Material Query Example`
|
|
15
|
+
|
|
13
16
|
"""
|
|
14
17
|
def __init__(self, x_location, y_location, distance, value):
|
|
15
18
|
self.x_location = x_location
|
|
@@ -44,13 +47,15 @@ class QueryResult:
|
|
|
44
47
|
|
|
45
48
|
class MaterialQueryResults:
|
|
46
49
|
"""
|
|
47
|
-
|
|
48
|
-
:ref:`Material Query Example`
|
|
49
|
-
|
|
50
|
-
Attributes:
|
|
50
|
+
Attributes:
|
|
51
51
|
entity_ID (str): Unique Identifier for material query.
|
|
52
52
|
material_id (int): Material Identifier for material query.
|
|
53
53
|
query_values (list[QueryResult]): List of QueryResult point objects making up the material query.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
Examples:
|
|
57
|
+
|
|
58
|
+
:ref:`Material Query Example`
|
|
54
59
|
"""
|
|
55
60
|
def __init__(self, entity_ID, material_id, query_values):
|
|
56
61
|
self.entity_ID = entity_ID
|
{rs2scripting-11.24.2 → rs2scripting-11.26.0}/src/rs2/interpreter/queryResults/MeshResults.py
RENAMED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
class MeshResults:
|
|
2
2
|
"""
|
|
3
|
-
Examples:
|
|
4
|
-
:ref:`Get Mesh Results Example`
|
|
5
3
|
|
|
6
|
-
|
|
4
|
+
Attributes:
|
|
7
5
|
results (list[list[double]]): Mesh results containing x-coordinate, y-coordinate and result type value for each node in your model.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Examples:
|
|
9
|
+
|
|
10
|
+
:ref:`Get Mesh Results Example`
|
|
11
|
+
|
|
8
12
|
"""
|
|
9
13
|
results = None
|
|
10
14
|
|