SymPhas --General purpose software for phase-field, phase-field crystal and reaction-diffusion simulations

Steven A. Silber, Mikko Karttunen
9/6/2021
physics.comp-phcond-mat.mtrl-sci

Official code: SoftSimu/SymPhas (32 stars, C++, LGPL-3.0, last commit 2026-10-23).

Abstract

This work develops a new open source API and software package called \textit{SymPhas} for simulations of phase-field, phase-field crystal and reaction-diffusion models, supporting up to three dimensions and an arbitrary number of fields. \textit{SymPhas} delivers two novel program capabilities: 1) User specification of models from the associated dynamical equations in an unconstrained form and 2) extensive support for integrating user-developed discrete-grid-based numerical solvers into the API. The capability to specify general phase-field models is primarily achieved by developing a novel symbolic algebra functionality that can formulate mathematical expressions at compile time, is able to apply rules of symbolic algebra such as distribution, factoring and automatic simplification, and support user-driven expression tree manipulation.

Show full abstract

A modular design based on the CC++ template meta-programming paradigm is applied to the symbolic algebra library and general API implementation to minimize application runtime and increase the accessibility of the API for third party development. \textit{SymPhas} is written in C/CC++ and emphasizes high-performance capabilities via parallelization with OpenMP and the CC++ standard library. \textit{SymPhas} is equipped with a forward Euler solver and a semi-implicit Fourier spectral solver. Sample implementations and simulations of several phase-field models are presented, generated using the semi-implicit Fourier spectral solver.

View on arXivView PDF

Code Implementations(1)

SoftSimu/SymPhasOfficial100%
LGPL-3.0

Repository for the SymPhas software for phase-field simulations

328C++, CudaAug 29, 20211 months agoLGPL-3.0

Similar Papers

Cite this paper

@article{silber2021symphas,
  title  = {SymPhas --General purpose software for phase-field, phase-field crystal and reaction-diffusion simulations},
  author = {Steven A. Silber and Mikko Karttunen},
  year   = {2021},
  eprint = {2109.02598},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.02598}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.02598.svg)](https://codeofpaper.com/paper/2109.02598)

Discussion