compas_3dec
compas_3dec is a COMPAS integration for preparing, running, and
post-processing rigid-block analyses with 3DEC by Itasca Consulting Group.
Installation
pip install compas_3dec
Install COMPAS DEM interoperability support with:
pip install "compas_3dec[dem]"
For local development, clone the repository and install the development and documentation dependencies with:
pip install "compas_dem @ git+https://github.com/BlockResearchGroup/compas_dem.git@main"
pip install -e ".[dev,docs]"
The 3DEC executable is proprietary and must be installed separately.
Usage
from compas_3dec import ThreeDECAnalysisBuilder, ThreeDECSolver
builder = ThreeDECAnalysisBuilder.from_meshes(meshes, name="Arch gravity")
builder.set_material(density=2500, young_modulus=25e9, poisson_ratio=0.2)
builder.set_supports([0, 9])
builder.set_contact_properties()
builder.add_gravity()
analysis = builder.build()
results = ThreeDECSolver(workspace=r"C:\path\to\runs").solve(analysis)
Inputs can also be translated from a compas_dem problem with
ThreeDECAnalysisBuilder.from_dem_problem.
Native results can be processed selectively or converted to the limited
compas_dem.Results contract:
contacts = results.postprocess_contacts(analysis)
failure = results.postprocess_failure(analysis)
dem_results = results.to_compas_dem_results(analysis)
Development
pytest
ruff check .
ruff format .
mkdocs serve
Automated tests live in tests/. Executable analysis and visualisation
scripts live in scripts/. Generated solver runs should be stored outside the
repository or in an ignored runs/ directory.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file compas_3dec-0.2.0.tar.gz.
File metadata
- Download URL: compas_3dec-0.2.0.tar.gz
- Upload date:
- Size: 74.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9590f0aff685ddcc2bb640b79b606c2493e9686f7c9ffabd6ba0349fe98f9606
|
|
| MD5 |
4f892dfdec2ee3e5fa4b40057ae70ba6
|
|
| BLAKE2b-256 |
3ce98d58a392ef317a3bc2c222ad0b76702d9507ba081c81e5fbd9e73b9d451e
|
Provenance
The following attestation bundles were made for compas_3dec-0.2.0.tar.gz:
Publisher:
release.yml on BlockResearchGroup/compas_3dec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
compas_3dec-0.2.0.tar.gz -
Subject digest:
9590f0aff685ddcc2bb640b79b606c2493e9686f7c9ffabd6ba0349fe98f9606 - Sigstore transparency entry: 2655339235
- Sigstore integration time:
-
Permalink:
BlockResearchGroup/compas_3dec@373be5d3941b236f2ee972474de21878e7dcb80e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/BlockResearchGroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@373be5d3941b236f2ee972474de21878e7dcb80e -
Trigger Event:
push
-
Statement type:
File details
Details for the file compas_3dec-0.2.0-py3-none-any.whl.
File metadata
- Download URL: compas_3dec-0.2.0-py3-none-any.whl
- Upload date:
- Size: 67.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0ecec2e6f39362fdb562d7591433041011fb0dc54f84a536c5774d01a5595f
|
|
| MD5 |
d13158beeb05bee3cf3a1141d9a8d67f
|
|
| BLAKE2b-256 |
f6e1da2b3e11506bf3a3ed3984678e97a865a7ebf8ace0ffa1f0ed5c1bebacd8
|
Provenance
The following attestation bundles were made for compas_3dec-0.2.0-py3-none-any.whl:
Publisher:
release.yml on BlockResearchGroup/compas_3dec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
compas_3dec-0.2.0-py3-none-any.whl -
Subject digest:
1d0ecec2e6f39362fdb562d7591433041011fb0dc54f84a536c5774d01a5595f - Sigstore transparency entry: 2655339245
- Sigstore integration time:
-
Permalink:
BlockResearchGroup/compas_3dec@373be5d3941b236f2ee972474de21878e7dcb80e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/BlockResearchGroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@373be5d3941b236f2ee972474de21878e7dcb80e -
Trigger Event:
push
-
Statement type: