Model of gel maturation
The model of gel maturation is an example of phase-field model for two phases: solid and liquid and three compositions (ternary system). In section [lbm]
, the kernel is activated with the keyword problem=ternary_GP_mixt
. In the rest of this section, the mathematical model and input parameters are described for model option model=two_dilute
.
Mathematical model
In this model we are concerned with the diffusion of three components \(A\), \(B\) and \(C\) of compositions \(C_A\), \(C_B\) and \(C_C\). The compositions are conserved and the following relationship holds:
Phase-field equation
The phase-field model is derived from the grand-potential functional with dilute assumption for composition equations. The solid phase is indicated by \(\phi=0\) and the liquid phase by \(\phi=1\). The phase field equation writes:
where \(\tau\) is the relaxation time, \(W\) is the interface width, \(\omega_{dw}^{\prime}(\phi)\) is the derivative of the double-well potential with respect to \(\phi\) which is defined by
\(\lambda\) is the coupling parameter, \(p^{\prime}(\phi)\) is the derivative of an interpolation function with respect to \(\phi\):
and \(\Delta\omega(\boldsymbol{\mu})\) is defined by
Let us notice that the parameters \(\tau\) can be expressed by thermodynamic properties (e.g. height of double-well and coefficient in factor of \(\delta\Omega/\delta\phi\)). Finally in the .ini
input file, the usual parameters \(W\), \(\lambda\) and \(M_{\phi}\) are set.
Composition equations
where for each specie, the diffusion coefficient is interpolated by the bulk coefficients of each phase (solid and liquid):
for \(\alpha=A,B\).
The last composition is obtained by Eq. (107)
Chemical potentials
List of input parameters in .ini
file
One example of input file for that model is settings_ternary_instantaneous_diffusion.ini
. We describe below the content of that file where the sections [lbm]
, [params]
, [ccparams]
and [init]
must be wisely set.
1. Section [lbm]
To simulate that mathematical model, put the following options in section [lbm]
use the keyword
problem=ternary_GP_mixt
use the keyword
model=two_dilute
2. Section [params]
The list of parameters are summarized in Table below.
Phase-field parameters
Math symbol
Parameter name
Equation
.ini
file\(M_{\phi}\)
Mobility of interface
Eq. (336)
Mphi
\(W\)
Interface width
Eq. (336)
W
\(\lambda\)
Coupling parameter
Eq. (336)
lambda
Diffusion parameters
Math symbol
Parameter name
Equation
.ini
file\(\epsilon_{A}^{l}\)
Bulk energy of liquid phase for specie \(A\)
Eq. (116)
elA
\(\epsilon_{A}^{s}\)
Bulk energy of solid phase for specie \(A\)
Eq. (116)
esA
\(\epsilon_{B}^{l}\)
Bulk energy of liquid phase for specie \(B\)
Eq. (117)
elB
\(\epsilon_{B}^{s}\)
Bulk energy of solid phase for specie \(B\)
Eq. (117)
esB
\(\epsilon_{C}^{l}\)
Bulk energy of liquid phase for specie \(C\)
Eq.
elC
\(\epsilon_{C}^{s}\)
Bulk energy of solid phase for specie \(C\)
Eq.
esC
\(D_{A}^l\)
Bulk diffusion of specie \(A\) in liquid phase
Eq. (114)
DA1
\(D_{A}^s\)
Bulk diffusion of specie \(A\) in solid phase
Eq. (114)
DA0
\(D_{B}^l\)
Bulk diffusion of specie \(B\) in liquid phase
Eq. (114)
DB1
\(D_{B}^s\)
Bulk diffusion of specie \(B\) in solid phase
Eq. (114)
DB0
3. Section [ccparams]
cc
means composantes connexes. In this section six options can be set:
use_connected_components=
:yes
orno
print_cc_trace=
:yes
orno
CC_phi_threshold=
: real valueapply_virtual_volume=
:yes
orno
virtual_volume=
: real valuevirtual_volume_boundary=
: real value
4. Section [init]
Example of initialization for init_type=perco
init_type=
: keyword. Hereperco
initClA=
: positive real valueinitClB=
: positive real valueinitCsAA=
: positive real valueinitCsAB=
: positive real valueinitCsBA=
: positive real valueinitCsBB=
: positive real valueread_data_phi=
:yes
orno
file_data_phi=
: filename.dat (format i,j,k,value). See exampleinit_data_perco.dat