Governing Equations
The governing equations for mass diffusion are an extension of Fick's equations: they allow for nonuniform solubility of the diffusing substance in the base material and for mass diffusion driven by gradients of temperature and pressure. The basic solution variable (used as the degree of freedom at the nodes of the mesh) is the “normalized concentration” (often also referred to as the “activity” of the diffusing material), ϕdef=c/s, where c is the mass concentration of the diffusing material and s is its solubility in the base material. Therefore, when the mesh includes dissimilar materials that share nodes, the normalized concentration is continuous across the interface between the different materials.
For example, a diatomic gas that dissociates during diffusion can be described using Sievert's law: c=s(p/p0)12 , where p is the partial pressure of the diffusing gas, and the value of p0 is customarily one atmosphere (for historical consistency). Combining Sievert's law with the definition of normalized concentration given earlier, ϕ=c/s=(p/p0)12 . Equilibrium requires the partial pressure to be continuous across an interface, so normalized concentration will be continuous as well. If an expression other than Sievert's law defines the relationship between concentration and partial pressure for a diffusing material, solubility should be defined accordingly.
The diffusion problem is defined from the requirement of mass conservation for the diffusing phase:
where V is any volume whose surface is S, n is the outward normal to S, J is the flux of concentration of the diffusing phase, and n⋅J is the concentration flux leaving S.
Diffusion is assumed to be driven by the gradient of a general chemical potential, which gives the behavior
where D(c,θ,f) is the diffusivity; s(θ,f) is the solubility; κs(c,θ,f) is the “Soret effect” factor, providing diffusion because of temperature gradient; θ is the temperature; θZ is the value of absolute zero on the temperature scale being used; κp(c,θ,f) is the pressure stress factor, providing diffusion driven by the gradient of the equivalent pressure stress, pdef=-trace(σ)/3; σ is stress; and f are any predefined field variables.
Whenever D, κs , or κp depends on concentration, the problem becomes nonlinear and the system of equations becomes nonsymmetric. In practical cases the dependence on concentration is quite strong, so the nonsymmetric matrix storage and solution scheme is invoked automatically when a mass diffusion analysis is performed (see Defining an Analysis).