Skip to main content

gcrack

License GitHub PyPI Documentation Zenodo

gcrack is a simulation tool designed to model crack propagation in anisotropic media. It is based on linear elastic fracture mechanics, specifically the GMERR (Generalized Maximum Energy Release Rate) criterion, to simulate incremental crack propagation with remeshing.

Features

  • Incremental Propagation: Simulates crack growth step-by-step, with an explicit remeshing of the crack.
  • Linear Elastic Fracture Mechanics: Utilizes GMERR for determine the direction of crack propagation.
  • Anisotropic Media Simulation: Accurately models crack propagation in materials with directionally dependent properties.

Installation

To install gcrack, follow these steps:

  1. Create and activate a new conda environment:

    conda create -n gcrack
    conda activate gcrack
    
  2. Install the required dependencies:

    conda install -c conda-forge numpy sympy mpich python-gmsh fenics-dolfinx pyvista jax jaxlib=*=*cpu*
    
  3. Install gcrack:

    pip install .       # If you cloned the repo
    pip install gcrack  # If you want to install from pypi
    

How to Use

Examples are provided in the gcrack/examples/ directory. Each example typically includes:

  • run.py: Contains the problem definition and simulation setup.
  • display_results.py: Script to visualize the simulation results.
  • Makefile: Automates the simulation process.

To run a simulation, follow these steps:

  1. Activate the conda environment:

    conda activate gcrack
    
  2. Navigate to the example directory and run the simulation:

    cd gcrack/examples/example_name
    make simulation
    

Release files for gcrack 2026.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcrack 2026.6.9
File Size Uploaded
gcrack-2026.6.9.tar.gz 45.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcrack 2026.6.9
File Interpreter ABI Platform
gcrack-2026.6.9-py3-none-any.whl Python 3 none any Details

Total release size: 97.4 kB

Release files / gcrack-2026.6.9.tar.gz

Download URL gcrack-2026.6.9.tar.gz
Size 45.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fef06ed07938610bf1f769497f814b00503f414e4e49a83f4c1c4bd3c7392f88
BLAKE2b-256 checksum
How to use checksums
78c944ff1a9c4f6c344840bee136c2f88bead5c3c7216bc2d9503db2f7724492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 9, 2026.

Transparency log

Release files / gcrack-2026.6.9-py3-none-any.whl

Download URL gcrack-2026.6.9-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5b7830d8f9a1d1d1237ce0898eb38b8feead29c1fd02f40d60740af46b2bd1b
BLAKE2b-256 checksum
How to use checksums
499986adc1bd1b1615791d7f97434fe3dcc4c22e776b4bf7b1c2f22f06a53520
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.6.9 This release

2 release 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