2.3 Dimensional or non-dimensionalized equations?

Equations (1)–(3) are stated in the physically correct form. One would usually interpret them in a way that the various coefficients such as the viscosity, density and thermal conductivity η,ρ,κ are given in their correct physical units, typically expressed in a system such as the meter, kilogram, second (MKS) system that is part of the SI system. This is certainly how we envision ASPECT to be used: with geometries, material models, boundary conditions and initial values to be given in their correct physical units. As a consequence, when ASPECT prints information about the simulation onto the screen, it typically does so by using a postfix such as m/s to indicate a velocity or W/m^2 to indicate a heat flux.

Note: For convenience, output quantities are sometimes provided in units meters per year instead of meters per second (velocities) or in years instead of seconds (the current time, the time step size); this conversion happens at the time output is generated, and is not part of the solution process. Whether this conversion should happen is determined by the flag “Use years in output instead of seconds” in the input file, see Section ??. Obviously, this conversion from seconds to years only makes sense if the model is described in physical units rather than in non-dimensionalized form, see below.

That said, in reality, ASPECT has no preferred system of units as long as every material constant, geometry, time, etc., are all expressed in the same system. In other words, it is entirely legitimate to implement geometry and material models in which the dimension of the domain is one, density and viscosity are one, and the density variation as a function of temperature is scaled by the Rayleigh number – i.e., to use the usual non-dimensionalization of the equations (1)–(3). Some of the cookbooks in Section 5 use this non-dimensional form; for example, the simplest cookbook in Section 5.2.1 as well as the SolCx, SolKz and inclusion benchmarks in Sections 5.4.4, are such cases. Whenever this is the case, output showing units m/s or W/m^2 clearly no longer have a literal meaning. Rather, the unit postfix must in this case simply be interpreted to mean that the number that precedes the first is a velocity and a heat flux in the second case.

In other words, whether a computation uses physical or non-dimensional units really depends on the geometry, material, initial and boundary condition description of the particular case under consideration – ASPECT will simply use whatever it is given. Whether one or the other is the more appropriate description is a decision we purposefully leave to the user. There are of course good reasons to use non-dimensional descriptions of realistic problems, rather than to use the original form in which all coefficients remain in their physical units. On the other hand, there are also downsides:

As a consequence of such considerations, most codes in the past have used non-dimensionalized models. This was aided by the fact that until recently and with notable exceptions, many models had constant coefficients and the difficulties associated with variable coefficients were not a concern. On the other hand, our goal with ASPECT is for it to be a code that solves realistic problems using complex models and that is easy to use. Thus, we allow users to input models in physical or non-dimensional units, at their discretion. We believe that this makes the description of realistic models simpler. On the other hand, ensuring numerical stability is not something users should have to be concerned about, and is taken care of in the implementation of ASPECT’s core (see the corresponding section in [KHB12]).

4To illustrate this, consider convection in the Earth as a back-of-the-envelope example. With the length scale of the mantle L = 3 106m, viscosity η = 1024kgms, density ρ = 3 103kgm3 and a typical velocity of U = 0.1myear = 3 109ms, we get that the friction term in (1) has size ηUL2 3 102kgm2s2. On the other hand, the term (ρu) in the continuity equation (2) has size ρUL 3 1012kgsm3. In other words, their numerical values are 14 orders of magnitude apart.