Casting is a solidification process, which means the solidification phenomenon controls most of the properties of the casting. Moreover, most of the casting defects occur during solidification, such as gas porosity and solidification shrinkage.
Solidification occurs in two steps: nucleation and crystal growth. In the nucleation stage, solid particles form within the liquid. When these particles form, their internal energy is lower than the surrounded liquid, which creates an energy interface between the two. The formation of the surface at this interface requires energy, so as nucleation occurs, the material actually undercools (i.e. cools below its solidification temperature) because of the extra energy required to form the interface surfaces. It then recalescences, or heats back up to its solidification temperature, for the crystal growth stage. Nucleation occurs on a pre-existing solid surface because not as much energy is required for a partial interface surface as for a complete spherical interface surface. This can be advantageous because fine-grained castings possess better properties than coarse-grained castings. A fine grain structure can be induced by grain refinement or inoculation, which is the process of adding impurities to induce nucleation.
All of the nucleations represent a crystal, which grows as the heat of fusion is extracted from the liquid until there is no liquid left. The direction, rate, and type of growth can be controlled to maximize the properties of the casting. Directional solidification is when the material solidifies at one end and proceeds to solidify to the other end; this is the most ideal type of grain growth because it allows liquid material to compensate for shrinkage.