Skip to main content

Solver for Linear Elastic Fracture Mechanics problems

Project description

gcrack

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 .
    

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcrack-2026.1.26.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

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

gcrack-2026.1.26-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file gcrack-2026.1.26.tar.gz.

File metadata

  • Download URL: gcrack-2026.1.26.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gcrack-2026.1.26.tar.gz
Algorithm Hash digest
SHA256 073b7ab20c4a09457e2f5e3abdd919aa68a6af2e7920862db969f84745914ed8
MD5 86b823a88fbde6f56cc0d6c489a02edd
BLAKE2b-256 616b5bc660286ed8ea051db588d40c053fd6abd19e39558c3b9c336a8203360c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcrack-2026.1.26.tar.gz:

Publisher: deploy_pypi_package.yml on floiseau/gcrack

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

File details

Details for the file gcrack-2026.1.26-py3-none-any.whl.

File metadata

  • Download URL: gcrack-2026.1.26-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gcrack-2026.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 64bde1cda0b6b77ffca51b708499ca5cc6b331182674a712f893f3dbb54ff71f
MD5 323174517e2ea63fdf3b9b5e711c95ca
BLAKE2b-256 9723b24e4658cc382055253a2a35c36fe94903a39afaa981771caa3e34002ffa

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcrack-2026.1.26-py3-none-any.whl:

Publisher: deploy_pypi_package.yml on floiseau/gcrack

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page