-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbasis_functions_meaning.tex
42 lines (27 loc) · 1.78 KB
/
basis_functions_meaning.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\begin{flushright} {\tiny {\color{gray} basis\_functions\_meaning.tex.tex}} \end{flushright}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\subsubsection{In one dimension}
Let us consider a 1D domain subdivided in 3 elements. We then consider the four linear basis functions
attached to each node. On the following sketch these are not depicted on a single element with
reduced coordinates but instead for the whole domain in the natural coordinate $x$:
\input{tikz/tikz_basisfunctions}
The four cases a,b,c,d are examples of combinations of these basis functions:
\[
f^h(x)=\sum_{i=1}^4 \bN_i(x) f_i
\]
Where $f_i$ are the values associated to the four nodes.
We assume that the distance $h$ between nodes is 1.
Example a) illustrates the fact that the sum of all basis functions must be strictly equal to one everywhere
in the domain. Failing to do so would mean that the basis functions cannot represent a constant field (see
Section~\ref{ss:q12d}).
Example b) illustrates a somewhat random combination of the basis functions, yielding a broken line.
Example c) illustrates the fact that these linear basis functions can exactly represent a
linear function. When $f(x)=x-2$, then $f_1=f(0)=-2$, $f_2=f(1)=-1$, $f_3=f(2)=0$ and $f_4=f(3)=+1$,
then $f^h(x)$ is exactly $f(x)$ on the domain.
Example d) illustrates the fact that linear basis functions cannot represent a parabola. Smaller and
smaller elements will do an increasingly better job and will get closer to the curve but a
systematic error will subsist.
Note that these drawings are trivial to produce since $\bN_i(x_j)=\delta_{ij}$ by definition, so that
$f^h(x_j)=f_j$.
%........................................................................
\subsubsection{In two dimensions}