In this post, I’ll introduce the FE formulation of a generalized linear and coupled weak form. Said weak formulation has the form

Find uV1u\in V_1, yV2y\in V_2 such that

a(u,v)+b(y,v)=c(v)d(u,w)+e(y,w)=f(w)\begin{equation} \begin{alignedat}{3} a(u, v) &+ b(y, v) &&= c(v) \\ d(u, w) &+ e(y, w) &&= f(w) \\ \end{alignedat} \htmlId{eq:coupledweakform1}{} \tag{1}\end{equation}

for all vV1v\in V_1, wV2w \in V_2 where a(,):V1×V1Ra(\cdot, \cdot): V_1\times V_1 \to \IR, b(,):V2×V1Rb(\cdot, \cdot): V_2\times V_1 \to \IR, d(,):V1×V2Rd(\cdot, \cdot): V_1\times V_2 \to \IR, e(,):V2×V2Re(\cdot, \cdot): V_2\times V_2 \to \IR are bilinear forms and c():V1Rc(\cdot): V_1\to \IR, f():V2Rf(\cdot): V_2\to \IR are linear forms.

Here, the objective is to solve for the two unknown functions uu and yy. One can also imagine an arbitrary degree of coupling between nn variables with nn equations.

We introduce the following discretizations

uh=J=1nn1uJNJvh=I=1nn1uINIuh,vhVh1yh=L=1nn2uLNLwh=K=1nn2uKNKyh,whVh2\begin{equation} \begin{alignedat}{3} u_h &= \suml{J=1}{n_n^1} u^J N^J \qquad\qquad & v_h &= \suml{I=1}{n_n^1} u^I N^I \qquad\qquad & u_h, v_h\in V_{h1} \\ y_h &= \suml{L=1}{n_n^2} u^L N^L & w_h &= \suml{K=1}{n_n^2} u^K N^K & y_h, w_h\in V_{h2} \\ \end{alignedat} \tag{2}\end{equation}

where the corresponding number of shape functions are nn1n_n^1 and nn2n_n^2, respectively.

Substituting the discretizations in (1), we obtain two linear systems of equations

J=1nn1a(NJ,NI)uJ+L=1nn2b(NL,NI)yL=c(NI)J=1nn1d(NJ,NK)uJ+L=1nn2e(NL,NK)yL=f(NK)\begin{equation} \begin{alignedat}{3} \suml{J=1}{n_n^1} a(N^J, N^I) \,u^J &+ \suml{L=1}{n_n^2} b(N^L, N^I) \, y^L &&= c(N^I) \\ \suml{J=1}{n_n^1} d(N^J, N^K) \,u^J &+ \suml{L=1}{n_n^2} e(N^L, N^K) \, y^L &&= f(N^K) \\ \end{alignedat} \tag{3}\end{equation}

for I=1,,nn1I=1,\dots,n_n^1 and K=1,,nn2K=1,\dots,n_n^2.

We write this system as

Au+By=cDu+Ey=for[ABDE][uy]=[cf]\begin{equation} \boxed{ \begin{alignedat}{3} \BA \Bu &+ \BB\By &&= \Bc \\ \BD \Bu &+ \BE\By &&= \Bf \\ \end{alignedat} \eqor \begin{bmatrix} \BA & \BB \\ \BD & \BE \end{bmatrix} \begin{bmatrix} \Bu \\ \By \end{bmatrix} = \begin{bmatrix} \Bc \\ \Bf \end{bmatrix} } \htmlId{eq:coupledsystem1}{} \tag{4}\end{equation}

where the components of given matrices and vectors are defined as

AI ⁣J:=a(NJ,NI)BI ⁣L:=b(NL,NI)cI:=c(NI)DK ⁣J:=d(NJ,NK)EK ⁣L:=e(NL,NK)fK:=f(NK)\begin{equation} \begin{alignedat}{6} A^{I\!J} &:= a(N^J, N^I) \qquad & B^{I\!L} &:= b(N^L, N^I) \qquad & c^{I} &:= c(N^I)\\ D^{K\!J} &:= d(N^J, N^K) & E^{K\!L} &:= e(N^L, N^K) & f^{K} &:= f(N^K)\\ \end{alignedat} \tag{5}\end{equation}

Solution of (4) yields the unknown vectors u\Bu and y\By.