generalized_fem.tex
%============================================================================== % FILE : thesisExtracts.tex % % CREATED : 26 November 1999 % % LAST MODIFIED : 30 November 1999 % % DESCRIPTION : This file contains extracts from the Masters thesis of Warren % Hedley (Finite Element Modelling of the Left Ventricle using Magnetic % Resonance Image Data, 1998) relevant to the definition of generalised FEM % theory. All macros have been added to this file, so that it may be browsed % on-line using IBM's techexplorer plug-in. %==============================================================================
\documentclass[12pt,oneside,a4paper]{article}
% % Necessary packages % \usepackage{alltt} \usepackage[centertags]{amsmath} \usepackage{amssymb} \usepackage{ifthen} \usepackage{epsfig}
\newenvironment{compressedItemize}{ % This environment compresses an \begin{itemize} % environment vertically, by removing some \setlength{\itemsep}{0pt} % of the space between bullets \setlength{\parsep}{0pt} % }{\end{itemize}}
\newenvironment{compressedEnumerate}{ % This environment compresses an \begin{enumerate} % environment vertically, \setlength{\itemsep}{0pt} % by removing some of the space \setlength{\parsep}{0pt} % between bullets }{\end{enumerate}}
% one dimensional basis function - local coordinate inserted \newcommand{\odbfn}[1]{\ensuremath{\fnof{\psi_{#1}}{x}}} % one dimesional basis function - with element index \newcommand{\odbfne}[2]{\ensuremath{\fnof{\psi_{#1\pbrac{#2}}}{x}}} % one dimensional basis function with element index, at local coordinate l \newcommand{\odbfnea}[3]{\ensuremath{\fnof{\psi_{#1\pbrac{#2}}}{#3}}} % product of 1D basis function and element field parameter 1(2) at position 3 \newcommand{\bfnefp}[3]{\ensuremath{\odbfnea{#1}{#2}{#3} u^{#1 \pbrac{#2}}}}
% field in element e at local coordinate x \newcommand{\elfield}[2]{\ensuremath{\fnof{u^{\pbrac{#1}}}{#2}}} \newcommand{\elfieldtwo}[3]{\ensuremath{\fnof{u^{\pbrac{#1}}}{#2,#3}}} \newcommand{\relfieldtwo}[2]{\ensuremath{\fnof{r^{\pbrac{\varepsilon}}}{#1,#2}}} \newcommand{\uex}{\ensuremath{\elfield{\varepsilon}{x}}}
% From CMISS macros \newcommand{\brac}[3]{\ensuremath{\left#1 #2 \right#3}} % bracket \newcommand{\pbrac}[1]{\brac{(}{#1}{)}} % parenthesis ( bracket \newcommand{\partialby}[2]{\ensuremath{ % \dfrac{\partial #1}{\partial #2} % }} % e.g. \partialby{u}{v} => del u / del v \newcommand{\evalat}[2]{\ensuremath{ % \brac{.}{#1}{|}_{#2} % }} % Evaluation at e.g. \evalat{x}{1} => x|_1 \newcommand{\fnof}[2]{\ensuremath{ % #1\brac{(}{#2}{)} % }} % function of e.g. \fnof{x}{\xi} => x(xi) \newcommand{\inverse}[1]{\ensuremath{{#1}^{-1}}} \newcommand{\nth}[1]{\ensuremath{#1^{\text{th}}}} \newcommand{\transpose}[1]{\ensuremath{{#1}^{T}}}
\begin{document}
\section*{Generalized FEM}
\section{Notation}
This notation is based on the work of Nielsen (1987). Consider the problem of representing a field $u$ over a region $\Omega$ by a finite number of piecewise functions. Note that the scheme presented here is not as general as the scheme proposed by Nielsen, but includes all of the fundamental concepts outlined there.
\begin{enumerate} \item The region of interest $\Omega$ is approximated by $\Omega^E$ which is split up into a finite number of elements $\omega^\varepsilon$. Note that $\Omega^E$ should approximate $\Omega$ as closely as possible, as the field representation will be defined only on $\Omega^E$ and its boundary.
\item Each element has $L$ local coordinate directions, where the local coordinates $\pbrac{x^1, x^2, \ldots, x^L}$ map the interior of the element into $\mathbb{R}^L$. It is frequently convenient, particularly when using Lagrange basis functions, to limit the local coordinates to range between $0$ and $1$.
\item Within each element $\varepsilon$, the field $\uex$ is defined by a finite number of linearly independent parameters $u^{\beta \pbrac{\varepsilon}}$, called \emph{element field parameters}.
\item The contribution of an element field parameter to the field at position $x$ is given by an element basis function $\fnof{\psi_{\beta \pbrac{\varepsilon}}}{x}, x \in \omega^\varepsilon$. The value of $\fnof{\psi_{\beta \pbrac{\varepsilon}}}{x}$ represents the contribution that element field parameter $u^{\beta \pbrac{\varepsilon}}$ makes to the field at $x$. Element basis functions are undefined outside the element in which their local coordinate system is defined.
\item At any point in the element, the field is given by $\uex = \fnof{\psi_{\beta \pbrac{\varepsilon}}}{x} u^{\beta \pbrac{\varepsilon}}$. Restricting $\uex$ to be a linear combination of the element field parameters enables the direct solution of many field approximation problems, since the governing equations will be linear.
\item The field approximation over the region $\Omega^\varepsilon$ is given by the union of the fields within each element. The resulting field is called the \emph{ensemble field}, given by $U = \cup_\varepsilon \uex$.
\item In order to impose continuity conditions on the ensemble field, constraints are applied to the element field parameters $u^{\beta \pbrac{\varepsilon}}$ in adjoining elements. The resulting equations will be linear in $u^{\beta \pbrac{\varepsilon}}$ as the element field $\uex$ is a linear combination of $u^{\beta \pbrac{\varepsilon}}$, with coefficients $\fnof{\psi_{\beta \pbrac{\varepsilon}}}{x}$. The continuity conditions can be used to reduce the number of linearly independent parameters needed to describe the field.
\item The final set of linearly independent parameters used to define the ensemble field (after continuity conditions have been applied) are called the \emph{ensemble field parameters} $U^B$.
\item There exists a real-valued matrix, $\nu_{B}^{\beta \pbrac{\varepsilon}}$, which maps the ensemble field parameters to the element field parameters, $u^{\beta \pbrac{\varepsilon}} = \nu_{B}^{\beta \pbrac{\varepsilon}} U^B$. This is called the \emph{ensemble to element parameter map}.
\item Each ensemble field parameter has an associated \emph{ensemble basis function} given by $\fnof{\Psi_B}{x} = \cup_\varepsilon \fnof{\psi_{\beta \pbrac{\varepsilon}}}{x} \nu_B^{\beta \varepsilon}$, where $X \in \Omega^\varepsilon$, $x \in \omega^\varepsilon$. The value of the ensemble basis function $\fnof{\Psi_B}{x}$ represents the contribution that the corresponding ensemble field parameter $U^B$ makes to the field at $X$. \end{enumerate}
\section{The Ensemble to Element Parameter Map}
The ability to obtain the element field parameters from global parameters using a linear map allows the simple solution of extremely complex problems. The user may take any combination of basis functions in the same problem, and may choose the global parameters describing each field to be any parameters that can be expressed as a linear function of the element field parameters. Any constraints that can be expressed in the same way can be applied to the field. The map can even be used to create implicit coordinate transformations.
In the following sections the generation of the ensemble to element parameter map is discussed, and the process illustrated with a simple example.
\subsection{Ensemble to Element Parameter Map Generation}
Consider the problem of generating a matrix that maps the ensemble field parameters to the element field parameters. For simple problems, particularly those involving Lagrange elements and cubic Hermite elements, such a map can be generated by inspection. For more complicated basis functions, map generation is not so straightforward.
It is usually a simple procedure to express each ensemble field parameter in terms of the element field parameters --- a linear relationship if the inverse is to be true. If the ensemble field parameter is a field value, then this will involve evaluating the basis functions in the element where the value is to come from, and multiplying by the element field parameters.
The number of degrees of freedom in the ensemble is reduced by enforcing constraints on the field. Again these must be formulated as linear functions of the element field parameters. Common constraints involve field and field derivative continuity between elements, which can be put together by evaluating the basis functions in neighbouring elements at inter-element boundaries, and equating the corresponding terms. The same method can also be used to set a field value or derivative at a specific location, or enforce constraints such as step changes in the field between elements.
The result of these first steps is $N$ equations, comprised of three types: \begin{compressedEnumerate} \item $m$ ensemble field parameter equations \begin{equation} U^B = a_{\beta \pbrac{\varepsilon}} u^{\beta \pbrac{\varepsilon}} \end{equation}
\item $c_1$ constraints with constant terms \begin{equation} c = a_{\beta \pbrac{\varepsilon}} u^{\beta \pbrac{\varepsilon}} \end{equation}
\item $c_0$ constraints with no constant term \begin{equation} 0 = a_{\beta \pbrac{\varepsilon}} u^{\beta \pbrac{\varepsilon}} \end{equation} \end{compressedEnumerate} It helps if all of these equations are linearly independent, a condition that can be harder to enforce than it appears, as will be shown later. The equations can be put together into a single system, where the mapping matrix is called the \emph{element to ensemble parameter map}, not to be confused with the ensemble to element parameter map, which is the goal of this process: \begin{equation} \begin{pmatrix} U^B \\ c \\ 0 \end{pmatrix} = \begin{pmatrix} \qquad A_{B} \qquad \\ \qquad A_{C_1} \qquad \\ \qquad A_{C_0} \qquad \end{pmatrix} \begin{pmatrix} \vdots \\ u^{\beta \pbrac{\varepsilon}} \\ \vdots \end{pmatrix} \end{equation} If the model is properly constrained, then the total number of constraints is equal to the difference between the number of ensemble and element field parameters. If the constraints are linearly independent, then the element to ensemble parameter map can be inverted. Setting $\nu_{}^{\beta \pbrac{\varepsilon}} = \inverse{A}$, and moving it to the other side \begin{align} \begin{pmatrix} \vdots \\ u^{\beta \pbrac{\varepsilon}} \\ \vdots \end{pmatrix} &= \begin{pmatrix} \vdots \\ \qquad \nu_{}^{\beta \pbrac{\varepsilon}} \qquad \\ \vdots \end{pmatrix} \begin{pmatrix} U^B \\ c \\ 0 \end{pmatrix}\notag \\ &= \begin{pmatrix} \vdots \\ \nu_{B}^{\beta \pbrac{\varepsilon}} \quad \nu_{C_1}^{\beta \pbrac{\varepsilon}} \quad \nu_{C_0}^{\beta \pbrac{\varepsilon}} \\ \vdots \end{pmatrix} \begin{pmatrix} U^B \\ c \\ 0 \end{pmatrix}\notag \\ &= \begin{pmatrix} \vdots \\ \quad \nu_{B}^{\beta \pbrac{\varepsilon}} \quad \\ \vdots \end{pmatrix} U^B + \begin{pmatrix} \vdots \\ u^{\beta \pbrac{\varepsilon}}_c \\ \vdots \end{pmatrix} \end{align} where $u^{\beta \pbrac{\varepsilon}}_c$ is the sum of the columns in $\nu_{C_1}^{\beta \pbrac{\varepsilon}}$ multiplied by the constants in $c$. Note that $\nu_{C_0}^{\beta \pbrac{\varepsilon}}$ has no impact on the solution process, and so can be discarded. For the majority of FE problems, there are no constraints with constant terms, and so $\nu_{C_1}^{\beta \pbrac{\varepsilon}}$ and $u^{\beta \pbrac{\varepsilon}}_c$ will not be present in further examples and discussion.
If the first $m$ rows of $A$ correspond to ensemble field parameter equations, the ensemble to element parameter map $\nu_B^{\beta \varepsilon}$ will consist of the first $m$ columns of $\nu^{\beta \pbrac{\varepsilon}}$. Because parts of the inverse may not be needed, it is not efficient to calculate it explicitly. In this study, $A$ was LU-factorised, and forward- and backward-substitution used to solve for the necessary number of columns.
For problems with multi-dimensional elements, it may be extremely difficult to find the right number of linearly independent constraints, where many more constraints can be formulated than are necessary, but where many are interdependent. Instead of trying to reduce the number of constraints using techniques such as Gaussian elimination, it is possible to apply a least squares approach where, if the constraints are consistent, the least squares error will have value zero.
Instead of solving \begin{equation} \begin{pmatrix}U^B \\ c \\ 0\end{pmatrix} = \begin{pmatrix}\vdots \\ \quad A \quad \\ \vdots\end{pmatrix} \begin{pmatrix}\vdots \\ u^{\beta \pbrac{\varepsilon}} \\ \vdots\end{pmatrix} \end{equation} the normal equations are solved \begin{equation} \transpose{A} \begin{pmatrix}U^B \\ c \\ 0\end{pmatrix} = \transpose{A} A u^{\beta \pbrac{\varepsilon}} \end{equation} which gives \begin{equation} \nu_{}^{\beta \pbrac{\varepsilon}} = \inverse{\pbrac{\transpose{A}A}} \transpose{A} \end{equation} The ensemble to element parameter map $\nu_{B}^{\beta \pbrac{\varepsilon}}$ is again made up of the first $m$ columns of $\nu^{\beta \pbrac{\varepsilon}}$. If $\transpose{A}A$ is LU-factorised, then the \nth{i} column of $\nu^{\beta \pbrac{\varepsilon}}$, can be found by forward- and backward-substitution, using the \nth{i} row of $A$ as the right hand side. The consistency of the constraints by checking that $A.\nu^{\beta \pbrac{\varepsilon}} = I$ (the identity). Even if the constraints are inconsistent, this method can be used to provide a compromise between conflicting constraints.
Another problem occurs when the number of constraints that can be formulated is not enough to fully specify the behaviour of the field within each element. If this happens, then $A$ is not full rank, and can not be inverted. Furthermore an infinite number of solutions (maps) exist. One common method for solving rank-deficient least squares problems is singular value decomposition (SVD). The $A$ matrix can be factorised into the product of two orthogonal matrices $P$ and $Q$ and one diagonal matrix $S$, $A = PSQ$. The map can then be evaluated by solving for columns of the identity. \begin{equation} P~S~Q~\nu_{B}^{\beta \pbrac{\varepsilon}} = I_B \qquad \qquad \text{($I_B$ is the \nth{B} column of the identity)} \end{equation} Solution using SVD decomposition of a rank deficient matrix produces vectors with the minimum 2-norm which satisfy the constraints (Golub \& Van Loan 1996). In terms of ensemble to element parameter map generation, this means that the resulting map will be fairly even (in terms of magnitude) in areas where insufficient constraints exist. A disadvantage associated with this property of SVD factorisation is that the field may depend on ensemble field parameters in non-adjacent elements in areas of the model where the field is not fully constrained. This leads to a loss of sparsity in the map and has significant implications for the speed of the data fitting process.
\subsection{A Simple Example}
In this section, the formulation and use of an ensemble to element parameter map is demonstrated for the simple three element model shown. In order to show the power of the mapping technique an odd and somewhat unlikely combination of basis functions and continuity conditions are used to define the field.
\includegraphics{plots/map_example.gif} \centering
%\begin{figure}[htbp] \centering % \epsfig{file=plots/map_example.eps,width=12cm} % \caption[]{A three element problem, constrained by an ensemble to element % parameter map. The first element, $\varepsilon_1$ is linear Lagrange, the % second element cubic B\'{e}zier, and the third element quadratic monomial.} %\end{figure}
In the first element, the field is defined by linear Lagrange basis functions. This requires two parameters $u^{1 \pbrac{1}}$ and $u^{2 \pbrac{1}}$, with corresponding basis functions \begin{equation} \odbfne{1}{1} = 1 - x \qquad \odbfne{2}{1} = x \end{equation}
A cubic B\'{e}zier basis function will be used to define the field in the second element, with four parameters $u^{1 \pbrac{2}}$ -- $u^{4 \pbrac{2}}$, and corresponding basis functions \begin{align} \odbfne{1}{2} = & 1- 3x + 3x^2 - x^3 \\ \odbfne{2}{2} = & 3x - 6x^2 + 3x^3 \\ \odbfne{3}{2} = & 3x^2 - 3x^3 \\ \odbfne{4}{2} = & x^3 \end{align}
The field in the third element will be defined by a quadratic monomial basis function, with three parameters $u^{1 \pbrac{3}}$ -- $u^{3 \pbrac{3}}$, and corresponding basis functions \begin{equation} \odbfne{1}{3} = 1 \qquad \odbfne{2}{3} = x \qquad \odbfne{3}{3} = x^2 \end{equation}
Certain continuity constraints on the field are to be enforced at the inter-element boundaries. Between elements one and two, the element should be $C^1$ continuous, that is the field and field derivative values at $x = 1$ in element one and at $x = 0$ in element two should be equal. Furthermore, it is required that the field is continuous across the boundary between elements two and three.
With nine element field parameters and three constraints in the problem, a total of six free ensemble parameters are required to define the field. These parameters can be chosen to be any convenient aspects of the field, but generally values that are known or of interest are picked. Let the first four parameters be the field values at $z=1$, $z=5$, $z=6$ and $z=7$, and the last two the field derivatives (with respect to global coordinate $z$) at $z=2$ and $z=5$ (for the field in element two).
Consider now how to express the ensemble parameters as linear combinations of the element field parameters: \begin{enumerate}
\item It was previously decided that the first ensemble field parameter should be the value of the field at $z=1$. This is in element one at $x=0$. The field there is given by \begin{align} \elfield{1}{0} = & \bfnefp{1}{1}{0}~ + ~\bfnefp{2}{1}{0} \\ = & \pbrac{1 - 0} u^{1 \pbrac{1}}~ + ~\pbrac{0} u^{2 \pbrac{1}} \\ = & u^{1 \pbrac{1}} \end{align} Therefore $U^1 = u^{1 \pbrac{1}}$.
\item The field at $z=5$ corresponds to $x=0$ in element three. One could equally well have used $x=1$ in element two, but that would yield a more complicated expression. Evaluating the field at the chosen point \begin{equation} U^2 = \elfield{3}{0} = u^{1 \pbrac{3}} \end{equation}
\item The field at $z=6$ corresponds to $x=\frac12$ in element three. Here \begin{equation} U^3 = \elfield{3}{\frac12} = u^{1 \pbrac{3}} + \frac12 u^{2 \pbrac{3}} + \frac14 u^{3 \pbrac{3}} \end{equation}
\item $z=7$ corresponds to $x=1$ in element three. Here \begin{equation} U^4 = \elfield{3}{1} = u^{1 \pbrac{3}} + u^{2 \pbrac{3}} + u^{3 \pbrac{3}} \end{equation}
\item When evaluating the field derivative at $z=2$, it is possible to use the field in element one or two. Element one, which is linear, will be simpler to deal with, so $x=1$ in element one is considered. \begin{align} \evalat{\partialby{u}{z}}{z=2} &= \partialby{\elfield{1}{1}}{x} \partialby{x}{z} \qquad \qquad \pbrac{\text{note that } \partialby{x}{z} = 1} \\ &= \partialby{\odbfnea{1}{1}{1}}{x}u^{1 \pbrac{1}} + \partialby{\odbfnea{2}{1}{1}}{x}u^{2 \pbrac{1}} \\ U^5 &= - u^{1 \pbrac{1}} + u^{2 \pbrac{1}} \end{align}
\item Finally the field derivative at $z=5$ in element two is evaluated. Note that, in this element, the local coordinates must be scaled to match the global coordinate system. \begin{align} \evalat{\partialby{u}{z}}{z=5} &= \partialby{\elfield{2}{1}}{x} \partialby{x}{z} \qquad \qquad \pbrac{\text{this time } \partialby{x}{z} = \frac13} \\ &= \frac13 \sum_{i=1 \ldots 4} \pbrac{ \partialby{\odbfnea{i}{2}{1}}{x}u^{i \pbrac{2}} } \\ U^6 &= - u^{3 \pbrac{2}} + u^{4 \pbrac{2}} \end{align}
\end{enumerate} Now the three constraints that are to be applied to the field must be formulated as linear constraints on the element field parameters of neighbouring elements. \begin{enumerate} \item To enforce field continuity between elements one and two, the field at $x=1$ in element one must equal the field at $x=0$ in element two. \begin{align} \elfield{1}{1} &= \elfield{2}{0} \\ \sum_{i=1 \ldots 2} \pbrac{\odbfnea{i}{1}{1} u^{i \pbrac{1}}} &= \sum_{i=1 \ldots 4} \pbrac{\odbfnea{i}{2}{0} u^{i \pbrac{2}}} \\ u^{2 \pbrac{1}} &= u^{1 \pbrac{2}} \end{align} The resulting constraint is \begin{equation} u^{2 \pbrac{1}} - u^{1 \pbrac{2}} = 0 \end{equation}
\item To force field derivative continuity between elements one and two, the same approach is applied to the field derivatives, within the global coordinate system. \begin{align} \partialby{\elfield{1}{1}}{z} &= \partialby{\elfield{2}{0}}{z} \\ \evalat{\partialby{x}{z}}{\varepsilon_1} \sum_{i=1 \ldots 2} \pbrac{ \partialby{\odbfnea{i}{1}{1}}{x}u^{i \pbrac{1}} } &= \evalat{\partialby{x}{z}}{\varepsilon_2} \sum_{i=1 \ldots 4} \pbrac{ \partialby{\odbfnea{i}{2}{0}}{x}u^{i \pbrac{2}} } \\ -u^{1 \pbrac{1}} + u^{2 \pbrac{1}} &= \frac13 \pbrac{-3u^{1 \pbrac{2}} + 3u^{2 \pbrac{2}}} \end{align} The resulting constraint is \begin{equation} -u^{1 \pbrac{1}} + u^{2 \pbrac{1}} + u^{1 \pbrac{2}} - u^{2 \pbrac{2}}= 0 \end{equation}
\item The constraint arising from enforcing field continuity between elements two and three is \begin{equation} u^{4 \pbrac{2}} - u^{1 \pbrac{3}} = 0 \end{equation}
\end{enumerate} The element to ensemble parameter map can now be assembled. \begin{equation} \begin{bmatrix} U^1 \\ U^2 \\ U^3 \\ U^4 \\ U^5 \\ U^6 \\ 0 \\ 0 \\ 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & \frac12 & \frac14 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\ -1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & -1 & 1 & 0 & 0 & 0 \\ 0 & 1 & -1 & 0 & 0 & 0 & 0 & 0 & 0 \\ -1 & 1 & 1 & -1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & -1 & 0 & 0 \end{bmatrix} \begin{bmatrix} u^{1 \pbrac{1}} \\ u^{2 \pbrac{1}} \\ u^{1 \pbrac{2}} \\ u^{2 \pbrac{2}} \\ u^{3 \pbrac{2}} \\ u^{4 \pbrac{2}} \\ u^{1 \pbrac{3}} \\ u^{2 \pbrac{3}} \\ u^{3 \pbrac{3}} \end{bmatrix} \end{equation}
With six ensemble parameters and three zero constraints, the ensemble to element parameter map is the first six columns of the inverse of the element to ensemble parameter map. \begin{equation} \begin{bmatrix} u^{1 \pbrac{1}} \\ u^{2 \pbrac{1}} \\ u^{1 \pbrac{2}} \\ u^{2 \pbrac{2}} \\ u^{3 \pbrac{2}} \\ u^{4 \pbrac{2}} \\ u^{1 \pbrac{3}} \\ u^{2 \pbrac{3}} \\ u^{3 \pbrac{3}} \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 1 & 0 \\ 1 & 0 & 0 & 0 & 1 & 0 \\ 1 & 0 & 0 & 0 & 2 & 0 \\ 0 & 1 & 0 & 0 & 0 & -1 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & -3 & 4 & -1 & 0 & 0 \\ 0 & 2 & -4 & 2 & 0 & 0 \end{bmatrix} \begin{bmatrix} U^1 \\ U^2 \\ U^3 \\ U^4 \\ U^5 \\ U^6 \end{bmatrix} \end{equation}
The field in was generated with the following set of ensemble field parameters. \begin{equation} U^B = \transpose{\begin{bmatrix} 1 \quad 1 \quad 6 \quad 1 \quad 2 \quad 2 \end{bmatrix}} \end{equation}
Using the ensemble to element parameter map, it is possible to generate ensemble basis functions for each of the ensemble field parameters, using \begin{equation} \fnof{\Psi_B}{x} = \cup_\varepsilon \fnof{\psi_{\beta \pbrac{\varepsilon}}}{x} \nu_{B}^{\beta \pbrac{\varepsilon}} \end{equation}
For example, the ensemble basis function for the second ensemble parameter, the field at the boundary between elements two and three, can be calculated in the following manner \begin{align} \fnof{\Psi_{2}}{X} &= \cup_\varepsilon \fnof{\psi_{\beta \pbrac{\varepsilon}}}{x} \nu_{2}^{\beta \pbrac{\varepsilon}} \\ &= \begin{bmatrix} \pbrac{1 - x}_{\varepsilon_1} \\ \pbrac{x}_{\varepsilon_1} \\ \pbrac{1 - 3x + 3x^2 - x^3}_{\varepsilon_2} \\ \pbrac{3x - 6x^2 + 3x^3}_{\varepsilon_2} \\ \pbrac{3x^2 - 3x^3}_{\varepsilon_2} \\ \pbrac{x^3}_{\varepsilon_2} \\ \pbrac{1}_{\varepsilon_3} \\ \pbrac{x}_{\varepsilon_3} \\ \pbrac{x^2}_{\varepsilon_3} \\ \end{bmatrix} \cdot \begin{bmatrix} 0 \\ 0 \\ 0 \\ 1 \\ 1 \\ 1 \\ -3 \\ 2 \end{bmatrix} \\ &= \pbrac{3x^2 - x^3}_{\varepsilon_2} + \pbrac{1 - 3x + 2x^2}_{\varepsilon_3} \end{align}
The form of this and the other ensemble basis functions is shown below. Although they are rarely useful in practical problems, they provide a useful visual guide to the support of each ensemble field parameter.
\includegraphics{plots/map_globals.gif} \centering
%\begin{figure}[htbp] \centering % \epsfig{file=plots/map_globals.eps,width=12cm} % \caption[]{The global basis functions corresponding to each of the ensemble % field parameters in the three element example.} %\end{figure}
\end{document}