Skip to content

Governing equations ​

Stokes equations ​

Deformation of compressible viscous flow is described by the equations of conservation of momentum and mass:

∇⋅τ−∇p=f∇⋅v=−β∂p∂t+α∂T∂t

where τ is the deviatoric stress tensor, p is pressure, f is the external forces vector, v is the velocity vector, β is the compressibility coefficient, α is the thermal expansivity coefficient and T is temperature.

The ρg argument of solve! is f, one array per dimension on the cell centers. For a body force that is a gravitational acceleration g this is ρg, hence the name.

Constitutive equation ​

To close the system of equations (1)-(2), we further need the constitutive relationship between stress and deformation. In its simplest linear form this is:

τ=2ηε˙

where η is the shear viscosity and ε˙ is the deviatoric strain tensor.

Heat diffusion ​

The pseudo-transient heat-diffusion equation is:

ρCp∂T∂t=∇⋅(κ∇T)+τ:ε˙+αT(v⋅∇P)+H

where ρ is density, Cp is specific heat capacity, κ is thermal conductivity, T is temperature τ:ε˙ is the energy dissipated by viscous deformation (shear heating), αT(v⋅∇P) is adiabatic heating, and H is the sum any other source term, such as radiogenic heat production.