Skip to main content
PhaseFieldX

Welcome to PhaseFieldX. documentation

Introduction

The PhaseFieldX project is designed to simulate and analyze material behavior using phase-field models, which provide a continuous approximation of interfaces, phase boundaries, and discontinuities such as cracks. Leveraging the robust capabilities of FEniCSx, a renowned finite element framework for solving partial differential equations, this project facilitates efficient and precise numerical simulations. It supports a wide range of applications, including phase-field fracture, solidification, and other complex material phenomena, making it an invaluable resource for researchers and engineers in materials science.

Purpose

The PhaseFieldX project aims to advance phase-field modeling through open-source contributions. By leveraging the powerful FEniCSx framework, our goal is to enhance and broaden the application of phase-field simulations across various domains of materials science and engineering. We strive to make these advanced simulation techniques more accessible, enabling researchers and engineers to conduct more accurate and comprehensive scientific investigations. Through collaborative efforts, our mission is to deepen understanding, foster innovation, and contribute to the broader scientific community’s pursuit of knowledge in complex material behaviors.

Key Features

  • Phase-Field Method: The code employs the phase-field method, a versatile mathematical framework for modeling phenomena such as fracture, phase transitions, and pattern formation as diffuse processes. It enables the simulation of complex behaviors and multiple interacting phenomena within a unified framework.

  • FEniCSx Integration: Integrated with FEniCSx, a powerful finite element framework, the code provides robust capabilities for solving partial differential equations governing phase-field simulations. This integration ensures efficient computation and adaptive mesh refinement, enhancing simulation accuracy and scalability.

  • User-Friendly Interface: Designed with usability in mind, the code features an intuitive interface for defining material properties, boundary conditions, and simulation parameters. This interface caters to both novice users and experienced researchers, facilitating straightforward setup and execution of simulations.

  • Advanced Visualization: The code includes advanced visualization tools to depict simulation results effectively. These tools enable comprehensive analysis of crack propagation, stress distributions, and other key quantities, supporting insightful interpretations and comparisons across simulations.

Installation Instructions

To use this repository, you need to have the latest stable release of FEniCSx installed. The latest stable release of FEniCSx is version 0.8. The easiest way to start using FEniCSx on MacOS and other systems is to install it using conda.

Follow these steps to set up your environment:

  1. Create a new conda environment

    conda create -n phasefieldx-env
  2. Activate the new environment

    conda activate phasefieldx-env
  3. Install FEniCSx, mpich, pyvista, and pandas from the conda-forge channel:

    conda install -c conda-forge fenics-dolfinx mpich pyvista pandas
  4. Install gmsh

    pip install --upgrade gmsh
  5. Finally, install the code from this repository

    pip install phasefieldx

These steps will set up all the necessary dependencies for running the code in this repository. Make sure to activate the phasefieldx-env environment whenever you work with this project.

For more detailed installation options and information, please visit the FEniCSx Project download page.

Examples

There are numerous examples available to demonstrate the usage of PhaseFieldX for various phase-field simulations. These examples cover different scenarios such as phase-field fracture, phase-field fatigue, and more complex material behavior simulations. Explore the examples in the documentation to learn more.

API Documentation

For detailed API documentation, including class references, function definitions, and usage examples, please refer to the API documentation.

Contributions and Feedback

We welcome contributions and feedback from the community to enhance the code’s functionality, reliability, and user experience. Engage with us through our GitHub repository to share your insights.

Thank you for choosing our Phase-Field Fracture simulation code. We trust this tool will prove invaluable in advancing your understanding of fracture mechanics and its practical applications.

Metadata

Release files for phasefieldx 0.0.2

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

Source distribution (sdist)

Source distribution for phasefieldx 0.0.2
File Size Uploaded
phasefieldx-0.0.2.tar.gz 19.6 MB Details

Built distribution (wheel)

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

Total release size: 19.7 MB

Release files / phasefieldx-0.0.2.tar.gz

Download URL phasefieldx-0.0.2.tar.gz
Size 19.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3b7b2af2ab71dedde6ce9231fdef775f822a77ebde0b8d0ec2ef3a461797392f
BLAKE2b-256 checksum
How to use checksums
b8abdf036aa9122a53575caa529a2e115a9ca6bdcb4e8ed3b685fbeb80814970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / phasefieldx-0.0.2-py3-none-any.whl

Download URL phasefieldx-0.0.2-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c3b0ff38450947bcf280c2260a0ff3a2f3a2e5d28aa333f0464d234b06fee88
BLAKE2b-256 checksum
How to use checksums
4e9637e0177c80eeb4b0fb6de938de9b0599498b696da918103adfc95546bc43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 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