I am given a problem to define the functions $\phi_1(x, y)$, $\phi_2(x, y)$ and $\phi_3(x, y)$ for a single triangular element as a reference to do element assembly. However I'm not sure why the answer is:
φ1(x, y) := 1 − (1/2 x) − (1/2 y)
φ2(x, y) := (1/2 x) − (1/2 y)
φ3(x, y) := y
I understand that the φ1(x, y) is a representation of the vertex at point 1, which can be represented by φ1(x, y) := ax + by + c . However how do you obtain the coefficients of the functions φ1(x, y) := 1 − (1/2 x) − (1/2 y) ? How can you create a function out of a vertex?
The problem is as below:
A two-dimensional triangle, cf. Figure 1 on the left, is given as reference element. Piecewise linear functions are defined and shall be used as test functions; each function takes the value 1 at exactly one corner of the triangle and 0 at all other corners. Define the three functions $\phi_1(x, y)$, $\phi_2(x, y)$ and $\phi_3(x, y)$ for a single triangular element and compute their gradients.
Figure 1: Left: reference triangle. Right: domain which is discretised by triangles of same shape (and size) as on the left.
