# Basic equations#

ASPECT solves a system of equations in a \(d=2\)- or \(d=3\)-dimensional domain \(\Omega\) that describes the motion of a highly viscous fluid driven by differences in the gravitational force due to a density that depends on the temperature.
In the following, we largely follow the exposition of this material in Schubert *et al.* [2001].

Specifically, we consider the following set of equations for velocity \(\mathbf{u}\), pressure \(p\) and temperature \(T\), as well as a set of advected quantities \(c_i\) that we call *compositional fields*:

where \(\varepsilon(\mathbf u) = \frac{1}{2}(\nabla \mathbf u + \nabla\mathbf u^T)\) is the symmetric gradient of the velocity (often called the *strain rate*)[1].

In this set of equations, (1) and (2) represent the compressible Stokes equations in which \(\mathbf u=\mathbf u(\mathbf x,t)\) is the velocity field and \(p=p(\mathbf x,t)\) the pressure field. Both fields depend on space \(\mathbf x\) and time \(t\). Fluid flow is driven by the gravity force that acts on the fluid and that is proportional to both the density of the fluid and the strength of the gravitational pull.

Coupled to this Stokes system is equation (3) for the temperature field \(T=T(\mathbf x,t)\) that contains heat conduction terms as well as advection with the flow velocity \(\mathbf u\). The right hand side terms of this equation correspond to

internal heat production for example due to radioactive decay;

friction heating;

adiabatic compression of material;

phase change.

The last term of the temperature equation corresponds to the latent heat generated or consumed in the process of phase change of material. The latent heat release is proportional to changes in the fraction of material \(X\) that has already undergone the phase transition (also called phase function) and the change of entropy \(\Delta S\). This process applies both to solid-state phase transitions and to melting/solidification. Here, \(\Delta S\) is positive for exothermic phase transitions. As the phase of the material, for a given composition, depends on the temperature and pressure, the latent heat term can be reformulated:

The last transformation results from the assumption that the flow field is always in equilibrium and consequently \(\partial p/\partial t=0\) (this is the same assumption that underlies the fact that equation (1) does not have a term \(\partial \mathbf u / \partial t\)). With this reformulation, we can rewrite (3) in the following way in which it is in fact implemented:

The last of the equations above, equation (4), describes the evolution of additional fields that are transported along with the velocity field \(\mathbf u\) and may react with each other and react to other features of the solution, but that do not diffuse.
We call these fields \(c_i\) *compositional fields*, although they can also be used for other purposes than just tracking chemical compositions.
We will discuss this equation in more detail in Compositional fields.