RS2Scripting 11.23.0.dev4__tar.gz → 11.23.0rc1__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.23.0.dev4/src/RS2Scripting.egg-info → RS2Scripting-11.23.0rc1}/PKG-INFO +2 -2
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/pyproject.toml +2 -2
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1/src/RS2Scripting.egg-info}/PKG-INFO +2 -2
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/RS2Scripting.egg-info/SOURCES.txt +14 -10
- RS2Scripting-11.23.0rc1/src/RS2Scripting.egg-info/requires.txt +1 -0
- RS2Scripting-11.23.0rc1/src/rs2/BaseModel.py +46 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/_common → RS2Scripting-11.23.0rc1/src/rs2}/Units.py +0 -1
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/_common/Client.py +0 -8
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/InterpreterModel.py +12 -49
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/queryResults}/MaterialQueryResults.py +1 -1
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/supportResults}/BoltResult.py +1 -1
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/supportResults}/CompositeResult.py +2 -2
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/supportResults}/JointResult.py +1 -1
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/supportResults}/LinerResult.py +1 -1
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/Model.py +4 -39
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/BartonBandisMaterial.py +4 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +4 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/MohrCoulombMaterial.py +4 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +5 -4
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/PM4SiltStrength.py +8 -1
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/SofteningHardeningModel.py +8 -1
- RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/pile/__init__.py +0 -0
- RS2Scripting-11.23.0rc1/src/rs2/utilities/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testExampleCode.py +7 -10
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testMaterialJointOptions.py +28 -1
- RS2Scripting-11.23.0rc1/tests/testSaveAs.py +44 -0
- RS2Scripting-11.23.0.dev4/src/RS2Scripting.egg-info/requires.txt +0 -1
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/License.txt +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/README.md +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/setup.cfg +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/RS2Scripting.egg-info/dependency_links.txt +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/RS2Scripting.egg-info/top_level.txt +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/_common/ProxyObject.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/_common/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/_common/documentProxy.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/InterpreterEnums.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/InterpreterGraphEnums.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/RS2Interpreter.py +0 -0
- /RS2Scripting-11.23.0.dev4/src/rs2/interpreter/UtilityResult.py → /RS2Scripting-11.23.0rc1/src/rs2/interpreter/_UtilityResult.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/queryResults}/HistoryQueryResults.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/queryResults}/MeshResults.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/interpreter → RS2Scripting-11.23.0rc1/src/rs2/interpreter/queryResults}/TimeQueryResults.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler → RS2Scripting-11.23.0rc1/src/rs2/interpreter/queryResults}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties → RS2Scripting-11.23.0rc1/src/rs2/interpreter/supportResults}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/RS2Modeler.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/bolt → RS2Scripting-11.23.0rc1/src/rs2/modeler}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/AbsoluteStageFactorInterface.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/CompositeProperty.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/DiscreteFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/MaterialJoint.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/MaterialJointOptions.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/PropertyEnums.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/RelativeStageFactorInterface.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/ShearNormalFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/SnowdenAnisotropicFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/StructuralInterface.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/UserDefinedWaterMode.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/joint → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/Bolt.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/EndAnchored.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/FullyBonded.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/PlainStrandCable.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/Swellex.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/bolt/Tieback.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/liner → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/bolt}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/BartonBandis.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/DisplacementDependent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/HyperbolicSoftening.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/Joint.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/MaterialDependent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/MohrCoulomb.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/joint/NoneSlip.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/joint}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/liner/CableTruss.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/liner/Geosynthetic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/liner/Liner.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/liner/ReinforcedConcrete.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/liner/StandardBeam.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/datum → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/liner}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/InitialConditions.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/MaterialProperty.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/StageFactors.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/datum/BaseDatum.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/datum/Datum.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/datum/PeakResidualDatum.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/datum/SimpleDatum.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/hydraulic → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/datum}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/stiffness → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/hydraulic/FEAGroundwater}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/Hydraulic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/strength → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/hydraulic}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/ChSoil.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Custom.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/CySoil.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/DoubleYield.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/HardeningSoil.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Isotropic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Norsand.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Orthotropic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Pm4Sand.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Pm4Silt.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/SoftSoil.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/Stiffness.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/SwellingRock.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/stiffness/ViscoElastic.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/thermal → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/stiffness}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/AnisotropicLinear.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/BarcelonaBasic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/BartonBandisStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/CamClay.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/ChSoilStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/CySoilStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/DiscreteFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/DoubleYieldStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/DruckerPrager.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/Finn.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/HardeningSoilStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/HoekBrown.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/Hyperbolic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/ModifiedCamClay.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/MohrCoulombStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/NorSandStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/PM4SandStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/PowerCurve.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/Shansep.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/ShearNormalFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/SoftSoilStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/Strength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/SwellingRockStrength.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/strength/VerticalStressRatio.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/thermal/conductivity → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/strength}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/Thermal.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/thermal/heatcapacity → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/thermal}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/Derives.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/Johansen.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/conductivity/Tabular.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/thermal/conductivity}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/thermal/heatcapacity}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/modeler/properties/pile → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +0 -0
- {RS2Scripting-11.23.0.dev4/src/rs2/utilities → RS2Scripting-11.23.0rc1/src/rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic}/__init__.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/Beam.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/Elastic.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/ForceDisplacement.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/Linear.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/MaterialDependentPile.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/MohrCoulombPile.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/MultiLinear.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/pile/Pile.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/modeler/properties/propertyProxy.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/utilities/ApplicationManager.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/utilities/ColorPicker.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testFileOpenWarning.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testInterpreterMultipleFileCloseProgram.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testInterpreterSaveAs.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testInterpreterSingleFileCloseProgram.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testModelerMultipleFileCloseProgram.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testModelerSingleFileCloseProgram.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testOpenFileNoResults.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testShearNormalFunction.py +0 -0
- {RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/tests/testSnowdenAnisotropicFunction.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.23.
|
|
3
|
+
Version: 11.23.0rc1
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -13,7 +13,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
13
13
|
Requires-Python: >=3.7
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: License.txt
|
|
16
|
-
Requires-Dist: rsmessages==0.0.
|
|
16
|
+
Requires-Dist: rsmessages==0.0.2rc1
|
|
17
17
|
|
|
18
18
|
## Introduction
|
|
19
19
|
This project is a library that can be used to interact with RS2 through python.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: RS2Scripting
|
|
3
|
-
Version: 11.23.
|
|
3
|
+
Version: 11.23.0rc1
|
|
4
4
|
Summary: Client library for interacting with RS2 through python
|
|
5
5
|
Author: Rocscience
|
|
6
6
|
License: MIT License
|
|
@@ -13,7 +13,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
13
13
|
Requires-Python: >=3.7
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: License.txt
|
|
16
|
-
Requires-Dist: rsmessages==0.0.
|
|
16
|
+
Requires-Dist: rsmessages==0.0.2rc1
|
|
17
17
|
|
|
18
18
|
## Introduction
|
|
19
19
|
This project is a library that can be used to interact with RS2 through python.
|
|
@@ -6,26 +6,29 @@ src/RS2Scripting.egg-info/SOURCES.txt
|
|
|
6
6
|
src/RS2Scripting.egg-info/dependency_links.txt
|
|
7
7
|
src/RS2Scripting.egg-info/requires.txt
|
|
8
8
|
src/RS2Scripting.egg-info/top_level.txt
|
|
9
|
+
src/rs2/BaseModel.py
|
|
10
|
+
src/rs2/Units.py
|
|
9
11
|
src/rs2/__init__.py
|
|
10
12
|
src/rs2/_common/Client.py
|
|
11
13
|
src/rs2/_common/ProxyObject.py
|
|
12
|
-
src/rs2/_common/Units.py
|
|
13
14
|
src/rs2/_common/__init__.py
|
|
14
15
|
src/rs2/_common/documentProxy.py
|
|
15
|
-
src/rs2/interpreter/BoltResult.py
|
|
16
|
-
src/rs2/interpreter/CompositeResult.py
|
|
17
|
-
src/rs2/interpreter/HistoryQueryResults.py
|
|
18
16
|
src/rs2/interpreter/InterpreterEnums.py
|
|
19
17
|
src/rs2/interpreter/InterpreterGraphEnums.py
|
|
20
18
|
src/rs2/interpreter/InterpreterModel.py
|
|
21
|
-
src/rs2/interpreter/JointResult.py
|
|
22
|
-
src/rs2/interpreter/LinerResult.py
|
|
23
|
-
src/rs2/interpreter/MaterialQueryResults.py
|
|
24
|
-
src/rs2/interpreter/MeshResults.py
|
|
25
19
|
src/rs2/interpreter/RS2Interpreter.py
|
|
26
|
-
src/rs2/interpreter/
|
|
27
|
-
src/rs2/interpreter/UtilityResult.py
|
|
20
|
+
src/rs2/interpreter/_UtilityResult.py
|
|
28
21
|
src/rs2/interpreter/__init__.py
|
|
22
|
+
src/rs2/interpreter/queryResults/HistoryQueryResults.py
|
|
23
|
+
src/rs2/interpreter/queryResults/MaterialQueryResults.py
|
|
24
|
+
src/rs2/interpreter/queryResults/MeshResults.py
|
|
25
|
+
src/rs2/interpreter/queryResults/TimeQueryResults.py
|
|
26
|
+
src/rs2/interpreter/queryResults/__init__.py
|
|
27
|
+
src/rs2/interpreter/supportResults/BoltResult.py
|
|
28
|
+
src/rs2/interpreter/supportResults/CompositeResult.py
|
|
29
|
+
src/rs2/interpreter/supportResults/JointResult.py
|
|
30
|
+
src/rs2/interpreter/supportResults/LinerResult.py
|
|
31
|
+
src/rs2/interpreter/supportResults/__init__.py
|
|
29
32
|
src/rs2/modeler/Model.py
|
|
30
33
|
src/rs2/modeler/RS2Modeler.py
|
|
31
34
|
src/rs2/modeler/__init__.py
|
|
@@ -195,5 +198,6 @@ tests/testMaterialJointOptions.py
|
|
|
195
198
|
tests/testModelerMultipleFileCloseProgram.py
|
|
196
199
|
tests/testModelerSingleFileCloseProgram.py
|
|
197
200
|
tests/testOpenFileNoResults.py
|
|
201
|
+
tests/testSaveAs.py
|
|
198
202
|
tests/testShearNormalFunction.py
|
|
199
203
|
tests/testSnowdenAnisotropicFunction.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rsmessages==0.0.2rc1
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
:ref:`Model Example`
|
|
21
|
+
|
|
22
|
+
| Closes the model
|
|
23
|
+
|
|
24
|
+
'''
|
|
25
|
+
return self._callFunction('close', [])
|
|
26
|
+
|
|
27
|
+
def save(self):
|
|
28
|
+
'''
|
|
29
|
+
:ref:`Model Example`
|
|
30
|
+
|
|
31
|
+
| Saves the model
|
|
32
|
+
|
|
33
|
+
'''
|
|
34
|
+
return self._callFunction('save', [])
|
|
35
|
+
|
|
36
|
+
def getUnits(self):
|
|
37
|
+
'''
|
|
38
|
+
:ref:`Get Model Units Example`
|
|
39
|
+
|
|
40
|
+
| Get Solid, Hydro and Thermal units for your model
|
|
41
|
+
'''
|
|
42
|
+
NUM_UNITS = 3
|
|
43
|
+
data = self._callFunction('getUnits', [])
|
|
44
|
+
if (len (data) !=NUM_UNITS) :
|
|
45
|
+
assert False, "Expected 3 units, got " + str(len(data))
|
|
46
|
+
return Units(*data)
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import logging
|
|
2
1
|
import warnings
|
|
3
2
|
from rsmessages.requestFormat import functionRequest
|
|
4
3
|
from rsmessages.responseFormat import functionResponse, functionStatus
|
|
5
4
|
from multiprocessing.connection import Client as multiProcessingClient
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
logging.basicConfig(filename='python_client.log', filemode='w', format='%(process)d - %(asctime)s - %(levelname)s - %(message)s')
|
|
9
|
-
logger = logging.getLogger(__name__)
|
|
10
|
-
logger.level = logging.INFO
|
|
11
|
-
|
|
12
|
-
|
|
13
6
|
class Client:
|
|
14
7
|
def __init__(self, host, port):
|
|
15
8
|
self.compatibleProgramVersion = "11.023"
|
|
@@ -31,7 +24,6 @@ class Client:
|
|
|
31
24
|
try:
|
|
32
25
|
connection = multiProcessingClient((host, port) ,'AF_INET')
|
|
33
26
|
except Exception as e:
|
|
34
|
-
logger.error(f"Unable to create client. Full error: {e}")
|
|
35
27
|
return
|
|
36
28
|
return connection
|
|
37
29
|
|
{RS2Scripting-11.23.0.dev4 → RS2Scripting-11.23.0rc1}/src/rs2/interpreter/InterpreterModel.py
RENAMED
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
from rs2._common.ProxyObject import ProxyObject
|
|
2
|
-
from rs2._common.documentProxy import DocumentProxy
|
|
3
|
-
from rs2._common.Units import Units
|
|
4
1
|
from rs2.interpreter.InterpreterEnums import *
|
|
5
|
-
from rs2.interpreter.MeshResults import MeshResults
|
|
6
|
-
from rs2.interpreter.HistoryQueryResults import *
|
|
7
|
-
from rs2.interpreter.TimeQueryResults import *
|
|
2
|
+
from rs2.interpreter.queryResults.MeshResults import MeshResults
|
|
3
|
+
from rs2.interpreter.queryResults.HistoryQueryResults import *
|
|
4
|
+
from rs2.interpreter.queryResults.TimeQueryResults import *
|
|
8
5
|
from rs2.interpreter.InterpreterGraphEnums import *
|
|
9
|
-
from rs2.interpreter.JointResult import *
|
|
10
|
-
from rs2.interpreter.LinerResult import *
|
|
11
|
-
from rs2.interpreter.BoltResult import*
|
|
12
|
-
from rs2.interpreter.CompositeResult import*
|
|
13
|
-
from rs2.interpreter.MaterialQueryResults import *
|
|
14
|
-
|
|
6
|
+
from rs2.interpreter.supportResults.JointResult import *
|
|
7
|
+
from rs2.interpreter.supportResults.LinerResult import *
|
|
8
|
+
from rs2.interpreter.supportResults.BoltResult import*
|
|
9
|
+
from rs2.interpreter.supportResults.CompositeResult import*
|
|
10
|
+
from rs2.interpreter.queryResults.MaterialQueryResults import *
|
|
11
|
+
from rs2.BaseModel import BaseModel
|
|
12
|
+
|
|
13
|
+
class Model(BaseModel):
|
|
15
14
|
"""
|
|
16
15
|
:ref:`Model Example`
|
|
17
16
|
"""
|
|
18
|
-
def __init__(self, client, ID):
|
|
19
|
-
super().__init__(client, ID)
|
|
20
|
-
self._documentProxy = self._getDocument()
|
|
21
|
-
|
|
22
|
-
def _getDocument(self):
|
|
23
|
-
documentObjectID = self._callFunction('getDocument', [], keepReturnValueReference=True)
|
|
24
|
-
return DocumentProxy(self._client, documentObjectID)
|
|
25
|
-
|
|
26
|
-
def close(self):
|
|
27
|
-
'''
|
|
28
|
-
:ref:`Model Example`
|
|
29
|
-
|
|
30
|
-
| Closes the model
|
|
31
|
-
|
|
32
|
-
'''
|
|
33
|
-
return self._callFunction('close', [])
|
|
34
|
-
|
|
35
17
|
def saveCopyAs(self, fileName : str):
|
|
36
18
|
'''
|
|
37
19
|
Saves the model using the given file name.
|
|
@@ -43,16 +25,10 @@ class Model(ProxyObject):
|
|
|
43
25
|
model.saveCopyAs('C:/simple_3_stage.fez')
|
|
44
26
|
'''
|
|
45
27
|
formattedFileName = fileName.replace('/', '\\')
|
|
28
|
+
self._enforceFeaFezEnding(formattedFileName)
|
|
46
29
|
return self._callFunction('saveAs', [formattedFileName])
|
|
47
30
|
|
|
48
|
-
def save(self):
|
|
49
|
-
'''
|
|
50
|
-
:ref:`Model Example`
|
|
51
|
-
|
|
52
|
-
| Saves the model
|
|
53
31
|
|
|
54
|
-
'''
|
|
55
|
-
return self._callFunction('save', [])
|
|
56
32
|
|
|
57
33
|
def SetActiveStage(self, stageNumber: int):
|
|
58
34
|
'''
|
|
@@ -344,19 +320,6 @@ class Model(ProxyObject):
|
|
|
344
320
|
|
|
345
321
|
return structured_data
|
|
346
322
|
|
|
347
|
-
def getUnits(self) -> Units:
|
|
348
|
-
'''
|
|
349
|
-
:ref:`Get Model Units Example`
|
|
350
|
-
|
|
351
|
-
| Get Solid, Hydro and Thermal units for your model
|
|
352
|
-
|
|
353
|
-
'''
|
|
354
|
-
NUM_UNITS = 3
|
|
355
|
-
data = self._callFunction('getUnits', [])
|
|
356
|
-
if len(data) != NUM_UNITS:
|
|
357
|
-
assert False
|
|
358
|
-
return Units()
|
|
359
|
-
return Units(*data)
|
|
360
323
|
|
|
361
324
|
def getCriticalSRF(self):
|
|
362
325
|
'''
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from rs2.interpreter.LinerResult import LinerResult
|
|
2
|
-
from rs2.interpreter.JointResult import JointResult
|
|
1
|
+
from rs2.interpreter.supportResults.LinerResult import LinerResult
|
|
2
|
+
from rs2.interpreter.supportResults.JointResult import JointResult
|
|
3
3
|
|
|
4
4
|
class PileResult:
|
|
5
5
|
def __init__(self, entity_id, joint_result: JointResult, liner_result: LinerResult):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from rs2.interpreter.
|
|
1
|
+
from rs2.interpreter._UtilityResult import *
|
|
2
2
|
|
|
3
3
|
class JointElementResult:
|
|
4
4
|
def __init__(self, start_x, start_y, end_x, end_y, distance, normal_stress, shear_stress,confining_stress, normal_displacement, shear_displacement, yielded):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from rs2.interpreter.
|
|
1
|
+
from rs2.interpreter._UtilityResult import *
|
|
2
2
|
|
|
3
3
|
class LinerElementResult:
|
|
4
4
|
def __init__(self,composite_layer, node_start, node_end, start_x, start_y, end_x, end_y, distance,axial_force, moment1, moment_mid, moment2, shear_force, displacement_total, displacement_x, displacement_y,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
from rs2._common.ProxyObject import ProxyObject
|
|
2
|
-
from rs2._common.documentProxy import DocumentProxy
|
|
3
|
-
from rs2._common.Units import Units
|
|
4
1
|
from rs2.modeler.properties.bolt.Bolt import BoltProperty
|
|
5
2
|
from rs2.modeler.properties.liner.Liner import LinerProperty
|
|
6
3
|
from rs2.modeler.properties.joint.Joint import JointProperty
|
|
@@ -13,18 +10,12 @@ from rs2.modeler.properties.ShearNormalFunction import ShearNormalFunction
|
|
|
13
10
|
from rs2.modeler.properties.UserDefinedWaterMode import UserDefinedWaterMode
|
|
14
11
|
from rs2.modeler.properties.DiscreteFunction import DiscreteFunction
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
from rs2.BaseModel import BaseModel
|
|
14
|
+
|
|
15
|
+
class Model(BaseModel):
|
|
17
16
|
"""
|
|
18
17
|
:ref:`Model Example`
|
|
19
18
|
"""
|
|
20
|
-
def __init__(self, client, ID):
|
|
21
|
-
super().__init__(client, ID)
|
|
22
|
-
self._documentProxy = self._getDocument()
|
|
23
|
-
|
|
24
|
-
def _getDocument(self):
|
|
25
|
-
documentObjectID = self._callFunction('getDocument', [], keepReturnValueReference=True)
|
|
26
|
-
return DocumentProxy(self._client, documentObjectID)
|
|
27
|
-
|
|
28
19
|
def getBoltPropertyByName(self, boltName : str) -> BoltProperty:
|
|
29
20
|
'''
|
|
30
21
|
| Returns a Bolt Property object based on its name.
|
|
@@ -297,14 +288,6 @@ class Model(ProxyObject):
|
|
|
297
288
|
'''
|
|
298
289
|
return self._callFunction('compute', [True])
|
|
299
290
|
|
|
300
|
-
def close(self):
|
|
301
|
-
'''
|
|
302
|
-
:ref:`Model Example`
|
|
303
|
-
|
|
304
|
-
| Closes the model
|
|
305
|
-
'''
|
|
306
|
-
return self._callFunction('close', [])
|
|
307
|
-
|
|
308
291
|
def saveAs(self, fileName : str):
|
|
309
292
|
'''
|
|
310
293
|
| Saves the model using the given file name.
|
|
@@ -316,16 +299,9 @@ class Model(ProxyObject):
|
|
|
316
299
|
model.saveAs('C:/simple_3_stage.fez')
|
|
317
300
|
'''
|
|
318
301
|
formattedFileName = fileName.replace('/', '\\')
|
|
302
|
+
self._enforceFeaFezEnding(formattedFileName)
|
|
319
303
|
return self._callFunction('saveAs', [formattedFileName])
|
|
320
304
|
|
|
321
|
-
def save(self):
|
|
322
|
-
'''
|
|
323
|
-
:ref:`Model Example`
|
|
324
|
-
|
|
325
|
-
| Saves the model
|
|
326
|
-
'''
|
|
327
|
-
return self._callFunction('save', [])
|
|
328
|
-
|
|
329
305
|
def getDiscreteFunctions(self) -> list[DiscreteFunction]:
|
|
330
306
|
'''
|
|
331
307
|
| Returns a list of all discrete functions
|
|
@@ -361,18 +337,7 @@ class Model(ProxyObject):
|
|
|
361
337
|
'''
|
|
362
338
|
return self._callFunction('renameDiscreteFunction', [oldName, newName])
|
|
363
339
|
|
|
364
|
-
def getUnits(self):
|
|
365
|
-
'''
|
|
366
|
-
:ref:`Get Model Units Example`
|
|
367
340
|
|
|
368
|
-
| Get Solid, Hydro and Thermal units for your model
|
|
369
|
-
'''
|
|
370
|
-
NUM_UNITS = 3
|
|
371
|
-
data = self._callFunction('getUnits', [])
|
|
372
|
-
if (len (data) !=NUM_UNITS) :
|
|
373
|
-
assert False
|
|
374
|
-
return Units()
|
|
375
|
-
return Units(*data)
|
|
376
341
|
|
|
377
342
|
def ResetProperties(self):
|
|
378
343
|
'''
|
|
@@ -17,6 +17,8 @@ class BartonBandisMaterialStageFactor(ProxyObject):
|
|
|
17
17
|
return self._callFunction("getDoubleFactor", ["JP_FRICTION_ANGLE_RES_BARTON", self.propertyID], proxyArgumentIndices=[1])
|
|
18
18
|
def getDilationAngleFactor(self) -> float:
|
|
19
19
|
return self._callFunction("__getattribute__", ["m_dilation_angle"])
|
|
20
|
+
def getJointPermeableFactor(self) -> bool:
|
|
21
|
+
return self._callFunction("__getattribute__", ["m_joint_permeable_factor"])
|
|
20
22
|
class BartonBandisMaterialDefinedStageFactor(BartonBandisMaterialStageFactor):
|
|
21
23
|
def __init__(self, client : Client, ID, propertyID):
|
|
22
24
|
super().__init__(client, ID, propertyID)
|
|
@@ -28,6 +30,8 @@ class BartonBandisMaterialDefinedStageFactor(BartonBandisMaterialStageFactor):
|
|
|
28
30
|
return self._callFunction("setDoubleFactor", ["JP_FRICTION_ANGLE_RES_BARTON", value, self.propertyID], proxyArgumentIndices=[2])
|
|
29
31
|
def setDilationAngleFactor(self, dilationAngleFactor: float):
|
|
30
32
|
return self._callFunction("setDilationAngle", [dilationAngleFactor])
|
|
33
|
+
def setJointPermeableFactor(self, Permeable: bool):
|
|
34
|
+
return self._callFunction("setJointPermeableFactor", [Permeable])
|
|
31
35
|
class BartonBandisMaterial(PropertyProxy):
|
|
32
36
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
33
37
|
super().__init__(client, ID, documentProxyID)
|
|
@@ -19,6 +19,8 @@ class GeosyntheticHyperbolicMaterialStageFactor(ProxyObject):
|
|
|
19
19
|
return self._callFunction("getDoubleFactor", ["JP_FRICTION_ANGLE_RES_GEOSYN", self.propertyID], proxyArgumentIndices=[1])
|
|
20
20
|
def getDilationRatioFactor(self) -> float:
|
|
21
21
|
return self._callFunction("__getattribute__", ["m_dilation_ratio"])
|
|
22
|
+
def getJointPermeableFactor(self) -> bool:
|
|
23
|
+
return self._callFunction("__getattribute__", ["m_joint_permeable_factor"])
|
|
22
24
|
class GeosyntheticHyperbolicMaterialDefinedStageFactor(GeosyntheticHyperbolicMaterialStageFactor):
|
|
23
25
|
def __init__(self, client : Client, ID, propertyID):
|
|
24
26
|
super().__init__(client, ID, propertyID)
|
|
@@ -32,6 +34,8 @@ class GeosyntheticHyperbolicMaterialDefinedStageFactor(GeosyntheticHyperbolicMat
|
|
|
32
34
|
return self._callFunction("setDoubleFactor", ["JP_FRICTION_ANGLE_RES_GEOSYN", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
35
|
def setDilationRatioFactor(self, dilationRatioFactor: float):
|
|
34
36
|
return self._callFunction("setDilationRatio", [dilationRatioFactor])
|
|
37
|
+
def setJointPermeableFactor(self, Permeable: bool):
|
|
38
|
+
return self._callFunction("setJointPermeableFactor", [Permeable])
|
|
35
39
|
class GeosyntheticHyperbolicMaterial(PropertyProxy):
|
|
36
40
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
37
41
|
super().__init__(client, ID, documentProxyID)
|
|
@@ -23,6 +23,8 @@ class MohrCoulombMaterialStageFactor(ProxyObject):
|
|
|
23
23
|
return self._callFunction("getDoubleFactor", ["JP_FRICTION_ANGLE_RES", self.propertyID], proxyArgumentIndices=[1])
|
|
24
24
|
def getDilationAngleFactor(self) -> float:
|
|
25
25
|
return self._callFunction("__getattribute__", ["m_dilation_angle"])
|
|
26
|
+
def getJointPermeableFactor(self) -> bool:
|
|
27
|
+
return self._callFunction("__getattribute__", ["m_joint_permeable_factor"])
|
|
26
28
|
class MohrCoulombMaterialDefinedStageFactor(MohrCoulombMaterialStageFactor):
|
|
27
29
|
def __init__(self, client : Client, ID, propertyID):
|
|
28
30
|
super().__init__(client, ID, propertyID)
|
|
@@ -40,6 +42,8 @@ class MohrCoulombMaterialDefinedStageFactor(MohrCoulombMaterialStageFactor):
|
|
|
40
42
|
return self._callFunction("setDoubleFactor", ["JP_FRICTION_ANGLE_RES", value, self.propertyID], proxyArgumentIndices=[2])
|
|
41
43
|
def setDilationAngleFactor(self, dilationAngleFactor: float):
|
|
42
44
|
return self._callFunction("setDilationAngle", [dilationAngleFactor])
|
|
45
|
+
def setJointPermeableFactor(self, Permeable: bool):
|
|
46
|
+
return self._callFunction("setJointPermeableFactor", [Permeable])
|
|
43
47
|
class MohrCoulombMaterial(PropertyProxy):
|
|
44
48
|
def __init__(self, client : Client, ID, documentProxyID):
|
|
45
49
|
super().__init__(client, ID, documentProxyID)
|
|
@@ -17,10 +17,10 @@ class TransverselyIsotropicStageFactor(ProxyObject):
|
|
|
17
17
|
return self._callFunction("getDoubleFactor", ["MP_POISSONS_RATIO_V12", self.propertyID], proxyArgumentIndices=[1])
|
|
18
18
|
def getShearModulusFactor(self) -> float:
|
|
19
19
|
return self._callFunction("getDoubleFactor", ["MP_SHEAR_MODULUS", self.propertyID], proxyArgumentIndices=[1])
|
|
20
|
-
def getYoungsModulusE1AndEzFactor(self) -> float:
|
|
21
|
-
return self._callFunction("getDoubleFactor", ["MP_YOUNGS_MODULUS_E1_AND_EZ", self.propertyID], proxyArgumentIndices=[1])
|
|
22
20
|
def getYoungsModulusE2Factor(self) -> float:
|
|
23
21
|
return self._callFunction("getDoubleFactor", ["MP_YOUNGS_MODULUS_E2", self.propertyID], proxyArgumentIndices=[1])
|
|
22
|
+
def getYoungsModulusE1AndEzFactor(self) -> float:
|
|
23
|
+
return self._callFunction("getDoubleFactor", ["MP_YOUNGS_MODULUS_E1_AND_EZ", self.propertyID], proxyArgumentIndices=[1])
|
|
24
24
|
class TransverselyIsotropicDefinedStageFactor(TransverselyIsotropicStageFactor):
|
|
25
25
|
def __init__(self, client : Client, ID, propertyID):
|
|
26
26
|
super().__init__(client, ID, propertyID)
|
|
@@ -32,10 +32,11 @@ class TransverselyIsotropicDefinedStageFactor(TransverselyIsotropicStageFactor):
|
|
|
32
32
|
return self._callFunction("setDoubleFactor", ["MP_POISSONS_RATIO_V12", value, self.propertyID], proxyArgumentIndices=[2])
|
|
33
33
|
def setShearModulusFactor(self, value: float):
|
|
34
34
|
return self._callFunction("setDoubleFactor", ["MP_SHEAR_MODULUS", value, self.propertyID], proxyArgumentIndices=[2])
|
|
35
|
-
def setYoungsModulusE1AndEzFactor(self, value: float):
|
|
36
|
-
return self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_E1_AND_EZ", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
35
|
def setYoungsModulusE2Factor(self, value: float):
|
|
38
36
|
return self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_E2", value, self.propertyID], proxyArgumentIndices=[2])
|
|
37
|
+
def setYoungsModulusE1AndEzFactor(self, value: float):
|
|
38
|
+
self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_E1", value, self.propertyID], proxyArgumentIndices = [2])
|
|
39
|
+
self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_EZ", value, self.propertyID], proxyArgumentIndices = [2])
|
|
39
40
|
class TransverselyIsotropic(PropertyProxy):
|
|
40
41
|
def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
|
|
41
42
|
super().__init__(client, ID, documentProxyID)
|
|
@@ -32,6 +32,10 @@ class PM4SiltStrength(PropertyProxy):
|
|
|
32
32
|
return self._getDoubleProperty("MP_PM4_SILT_LAMBDA")
|
|
33
33
|
def setLambda(self, value: float):
|
|
34
34
|
return self._setDoubleProperty("MP_PM4_SILT_LAMBDA", value)
|
|
35
|
+
def getAutoCalculateFsu(self) -> bool:
|
|
36
|
+
return self._getBoolProperty("MP_USE_AUTO_FSU")
|
|
37
|
+
def setAutoCalculateFsu(self, value: bool):
|
|
38
|
+
return self._setBoolProperty("MP_USE_AUTO_FSU", value)
|
|
35
39
|
def getFsu(self) -> float:
|
|
36
40
|
return self._getDoubleProperty("MP_PM4_SILT_FSU")
|
|
37
41
|
def setFsu(self, value: float):
|
|
@@ -132,7 +136,7 @@ class PM4SiltStrength(PropertyProxy):
|
|
|
132
136
|
return self._getDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_CZ")
|
|
133
137
|
def setCzParameter(self, value: float):
|
|
134
138
|
return self._setDoubleProperty("MP_FABRIC_DILATANCY_TENSOR_CZ", value)
|
|
135
|
-
def setProperties(self, AutoCalculateSuParameter : bool = None, SuParameter : float = None, SuRatioParameter : float = None, AutoCalculateEInitial : bool = None, EInitial : float = None, AutoCalculateLambda : bool = None, Lambda : float = None, Fsu : float = None, AutoCalculatePhiCv : bool = None, PhiCv : float = None, AutoCalculateNbWet : bool = None, NbWet : float = None, AutoCalculateNbDry : bool = None, NbDry : float = None, AutoCalculateNdParameter : bool = None, NdParameter : float = None, AutoCalculateADoParameter : bool = None, ADoParameter : float = None, AutoCalculateRuMax : bool = None, RuMax : float = None, Hp0Parameter : float = None, AutoCalculateCEpsParameter : bool = None, CEpsParameter : float = None, YieldSurfaceM : float = None, AutoCalculateH0Parameter : bool = None, H0Parameter : float = None, AutoCalculateCKafParameter : bool = None, CKafParameter : float = None, AutoCalculateZmax : bool = None, Zmax : float = None, AutoCalculateCzParameter : bool = None, CzParameter : float = None):
|
|
139
|
+
def setProperties(self, AutoCalculateSuParameter : bool = None, SuParameter : float = None, SuRatioParameter : float = None, AutoCalculateEInitial : bool = None, EInitial : float = None, AutoCalculateLambda : bool = None, Lambda : float = None, AutoCalculateFsu : bool = None, Fsu : float = None, AutoCalculatePhiCv : bool = None, PhiCv : float = None, AutoCalculateNbWet : bool = None, NbWet : float = None, AutoCalculateNbDry : bool = None, NbDry : float = None, AutoCalculateNdParameter : bool = None, NdParameter : float = None, AutoCalculateADoParameter : bool = None, ADoParameter : float = None, AutoCalculateRuMax : bool = None, RuMax : float = None, Hp0Parameter : float = None, AutoCalculateCEpsParameter : bool = None, CEpsParameter : float = None, YieldSurfaceM : float = None, AutoCalculateH0Parameter : bool = None, H0Parameter : float = None, AutoCalculateCKafParameter : bool = None, CKafParameter : float = None, AutoCalculateZmax : bool = None, Zmax : float = None, AutoCalculateCzParameter : bool = None, CzParameter : float = None):
|
|
136
140
|
if AutoCalculateSuParameter is not None:
|
|
137
141
|
self._setBoolProperty("MP_USE_AUTO_SU", AutoCalculateSuParameter)
|
|
138
142
|
if SuParameter is not None:
|
|
@@ -147,6 +151,8 @@ class PM4SiltStrength(PropertyProxy):
|
|
|
147
151
|
self._setBoolProperty("MP_USE_AUTO_LAMBDA", AutoCalculateLambda)
|
|
148
152
|
if Lambda is not None:
|
|
149
153
|
self._setDoubleProperty("MP_PM4_SILT_LAMBDA", Lambda)
|
|
154
|
+
if AutoCalculateFsu is not None:
|
|
155
|
+
self._setBoolProperty("MP_USE_AUTO_FSU", AutoCalculateFsu)
|
|
150
156
|
if Fsu is not None:
|
|
151
157
|
self._setDoubleProperty("MP_PM4_SILT_FSU", Fsu)
|
|
152
158
|
if AutoCalculatePhiCv is not None:
|
|
@@ -206,6 +212,7 @@ class PM4SiltStrength(PropertyProxy):
|
|
|
206
212
|
"EInitial" : self.getEInitial(),
|
|
207
213
|
"AutoCalculateLambda" : self.getAutoCalculateLambda(),
|
|
208
214
|
"Lambda" : self.getLambda(),
|
|
215
|
+
"AutoCalculateFsu" : self.getAutoCalculateFsu(),
|
|
209
216
|
"Fsu" : self.getFsu(),
|
|
210
217
|
"AutoCalculatePhiCv" : self.getAutoCalculatePhiCv(),
|
|
211
218
|
"PhiCv" : self.getPhiCv(),
|
|
@@ -76,6 +76,10 @@ class SofteningHardeningModel(PropertyProxy):
|
|
|
76
76
|
return CapTypes(self._getEnumECapTypesProperty("MP_SH_CAP_TYPE"))
|
|
77
77
|
def setCapType(self, value: CapTypes):
|
|
78
78
|
return self._setEnumECapTypesProperty("MP_SH_CAP_TYPE", value)
|
|
79
|
+
def getCapHardeningType(self) -> CapHardeningTypes:
|
|
80
|
+
return CapHardeningTypes(self._getEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE"))
|
|
81
|
+
def setCapHardeningType(self, value: CapHardeningTypes):
|
|
82
|
+
return self._setEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE", value)
|
|
79
83
|
def getInitialMeanStress(self) -> float:
|
|
80
84
|
return self._getDoubleProperty("MP_INITIAL_MEAN_STRESS")
|
|
81
85
|
def setInitialMeanStress(self, value: float):
|
|
@@ -107,7 +111,7 @@ class SofteningHardeningModel(PropertyProxy):
|
|
|
107
111
|
returns a list of (x,y) tuples.
|
|
108
112
|
"""
|
|
109
113
|
return self._callFunction("getSHCapMeanStress", [])
|
|
110
|
-
def setProperties(self, PeakTensileStrength : float = None, PeakFrictionAngle : float = None, PeakCohesion : float = None, ConeHardeningType : ConeHardeningTypes = None, HardeningProperty : float = None, DilationAngle : float = None, ConeDilationType : DilationTypes = None, CapType : CapTypes = None, InitialMeanStress : float = None, LambdaKappa : float = None):
|
|
114
|
+
def setProperties(self, PeakTensileStrength : float = None, PeakFrictionAngle : float = None, PeakCohesion : float = None, ConeHardeningType : ConeHardeningTypes = None, HardeningProperty : float = None, DilationAngle : float = None, ConeDilationType : DilationTypes = None, CapType : CapTypes = None, CapHardeningType : CapHardeningTypes = None, InitialMeanStress : float = None, LambdaKappa : float = None):
|
|
111
115
|
if PeakTensileStrength is not None:
|
|
112
116
|
self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", PeakTensileStrength)
|
|
113
117
|
if PeakFrictionAngle is not None:
|
|
@@ -124,6 +128,8 @@ class SofteningHardeningModel(PropertyProxy):
|
|
|
124
128
|
self._setEnumEDilationTypesProperty("MP_CONE_DILATION", ConeDilationType)
|
|
125
129
|
if CapType is not None:
|
|
126
130
|
self._setEnumECapTypesProperty("MP_SH_CAP_TYPE", CapType)
|
|
131
|
+
if CapHardeningType is not None:
|
|
132
|
+
self._setEnumECapHardeningTypesProperty("MP_SH_CAP_HARDENING_TYPE", CapHardeningType)
|
|
127
133
|
if InitialMeanStress is not None:
|
|
128
134
|
self._setDoubleProperty("MP_INITIAL_MEAN_STRESS", InitialMeanStress)
|
|
129
135
|
if LambdaKappa is not None:
|
|
@@ -138,6 +144,7 @@ class SofteningHardeningModel(PropertyProxy):
|
|
|
138
144
|
"DilationAngle" : self.getDilationAngle(),
|
|
139
145
|
"ConeDilationType" : self.getConeDilationType(),
|
|
140
146
|
"CapType" : self.getCapType(),
|
|
147
|
+
"CapHardeningType" : self.getCapHardeningType(),
|
|
141
148
|
"InitialMeanStress" : self.getInitialMeanStress(),
|
|
142
149
|
"LambdaKappa" : self.getLambdaKappa(),
|
|
143
150
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -2,9 +2,12 @@ import unittest
|
|
|
2
2
|
import types
|
|
3
3
|
import os
|
|
4
4
|
import sys
|
|
5
|
-
|
|
5
|
+
import subprocess
|
|
6
6
|
|
|
7
7
|
class TestExampleFiles(unittest.TestCase):
|
|
8
|
+
pathToPythonExecutable = None
|
|
9
|
+
|
|
10
|
+
@unittest.skipIf(not pathToPythonExecutable, "Requires path to the python executable to use to run the example files. ex: python or C:\env\Scripts\python.exe")
|
|
8
11
|
def test_run_example_files(self):
|
|
9
12
|
example_files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'docs', 'example_code')
|
|
10
13
|
for filename in os.listdir(example_files_dir):
|
|
@@ -14,12 +17,6 @@ class TestExampleFiles(unittest.TestCase):
|
|
|
14
17
|
if os.path.isdir(filePath):
|
|
15
18
|
continue
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
loader = SourceFileLoader(fullname, os.path.join(example_files_dir, filename))
|
|
21
|
-
pythonModuleToTest = types.ModuleType(loader.name)
|
|
22
|
-
loader.exec_module(pythonModuleToTest)
|
|
23
|
-
|
|
24
|
-
except Exception as e:
|
|
25
|
-
self.fail(f"Failed to run {filename}: {e}")
|
|
20
|
+
print(f"Running: {filename}...")
|
|
21
|
+
subprocess.run([self.pathToPythonExecutable, filePath], check=True)
|
|
22
|
+
print("Finished:" + filename)
|
|
@@ -84,4 +84,31 @@ class TestMaterialJointOptions(unittest.TestCase):
|
|
|
84
84
|
self.matJointOptions.setNumberOfJoints(1)
|
|
85
85
|
joint = self.matJointOptions.getJoint(0)
|
|
86
86
|
with self.assertRaises(Exception):
|
|
87
|
-
joint.GeosyntheticHyperbolicMaterial.setDilationRatio(-0.1)
|
|
87
|
+
joint.GeosyntheticHyperbolicMaterial.setDilationRatio(-0.1)
|
|
88
|
+
|
|
89
|
+
def testSetPermeabilityFactor(self):
|
|
90
|
+
self.matJointOptions.setNumberOfJoints(1)
|
|
91
|
+
joint = self.matJointOptions.getJoint(0)
|
|
92
|
+
joint.setSlipCriterion(JointTypes.MOHR_COULOMB)
|
|
93
|
+
joint.MohrCoulombMaterial.setApplyStageFactors(True)
|
|
94
|
+
fac1 = joint.MohrCoulombMaterial.stageFactorInterface.createStageFactor(1)
|
|
95
|
+
fac1.setJointPermeableFactor(True)
|
|
96
|
+
self.assertEqual(fac1.getJointPermeableFactor(),True)
|
|
97
|
+
fac1.setJointPermeableFactor(False)
|
|
98
|
+
self.assertEqual(fac1.getJointPermeableFactor(),False)
|
|
99
|
+
|
|
100
|
+
joint.setSlipCriterion(JointTypes.BARTON_BANDIS)
|
|
101
|
+
joint.BartonBandisMaterial.setApplyStageFactors(True)
|
|
102
|
+
fac1 = joint.BartonBandisMaterial.stageFactorInterface.getDefinedStageFactors()[1]
|
|
103
|
+
fac1.setJointPermeableFactor(True)
|
|
104
|
+
self.assertEqual(fac1.getJointPermeableFactor(),True)
|
|
105
|
+
fac1.setJointPermeableFactor(False)
|
|
106
|
+
self.assertEqual(fac1.getJointPermeableFactor(),False)
|
|
107
|
+
|
|
108
|
+
joint.setSlipCriterion(JointTypes.GEOSYNTHETIC_HYPERBOLIC)
|
|
109
|
+
joint.GeosyntheticHyperbolicMaterial.setApplyStageFactors(True)
|
|
110
|
+
fac1 = joint.GeosyntheticHyperbolicMaterial.stageFactorInterface.getDefinedStageFactors()[1]
|
|
111
|
+
fac1.setJointPermeableFactor(True)
|
|
112
|
+
self.assertEqual(fac1.getJointPermeableFactor(),True)
|
|
113
|
+
fac1.setJointPermeableFactor(False)
|
|
114
|
+
self.assertEqual(fac1.getJointPermeableFactor(),False)
|