This is an implementation of a rapid solidification model for solidification of dilute binary alloy in OpenFOAM_v_2006. Reference paper: Arvind Chouhan, Lutz Mädler, Nils Ellendt, Modeling of rapid solidification in laser Powder Bed Fusion process, 2023. This work can be referenced with the DOI: 10.5281/zenodo.10211418
- The solver can be compiled from the provided solver directory. This creates a solver named "AlCu8." The solver's name can be changed by modifying the 'files' in the 'Make' directory.
- The required variables are initialized in createFields.H.
- At each time step, the values of the variables are calculated in Variables.H.
- After calculating the variables, the phase field variable (Phi, PhaseEq.H) and the dimensionless supersaturation (u, CEq.H) are solved.
Running the case file:
- Generate the computational domain using blockMesh. The properties of the computational domain can be changed using the "blockMeshDict" file in the "System" folder.
- Use "setFields" to initiate the initial solid layer (found in the "setFieldsDict" file in the "System" folder).
- Use "decomposePar" to prepare for parallel processing (using the "decomposeParDict" file in the "System" folder).
- Use the "mpi" command for parallel processing.
Marerial properties can be edited using "transportProperties" file.

- Change the value of the partition coefficient based on solidification speed (refer to the reference paper).
- The value of "dx" needs to be adjusted based on cell size. Additionally, the value of the Antitrapping parameter "AP" changes according to "dx" (refer to the reference paper).
- The grain orientation can be modified by changing the "Theta0" parameter.
Feel free to reach out via email if you have any questions about the model or if you'd like to contribute!

