Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Remark: Hat functions are important building blocks in finite element methods.
Task 1 (one-dimensional hat functions)
Consider the one-dimensional hat function
(
1 + x , if 1 x 0
h0 (x) = 1 x , if 0 < x 1
0
, otherwise
and its horizontally shifted version (=translates) hk (x) = h0 (x k).
Draw the functions 2h0 (x), h1 (x), and 21 h2 (x) with different colors in one coordinate
system. In a new coordinate system draw the linear combination 2h0 (x)h1 (x)+ 12 h2 (x).
Task 2 (two-dimensional hat functions)
As in the lecture we define a two-dimensional hat function h0,0 (x, y) as the function
whose graph, consisting of the points (x, y, h0,0 (x, y)), is a pyramid with corners at
(1, 1, 0) and tip at (0, 0, 1). As indicated in the lecture use the following instructions
to find a piecewise definition
. . . , if 0 x 1, x y x
h0,0 (x, y) =
. . . , if . . .
You will need five cases. The surface of the pyramid consists of four triangles.
a) in a top view, i.e., looking along the z-axis onto the xy-plane, use different colors
to indicate the parts on which each triangular surface is defined. For example, one
triangular surface is defined on 0 x 1, x y x. For each part find the
corresponding pair of inequalities. Those will be four of the five case conditions.
What is the fifth case condition?
b) For one of the triangular planes compute the direction vectors from the tip to
the corners. Compute their cross product to find a normal vector to the plane
and, finally, determine the plane equation. Solve that equation for z. The other
side of the equation is the formula needed for the respective case.
c) Compare your result to the one-dimensional case in Task 1. What do you notice?
What is the reason for this? A picture of the front view or the side view (along
the x-axis or along the y-axis) may help.
d) Use analogy with the one-dimensional case to fill in all cases. Or, if you do not
notice the analogy, repeat the above steps for each triangular plane.
x 0, y 0