Skip to main content

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

compas_3dec-0.2.0.tar.gz (74.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compas_3dec-0.2.0-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

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

Hashes for compas_3dec-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9590f0aff685ddcc2bb640b79b606c2493e9686f7c9ffabd6ba0349fe98f9606
MD5 4f892dfdec2ee3e5fa4b40057ae70ba6
BLAKE2b-256 3ce98d58a392ef317a3bc2c222ad0b76702d9507ba081c81e5fbd9e73b9d451e

See more details on using hashes here.

Provenance

The following attestation bundles were made for compas_3dec-0.2.0.tar.gz:

Publisher: release.yml on BlockResearchGroup/compas_3dec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for compas_3dec-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0ecec2e6f39362fdb562d7591433041011fb0dc54f84a536c5774d01a5595f
MD5 d13158beeb05bee3cf3a1141d9a8d67f
BLAKE2b-256 f6e1da2b3e11506bf3a3ed3984678e97a865a7ebf8ace0ffa1f0ed5c1bebacd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for compas_3dec-0.2.0-py3-none-any.whl:

Publisher: release.yml on BlockResearchGroup/compas_3dec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page