Multiple Dependent Variables — Equation Systems
All PDE interfaces and equation forms support multiple dependent variables — that is, a system of PDEs, which can be coupled.
The General Form PDE System
In the case of several dependent variables u1u2,  …, uN, a general form system of equations takes the following form:
(16-4)
The equation index l and k ranges from 1 to N, while the general constraint index m ranges from 1 to Mc and the Dirichlet condition index n ranges from 1 to Md. The total number of constraints is therefore M = Mc+Md. This discussion uses the summation convention. Fl, Gl, Rm, and rn are scalars, whereas Γl is a spatial vector. The mass and damping coefficients ea and da are N-by-N matrices, while the constraint force Jacobian h is an M-by-N matrix. Note that there are several Lagrange multipliers: μ1, μ2,…, μM.
For a more compact form, let u be a vector with components uk, let Γ be a matrix with components Γlj, and so on. Then the system of equations takes on the same form as given in Equation 16-1 for a single dependent variable.
It is also possible to write the system entirely on component form, where Γlj are components of the vector Γl, and nj components of the normal vector n. Then the system of equations becomes:
System for Two Variables in the General Form
The following example of a PDE in the general form is a stationary system for N = 2 solution components in n = 2 space dimensions with M = 2 constraints:
with the generalized Neumann boundary conditions
and the Dirichlet boundary conditions
 
The Coefficient Form Equation System
The coefficient form of an equation system with N dependent variables u1u2,  …, uN can be easily obtained from the general form PDE shown in Equation 16-4 using the substitutions:
Where index k and l run over dependent variables form 1 to N, while index i and j run over space dimensions from 1 to K. This means that for the case of a system of equations with N dependent variables in K space dimensions, the coefficients have the following sizes:
ea is an N-by-N matrix
da is an N-by-N matrix
c is an N-by-N-by-K-by-K four-dimensional array
α is an N-by-N-by-K three-dimensional array
β is an N-by-N-by-K three-dimensional array
a is an N-by-N matrix
f is an N-vector
g is an N-vector
q is an N-by-N matrix
System for Two Variables in the Coefficient Form
With two dependent variables u1 and u2, the stationary PDE problem in coefficient form results in the following equation system:
where u = (u1, u2). The mass term is defined as
Similarly, the damping term is
However, if ea = 0, then da is often called the mass coefficient.
The diffusive flux is defined as
where and are column vectors. The flux matrix or flux tensor is a column vector in this presentation. For anisotropic materials, the components c11, c12, c21, and c22 can be matrices as described above for the one-variable coefficient form PDE. In this case, the diffusive flux reads
The conservative convective flux is defined as
Here the third index, k, of αijk corresponds to the space coordinate suffixes x and y.
The conservative flux source is defined as
Here the second index, j, of γij denotes the space coordinate suffixes for x and y.
For the flux terms the divergence operator works on each row separately. To illustrate this, consider the divergence of the conservative flux source
The convection term is defined as
The variable names for these components are beu1 and beu2.
The absorption term is defined as
The variable names for these components are au1 and au2.
The source term is defined as
The variable names for these components are f1 and f2.
The Boundary Condition Terms
The Dirichlet boundary condition, in expanded form, reads
If you choose the Dirichlet condition, you also get the generalized Neumann boundary condition, which reads
The normal vector n = (nx, ny) operates on the flux vector in the same way as the divergence operator as explained earlier. If h has full rank (as in the default identity matrix, for example) only the constraints from the Dirichlet condition are active.
If you choose the Neumann condition, you get only the boundary condition
The normal component of the diffusive flux is defined as
The normal component of the conservative convective flux is defined as
The normal component of the conservative flux source is defined as
The boundary absorption term is defined as
The boundary source term is defined as