Phase field equations solver¶
phaseFieldFoam is based on laplacianFoam, a simple Laplace equation solver. phaseFieldFoam solves the phase field model of Warren, Kobayashi, Lobkovsky and Carter (2003) doi:10.1016/S1359-6454(03)00388-4 that includes anisotropy.
Definition in file phaseFieldFoam.C
Installation¶
wmake¶
wmake is OpenFOAM’s own compilation script.
Pre-requisites:
A working installation of OpenFOAM 10.
All the included libraries:
After cloning the repository, compile wmake applications:
$ (cd wmake/src && make )
In the phaseFieldFoam/applications/solver/multiphase/phaseFieldFoam directory, run:
$ wmake
CMake¶
Pre-requisites:
A working installation of OpenFOAM 10.
CMake (>= 3.17.0)
In the repository root directory (containting the main CMakeLists.txt), run:
$ cmake -DCMAKE_BUILD_TYPE=Release -S . -B build # Build everything in a separate directory
$ cd build # Enter build directory
$ make VERBOSE=1 # Compile and link all libraries and phaseFieldFoam, and copy files to OpenFOAM path
To compile phaseFieldFoam in Debug mode, run:
$ cmake -DCMAKE_BUILD_TYPE=Debug -S . -B debug # Build everything in a separate directory
$ cd debug # Enter debug directory
$ make VERBOSE=1 # Compile and link all libraries and phaseFieldFoam, and copy files to OpenFOAM path
Running the application¶
In the case directory, run:
$ phaseFieldFoam
Nomenclature¶
Variable |
Description |
---|---|
DT |
Heat diffusion coefficient |
tau |
Phase field transient coefficient |
alpha |
Anisotropic diffusion tensor coefficient |
c |
Anisotropic diffusion tensor coefficient |
N |
Crystal symmetry |
kappa1 |
Anisotropy coefficient |
kappa2 |
Anisotropy coefficient |