SPIDER: model overview
Here you can find a detailed overview of the SPIDER formulation.
Note: This model overview is taken from the notes and contains an extended description of the equations and derivations related to the SPIDER code. It is still work in progress.
Thermodynamic energy transport and enthalpy fluxes
Goal: Understand the origin of the energy transport associated with the enthalpy of chemical/phase components. This derives the energy equation for a multi-component system that appears in the appendix of 1.
In the following section, I combine the notation from 2 and 1 so beware of notation changes compared to the original papers. Where a choice can be made, I typically stick to the notation of 1.
Conservation and entropy balance
Conservation of mass fraction (2, also 1), where \(i\) is a thermodynamic (chemical) component and \(j\) refers to a reaction:
Here I define \(\mathcal{J}_j\) as the rate of reaction \(j\) per unit mass (same as \(w_j\) in 1 but this notation may be confused with mass fraction \(\omega\) which is why I change the symbol). 1 defines \(\nu_{ij}\) as the mass of component \(i\) formed by reaction \(j\). Note that 2 use slightly different definitions of these quantities, since they define \(\mathcal{J}\) as a mass per unit volume and unit time and omit the leading \(\rho\) term.
where the entropy flux \(\vec{J}_s\) is the difference between the total entropy flux \(\vec{J}_{s,\ tot}\) and a convective term \(\rho s v\) (2):
The entropy balance, excluding viscous dissipation and external forces, is (2):
Where entropy flux is (2):
and entropy production is (2):
By using the thermodynamic relation (2):
we can define a new flux as (2):
Eq. \(\ref{eq:Jqprime}\) is the definition of heat flux used by 1 and therefore it removes the energetic contribution associated with the transport of enthalpy by the components. This term then reappears as an entropy source term, since of course the physics must remain the same!
Then entropy flow is (2, also 1):
where \(s_i = -(\mu_i-h_i)/T\) is the partial specific entropy of component \(i\). Written in this way the entropy flux contains the heat flow \(\vec{J}_q^\prime\) and a transport of partial entropies with respect to the barycentric velocity \(v\).
The entropy production associated with this definition can be written as (2, also 1):
Quoted from 2
“It is clear that the difference between \(\vec{J}_q\) and \(\vec{J}_q^\prime\) (Eq. \(\ref{eq:Jqprime}\)) represents a transfer of heat due to diffusion. Therefore the quantity \(\vec{J}_q^\prime\) also represents an irreversible heat flow. In fact in diffusing mixtures the concept of heat flow can be defined in different ways. Obviously a different definition of the notion of heat flux leaves all physical results unchanged. But to any particular choice corresponds a special form of the entropy production \(\sigma\). It is a matter of expediency which choice is the most suitable in a particular application of the theory. The freedom of defining the heat flow in various ways, of which the possibility was indicated here in the framework of a macroscopic treatment, exists also in the microscopic theories of transport phenomena in mixtures.”
Abe chooses to model \(J_q^\prime\) as a convective heat flux using mixing length theory. In this regard, 1 excludes the energetic contribution of the enthalpy transport of the components (but remember it appears later in Abe's formulation). Now, using the above equations we can derive 1 using several vector identities:
Sub in \(\sigma\) (Eq. \(\ref{eq:DM62_ch3_eq25}\)) and immediately see that the \(1/T^2\) term cancels leaving:
Now use Eq. \(\ref{eq:ABE95_A2}\) to eliminate the chemical reaction term:
Collect terms. 1 missing \(\rho\) on the RHS:
Now use \(h_i = \mu_i + T s_i\):
Leading to 1, 1 missing \(\rho\):
How 1 is derived from this point is confusing. It appears that if you literally swap out components and replace them with phases, where the two phases are melt and solid, you can reproduce 1. But then later, 1 states that this equation must be “modified for multi-component systems, because energy transport due to mass transport must be taken into account”. He then goes onto to derive the following equation, which makes sense based on 1. The transport of thermodynamic components can be divided between a melt and solid phase. This is how the notion of phases is introduced into the formulation.
Introducing phases (melt / solid)
The transport of thermodynamic components can be divided between a melt and solid phase:
where \(h_i^m\) and \(h_i^s\) are the partial specific enthalpy of component \(i\) in melt and solid phases, respectively.
Now recognise that the following holds, since we can split the flux into a part relative to the velocity of the melt:
and similarly:
where \(\omega_i^m\), \(\omega_i^s\), \(\vec{J}_i^m\), and \(\vec{J}_i^s\) are the mass fraction and mass flux of component \(i\) in melt and solid phases, respectively. \(\vec{j}_i^m\) and \(\vec{j}_i^s\) are the mass fluxes of component \(i\) in melt and solid phases, respectively, caused by mechanisms other than melt–solid relative motion.
Substitute in Eqs. \(\ref{eq:J_mi}\) and \(\ref{eq:J_si}\):
and collect terms:
This is helpful because the gravitational separation term (first term) can be parameterised simply based on Stokes' law. The second term within the summation ultimately becomes the “mixing term” (see below), which represents energy transport due to mechanisms other than relative melt–solid separation.
Two-phase entropy equation
For two phases (\(n=2\)) and \(J_m=-J_s\), 1 missing \(\rho\):
Note this contains a latent heat (\(\Delta h\)) associated with melt–solid separation (\(\vec{J}_m\)). At chemical equilibrium, which we always assume, \(\mu_m=\mu_s\) and hence the last term is zero.
Now, for multi-component systems, energy transport due to mass transport must be taken into account (1 missing \(\rho\)):
Under the assumption of chemical equilibrium, the final term of Eq. \(\ref{eq:entropy_twophase}\) is zero. We then arrive at the fundamental equation that we solve in the SPIDER code:
The two major steps that we now need to perform are:
- Recast the velocities in terms of relative velocities, often relative to the centre of mass (barycentric velocity).
- Parameterise the resulting fluxes that originate from considering relative velocities.
-
Yutaka Abe. Basic equations for evolution of partially molten mantle and core. In T. Yukutake, editor, The Earth's Central Part: Its Structure and Dynamics, pages 215–230. Terra Sci. Pub. Com., Tokyo, 1995. URL: https://www.terrapub.co.jp/e-library/ecp/pdf/EC0215.PDF. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩
-
S. R. De Groot and P. Mazur. Non-Equilibrium Thermodynamics. North-Holland Publishing Company, Amsterdam, 1962. ↩↩↩↩↩↩↩↩↩↩↩↩↩