-
Notifications
You must be signed in to change notification settings - Fork 41
Model Formulation
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?)
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." 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
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 know 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 Mazur, although the continuum mechanics community may be more comfortable with Noll, Coleman, and Truesdale), as well as the aforementioned work by Sekerka and Bi.
The first idea is that we need to specify a flux of particles
The law of conservation of mass can be simply written as
At this point is is common to introduce the notation
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
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 now write down the laws of thermodynamics for the densities.
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
After all this work we can now find constitutive equations. Inspection of the final expression for
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) 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
#State function
Once one has decided on the thermodynamic picture. It is best to get a bit more specific in posing your physical problem. Now lets say we want to consider a binary solution where there are just two phases (say liquid and solid). We could have considered three components
We're now in a position to write down something that looks like a phase field model. We have a variable
We have now made a few more major assumptions. We have postulated that the energy density can be written as a ''bulk'' piece that interpolates between two phases
- Complete dimensional analysis and understanding relevant scales; state the reference frame
- Plot your free energy before implementing it
- 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 (add benchmark problem or discussion to Poisson problem?)
- (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
- Home
- Benchmark Presentations
- Peter Voorhees Phase Field Lectures
- Phase-Field Method Recommended Practices
- Workshop Presentations
- Miscellaneous