A Python package for GPU-accelerated 3D Phase Field Crystal simulations
Overview
pyPFC is a high-performance simulation framework designed for modeling crystal structures and their evolution using the Phase Field Crystal (PFC) method. The code uses PyTorch to allow execution on both CPUs and GPUs, with particularly efficiency gained on GPU platforms. pyPFC is developed with a combined focus on computational efficiency, flexibility and accessibility, making it suitable for both research and educational purposes.
Installation instructions, examples and API documentation can be found in the pyPFC documentation.
Licencing
This software is released under a GNU GPLv3 license.
References
Further details on PFC modeling and example applications can be found in:
- H. Hallberg and K.H. Blixt, Grain rotation during grain growth: A 3D phase field crystal study, IOP Conference Series: Materials Science and Engineering, 1350:012027, 2026
- H. Hallberg, D. Juul Jensen and T. Yu, Phase Field Crystal Modeling of Subgrain Coarsening, Acta Materialia, 320:122685, 2026
- K.H. Blixt and H. Hallberg, Inclination-dependent shear-coupling and energy anisotropy in FCC tilt grain boundaries, Acta Materialia, 315:122379, 2026
- H. Hallberg and K.H. Blixt, pyPFC: an open-source Python package for phase field crystal simulations, Modelling and Simulation in Materials Science and Engineering, 34(1):015004, 2026
- K.H. Blixt and H. Hallberg, Phase Field Crystal Modeling of Grain Boundary Migration: Mobility, Energy and Structural Variability, Acta Materialia, 297:121318, 2025
- H. Hallberg and K.H. Blixt, Assessing grain boundary variability through phase field crystal simulations, Physical Review Materials, 8(3):113605, 2024
- K.H. Blixt and H. Hallberg, Phase field crystal modeling of grain boundary structures in diamond cubic systems, Physical Review Materials, 8(3):033606, 2024
- H. Hallberg and K.H. Blixt, Multiplicity of grain boundary structures and related energy variations, Materials Today Communications, 38:107724, 2024
- H. Hallberg and K.H. Blixt, Evaluation of Nanoscale Deformation Fields from Phase Field Crystal Simulations, Metals, 12(10):1630, 2022
- K.H. Blixt and H. Hallberg, Grain boundary and particle interaction: Enveloping and pass-through mechanisms studied by 3D phase field crystal simulations, Materials & Design, 220:110845, 2022
- K.H. Blixt and H. Hallberg, Grain boundary stiffness based on phase field crystal simulations, Materials Letters, 318:132178, 2022
- K.H. Blixt and H. Hallberg, Evaluation of grain boundary energy, structure and stiffness from phase field crystal simulations, Modelling and Simulation in Materials Science and Engineering, 30(1):014002, 2022
Metadata
Release files for pypfc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypfc-0.1.0.tar.gz | 100.6 kB | With provenance | Details for pypfc-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypfc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pypfc-0.1.0-py3-none-any.whl |
Total release size: 205.0 kB
Release files / pypfc-0.1.0.tar.gz
| Download URL | pypfc-0.1.0.tar.gz |
|---|---|
| Size | 100.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4c87f81f331e84a151f9852b7dab8bd6fafc35514450b8ebc054f965cd97bf1
|
|
BLAKE2b-256 checksum How to use checksums |
c090ed161823effb5dc83b288a42e7d3b7ed34158466358ad3ae622462bd86f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / pypfc-0.1.0-py3-none-any.whl
| Download URL | pypfc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 104.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e8c182febcdaa737b5473b908065561d0fa99fcd9e36fb52997b0b7b7235f70
|
|
BLAKE2b-256 checksum How to use checksums |
10446d46625a94a0391f48255e50c64267ceadcd27773b214a850f35ea471055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for pypfc 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pypfc-0.1.0.tar.gz
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 Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.