# phasefieldx | Miguel Castillón | Knowledge Base | Instagit

An Open-Source Framework for Advanced Phase-Field Simulations

GitHub Stars: 48

Repository: https://github.com/castillonmiguel/phasefieldx

---

## Articles

### [PhaseFieldX Unit Testing Framework: How to Add Tests with pytest](/castillonmiguel/phasefieldx/unit-testing-framework-and-adding-tests)

Learn to add unit tests to PhaseFieldX using pytest. Create test files as test_*.py in the test directory and write test_* functions.

- Tags: how-to-guide
- Published: 2026-02-27

### [How to Run Parallel Simulations Efficiently with PhaseFieldX](/castillonmiguel/phasefieldx/running-parallel-simulations-efficiently)

Learn to run parallel simulations efficiently with PhaseFieldX. Discover how PhaseFieldX automatically handles domain decomposition, parallel assembly, and distributed I/O using its FEniCSx/PETSc backend.

- Tags: how-to-guide
- Published: 2026-02-27

### [How to Implement Custom Energy Functions in PhaseFieldX: A Complete Developer Guide](/castillonmiguel/phasefieldx/implementing-custom-energy-functions)

Implement custom energy functions in PhaseFieldX by defining UFL routines and registering them in the psi_a or psi_b dispatcher. This guide shows you how.

- Tags: how-to-guide
- Published: 2026-02-27

### [Computational Bottlenecks in PhaseFieldX: Optimization Strategies for Phase-Field Fracture Simulations](/castillonmiguel/phasefieldx/computational-bottlenecks-and-optimization)

Discover computational bottlenecks in PhaseFieldX fracture simulations. Optimize with cached assemblies, Krylov solvers, and efficient energy calculations for faster results.

- Tags: performance
- Published: 2026-02-27

### [PhaseFieldX Logging Capabilities: A Complete Guide to Simulation Tracing and Reproducibility](/castillonmiguel/phasefieldx/logging-capabilities-provided)

Explore PhaseFieldX logging capabilities for simulation tracing and reproducibility.  Capture system metadata, parameters, and timing for complete simulation tracking.

- Tags: how-to-guide
- Published: 2026-02-27

### [How to Validate PhaseFieldX Simulations Against Reference Solutions: A Complete Guide](/castillonmiguel/phasefieldx/validating-simulations-against-references)

Validate PhaseFieldX simulations effectively by loading output files and comparing them to benchmark CSVs. Learn how to ensure your simulation accuracy with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-02-27

### [Performance Considerations for Large-Scale Phase-Field Simulations](/castillonmiguel/phasefieldx/performance-considerations-large-simulations)

Discover performance considerations for large-scale phase-field simulations. PhaseFieldX achieves massive scalability using MPI-parallel execution and advanced solvers on distributed clusters.

- Tags: performance
- Published: 2026-02-27

### [How to Implement Fatigue Simulations Using PhaseFieldX: A Complete Guide](/castillonmiguel/phasefieldx/implementing-fatigue-simulations)

Master fatigue simulations in PhaseFieldX with our comprehensive guide. Learn to set fatigue to True, choose degradation functions, and optimize the solver for accurate results. Start your fatigue analysis today.

- Tags: how-to-guide
- Published: 2026-02-27

### [PhaseFieldX Reaction Forces: Available Components and Computation Methods](/castillonmiguel/phasefieldx/reaction-forces-computation)

Explore PhaseFieldX reaction forces. Learn about available components and computation methods for R=(Rx, Ry, Rz) vectors at Dirichlet boundaries directly from the source code.

- Tags: deep-dive
- Published: 2026-02-27

### [How to Handle Adaptive Mesh Refinement in PhaseFieldX Simulations](/castillonmiguel/phasefieldx/adaptive-mesh-refinement-handling)

Learn to handle adaptive mesh refinement in PhaseFieldX simulations using Gmsh and DolfinX. Control element size for localized refinement without solver code changes.

- Tags: how-to-guide
- Published: 2026-02-26

### [Phase-Field Fracture Models in PhaseFieldX: Isotropic vs Anisotropic Formulations Explained](/castillonmiguel/phasefieldx/differences-between-fracture-models)

Explore isotropic vs anisotropic phase-field fracture models in PhaseFieldX. Understand key differences in degradation, energy splits, and crack functions to choose the right model for your simulation.

- Tags: deep-dive
- Published: 2026-02-26

### [How to Export Simulation Results for ParaView Using Phasefieldx](/castillonmiguel/phasefieldx/exporting-results-for-paraview)

Effortlessly export phasefieldx simulation results to ParaView. The library auto-generates VTU and XDMF files for direct import and visualization.

- Tags: how-to-guide
- Published: 2026-02-26

### [What Mesh Formats Does PhaseFieldX Support? A Complete Guide to Gmsh, XDMF, and VTU](/castillonmiguel/phasefieldx/supported-mesh-formats)

Discover PhaseFieldX mesh formats. Learn about Gmsh msh input and XDMF VTU VTK output using its Dolfinx backend for seamless simulations.

- Tags: how-to-guide
- Published: 2026-02-26

### [How the Newton Solver Works Internally Within PhaseFieldX: PETSc Configuration and Implementation](/castillonmiguel/phasefieldx/newton-solver-internal-working)

Explore the internal workings of the Newton solver in PhaseFieldX. Learn how it leverages PETSc for efficient nonlinear phase-field problem solutions, configuring tolerances, sub-solvers, and damping.

- Tags: internals
- Published: 2026-02-26

### [Tensor Operations in the PhaseFieldX Math Module: Decomposition, Invariants, and Spectral Analysis](/castillonmiguel/phasefieldx/tensor-operations-math-module)

Explore PhaseFieldX Math module's UFL-compatible tensor operations for phase-field simulations. Discover decomposition, invariants, spectral analysis, and more.

- Tags: deep-dive
- Published: 2026-02-26

### [How to Calculate Error Norms and Check Convergence in PhaseFieldX](/castillonmiguel/phasefieldx/calculating-error-norms-and-convergence)

Learn how to calculate L², H¹, and Lᵖ error norms and monitor convergence in PhaseFieldX. Utilize dedicated modules for accurate error analysis and solver feedback.

- Tags: how-to-guide
- Published: 2026-02-26

### [PhaseFieldX Post-Processing Tools for Visualization and Quantitative Analysis](/castillonmiguel/phasefieldx/post-processing-visualization-tools)

Explore PhaseFieldX post-processing tools for advanced visualization and quantitative analysis. Generate publication-ready metrics and visualizations with ease from simulation data.

- Tags: tutorial
- Published: 2026-02-26

### [How to Implement Different Loading Conditions in PhaseFieldX Simulations](/castillonmiguel/phasefieldx/implementing-different-loading-conditions)

Learn how to implement different loading conditions in PhaseFieldX simulations using its three-step workflow. Discover how to create, collect, and update load objects for advanced simulations.

- Tags: how-to-guide
- Published: 2026-02-26

### [What Material Models Are Supported by PhaseFieldX?](/castillonmiguel/phasefieldx/supported-material-models)

Discover the material models supported by PhaseFieldX. It features an isotropic linear-elastic model with seamless conversion of common elastic constants.

- Tags: deep-dive
- Published: 2026-02-26

### [How to Define Custom Boundary Conditions in PhaseFieldX: A Complete Guide](/castillonmiguel/phasefieldx/custom-boundary-conditions-definition)

Easily define custom boundary conditions in PhaseFieldX by creating PETSc scalar values and locating DOFs on facets. This guide offers a complete walkthrough using dolfinx.

- Tags: how-to-guide
- Published: 2026-02-26

### [What Solvers Are Available in Phasefieldx and How Do They Differ: A Complete Guide](/castillonmiguel/phasefieldx/available-solvers-and-differences)

Explore Phasefieldx's nine finite-element solvers, from staggered fracture to monolithic formulations. Understand their differences and find the best fit for your material models and coupling strategies.

- Tags: deep-dive
- Published: 2026-02-26

### [How the Phase-Field Fracture Model Works in PhaseFieldX: A Technical Deep Dive](/castillonmiguel/phasefieldx/how-phase-field-fracture-model-works)

Explore the phase-field fracture model in PhaseFieldX. Discover its staggered finite-element formulation, spectral energy splits, and modular degradation functions for brittle fracture simulation.

- Tags: deep-dive
- Published: 2026-02-26

