-
Notifications
You must be signed in to change notification settings - Fork 41
Model Formulation
This page has moved to
https://pages.nist.gov/pf-recommended-practices/bp-guide-gh/ch1-model-formulation.html
Nana Ofori-Opuku, Jim Warren, Pierre-Clement Simon
- Review the literature
- Start with a careful lit review and see what others have done.
- Take the time to understand the derivations from the literature.
- Consider good examples from the literature (Can we list these on PFHub?)
- General Considerations on the formulation of phase field models
- Clearly define the equations, parameters, initial conditions, and boundary conditions
-
Clearly define and pose your physical problem before solving
- Complete dimensional analysis and understanding relevant scales; state the reference frame
- Plot your state functions before implementing them in code
- Consider the impact of interpolation functions, barrier functions, etc.
- Consider every boundary term and make sure you aren’t eliminating important terms. Check the fluxes
- Carefully consider your length and time scales
- References
Phase field models are, quite generally, extensions of classical non-equilibrium thermodynamics. There are quite a few treatments of this in the literature. Here we will follow formulations similar to those developed by Sekerka and Bi in "Interfaces for the Twenty-First Century."1 In that spirit, we will start with a very general formulation, including hydrodynamics, and then simplify the problem. For those interested in starting with a simple model, you can skip over much of the initial formulation and jump to the section on the further reduction of the problem.
In thermodynamics one usually starts from consideration of the internal energy
Here we are going to consider a single phase field
where
Here the superscript
To close the deal we now need to work our way through the various continuum-versions of the laws of nature.
In order to write down evolution equations we need to resort to the known laws of physics. For continuum theories, we really have only a few ideas to fall back on
- Conservation of mass
- Conservation of energy (First Law of Thermodynamics)
- Conservation of momentum and maybe angular momentum if absolutely necessary
- The second law of thermodynamics (entropy increases, free energy decreases...)
A complete discussion of how to use the above rules in this context is outside the scope of this best-practice guide, but we offer a highly abbreviated discussion of the ''flavor,'' following the ideas of irreversible thermodynamics (we largely are following works like deGroot and Mazur2, although the continuum mechanics community may be more comfortable with Noll, Coleman, and Truesdale3), as well as the aforementioned work by Sekerka and Bi1.
The first idea is that we need to specify a flux of particles
where
Notice that this implies (by construction) that
The law of conservation of mass can be simply written as
Then we use the definition of
Note that if we sum this equation over
At this point is is common to introduce the notation
the "Lagrangian derivative" or "material derivative". The we can write the mass conservation equation as
If the system in incompressible (a common assumption, although we'd have to abandon that if we want to consider gasses), then
The law of conservation of momentum (Newton's second Law) for a system without body forces (like gravity) can be written
where
Our final conservation expression is for energy. Just like the equation for momentum and mass, we start with a continuity form, and assume a flux of internal energy
We can then use the momentum equation as well as the mass continuity equation (along with incompressibility) to arrive at
We now write down the laws of thermodynamics for the densities.
where
and
Of course, given where we're headed, let's rewrite this as
We have chosen the entropy to "extend" non-classically, as it is the star actor in the second law of thermodynamics, so we can write the entropy production (which must be positive) as
where
where we have introduced
and
At this point we can insert the equations of motion we got from our conservation laws and do a lot of algebra, which we leave as an amusing exercise for the reader. We eventually find that
and
It is worth noting that this form for
where
After all this work we can now find constitutive equations. Inspection of the final expression for
where we have introduced mobilities and the viscosity
with
We have presented the derivation of equations of evolution for an incompressible, two-phase, multicomponent system. Most phase field treatments ignore the velocity terms, but for pedagogical purposes we have retained all of the terms that arise from flow (for an incompressible system). These terms should not just be tossed away without careful consideration of the system of interest! Nonetheless, now that we have taken care to show how these terms arise, and also, for careful readers, how to extend this approach to multiple phases and additional gradient corrections, we will proceed with some more simplifications for a less complex system. For those who are interested in solid state systems that can creep, the work of Mishin, Warren, Sekerka, and Boettinger (2013)4 extends this framework. Here we eliminate the
This system of equations should be adequate to describe a diffusion-controlled multicomponent, isothermal, two-phase system. One could, of course, retain thermal diffusion, add more phases, retain the velocity terms and more!
Now that we have specified that we wish to consider, a diffusion-controlled multicomponent, isothermal, two-phase system. We still need to decide on the specifics of the system, and, in particular, the thermodynamic state functions that detail how the energy or entropy vary. All of the variables need to be clearly defined, and ideally should be either parameters that can be traced to thermodynamic variables or other physical constraints. As noted, we wish to consider an isothermal system, and so we can use a Legendre transformation to replace
Additionally, we will now only consider only a two component systems, so we only have species
We now need to specify
Start with the ordinary free energy of the pure components as liquid and solid phases,
Form a function that represents both liquid and solid for pure A
This function combines the free energies of the liquid and solid with the interpolating function
Form the function,
where
With this specific choice of a regular solution free energy we at last have fully specified a system and its evolution!
Regardless of the explicit functional choices for the state function, the most important point made above is that the phase field method requires an explicit choice for this function. Once we have selected it, the equations derived above detail the evolution of the phase, composition, temperature, etc. Here we chose only to consider phase and composition, with temperature as a parameter. Having fully specified the state function, the next question is really about practical issues around a specific simulation. What are the boundary conditions? What are the relevant length scales. Here is a list of issues:
There are any number of dimensionless parameters that can be found in these models. Understanding their relative role is beyond the scope of this best practice guide, but constructing these numbers is straightforward and essential. Usually before attempting to solve the equations, it is useful to "scale" the equations, thereby reducing the total number of parameter in the problem. In general we can always rescale space and time to eliminate two parameters. For example, a natural unit for length
Using this definition of
Using these units will eliminate two parameters that need to explored when seeking solutions.
While we derived a specific choice of the free energy above, regardless of where you got the free energy (or other state function) it is wise to plot the function, as this will give you a quick check that your state function is well posed, has minima where you expect them to be.
We chose specific forms for our interpolation function
When implementing the boundary conditions, extreme care must be taken. One cannot just "zero-out" boundary terms, as this may break some requirement about mass conservation or other physical constraint.
- (Show examples on PFHub, possibly benchmark problems?)
- Be mindful of your assumptions and approximations
Having clearly defined the mathematical framework underlying the problem, it becomes important, prior to progressing further, to contemplate and thoroughly grasp the various assumptions and approximations inherent within the formulation. Often, the exacting mathematical underpinnings from which the model has arisen may have presented challenges of being intractable in their complexity, or alternatively, they might have been of an impractical nature or even lacking contact with empirical observations.
The considerations surrounding assumptions and approximations are distributed throughout various places throughout the model's formulation. Foremost, are the descriptors of thermodynamic energy density, which provide the basis for our understanding of energy relationships, as well as the delineations of boundary conditions and the specifications of initial conditions. Notably, the latter two warrant attention since, in the absence of these conditions, the partial differential equations that determine the temporal evolution of our problem could only hypothetically yield an infinite set of solutions.
- If possible, run a small test problem with and without approximations and to quantify their impact
- Consider how approximations change in different dimensions and symmetries
- If possible, avoid assuming symmetry to reduce the complexity of your problem
a) Identify the Smallest Feature Size of Interest in Your Problem: The smallest feature size refers to the smallest spatial scale that needs to be accurately resolved in your simulation. This could be, for example, the width of an interface between two distinct materials or the size of a fine structure. Properly resolving the smallest features is essential for capturing detailed interactions and behaviors in your system.
Additional Item 1: Generally the smallest feature is the interface width between the features that need to be resolved. The interface width often represents the smallest detail that demands attention. Neglecting this width may lead to inaccurate results and incomplete understanding of the system's behavior.
b) Identify the Smallest Time Scale of Interest in Your Problem: The smallest time scale corresponds to the fastest processes occurring in your system. It's important to accurately capture these time scales to ensure that rapid events are not overlooked or misrepresented.
Additional Item 2: The time steps you consider shall be small enough to allow capturing the kinetics of the process you want to model. Choosing appropriate time steps is crucial to accurately capture dynamic processes. Smaller time steps are necessary to capture fast kinetics and prevent underestimation or distortion of time-dependent phenomena.
c) Identify the Smallest Length Scales of Interest for All Physics and Consider How They Interact: This involves analyzing the smallest spatial scales relevant to each physical process in your simulation. Understanding how these different length scales interact is essential for capturing multi-scale effects accurately.
Additional Item 3: Depending on the numerical method used for solving the equations, you may need 5-10 mesh elements to resolve the interface. The mesh resolution, i.e., the number of mesh elements used to discretize the domain, plays a crucial role in capturing interfaces accurately. Higher mesh resolution is required to resolve fine interfaces properly.
-
The Sample Size You Consider Will Be Relevant to Your Feature Size: The size of the simulation domain should be appropriately chosen based on the scale of the features you are interested in. Having a domain that is much larger than necessary can lead to unnecessary computational costs, while having a domain that is too small might exclude important interactions.
-
It Is Recommended to Formulate Your Problem in a Non-Dimensional Form If Possible: Non-dimensionalization involves scaling variables in your equations to remove physical units. This can help simplify the equations, reduce the number of parameters, and make the problem more amenable to analysis and comparison.
-
If You Consider an Initial Condition Far from the Expected Steady State Solution, You May Need to Select a Significantly Smaller Time Step: When the initial condition differs significantly from the expected steady state, smaller time steps may be necessary to accurately capture the transient behavior and prevent numerical instability.
-
Be Mindful of Initial Conditions You Select: Poorly chosen initial conditions, especially for interfaces or abrupt changes, can lead to numerical artifacts, excessive computational demands, and inaccurate results. It's important to select physically meaningful initial conditions that smoothly transition into the desired system state.
Additional Item 4: They may also result in numerical artifacts that lead to artificial stabilization of unstable phases. Inaccurate initial conditions can stabilize phases that would otherwise be unstable, leading to unrealistic outcomes in your simulation.
-
Using Automatic Time Stepping Integrator Algorithms Can Benefit PF Simulations: Automatic time stepping algorithms adjust the time step size during simulation based on the system's dynamics. This can improve simulation efficiency by using larger time steps during stable periods and smaller steps during dynamic events.
In summary, these considerations highlight the importance of careful parameter selection, proper resolution of length and time scales, and accurate initial conditions when performing numerical simulations. Addressing these aspects helps ensure the reliability and validity of your simulation results in various scientific and engineering applications.
- Non-dimensionalization
- It gets MUCH harder with coupled physics, so be careful
1 Robert F Sekerka and Zhiqiang Bi. Phase field model of multicomponent alloy solidification with hydrodynamics. In Interfaces for the 21st Century: New Research Directions in Fluid Mechanics and Materials Science, pages 147-166. World Scientific, 2002.
2 Sybren Ruurds De Groot and Peter Mazur. Non-equilibrium thermodynamics. Dover Publications, 2013.
3 Lawrence E Malvern. Introduction to the Mechanics of a Continuous Medium. Prentice-Hall. 1969.
4 Yuri Mishin, James A Warren, Robert F Sekerka, and William J Boettinger. Irreversible thermodynamics of creep in crystalline solids. Physical Review B, 88(18):184303, 2013.
5 William J Boettinger, James A Warren, Christoph Beckermann, and Alain Karma. Phase-field simulation of solidification. Annual review of materials research, 32(1):163-194, 2002.
- Home
- Benchmark Presentations
- Peter Voorhees Phase Field Lectures
- Phase-Field Method Recommended Practices
- Workshop Presentations
- Miscellaneous