# Finite element method (Electrical Machine) Part 2

By

## Weighted residuals

With the exact solution u of a boundary problem it can be written

The solution of the problem obtained by an approximation

is not exact and we must consider a residual R.

Assuming that the basis functionssatisfy the boundary conditions, in the example it wasthe N unknown can be determined by choosing N points inside the domainFor these points, the residuum is forced to be zero. Out of this, N equations to determine are obtained. This method is called the point-collocation method (Binns etal. ,3).

A better approximation is obtained by averaging with an arbitrary functionover the domain of interest

Transferred to the example of a Poisson equationthis method yields:

The method is called the method of weighted residuals. Various weighting functions are in common use. Using, for example, the Dirac-Delta function forresults in the point-collocation method as a special case of the method of the weighted residuals. Usually linear weighting functions are chosen. They are easier to implement when compared to higher order functions and already deliver a sufficiently accurate approximation.

By choosing the shape functions, introduced in the last section, to be the weighting functions,

we obtain the local Galerkin method. The combination of weighted residuals and Galerkin method is universal applicable.

### Continuity

Particular attention must be paid to the choice of basis function where the second derivative is present in the differential equation. This might cause difficulties with the integral at element boundaries. To avoid singular integrands, a continuous function must be chosen with continuous first derivative. This leads to the requirement of a defined continuity for the form functions.

If only the continuity of the linear form function is required, we have a

is continuous on the element’s boundaries.

For a function of second order, the derivative at the element’s boundary is continuous (Fig. 5.31). If in generalis required it can be written:

Fig. 5.31,continuity for the solution u(x) considered at the boundary from finite element

### Green’s formula

We have seen so far that we would need a continuity for the basis functions to solve the example of a Poisson equation. It is desirable to have simple linear basis functions with continuity. Applying the first Green’s formula:

removes the second derivative in the equation and yields for:

This leads to the weak form of the Poisson equation. Weak form means that weak requirements concerning the continuity are demanded on their solution when compared to the solution of the previous differential equation. Therefore, the form of the previous differential equation is called strong.

As desired, acontinuity of the basis function is now sufficient to solve the problem. A little disadvantage of this approach is the fact that now the weighting functionmust havecontinuity as well. Constant weighting functions are not possible with this approach. The use of the first Green’s formula reduces the continuity requirements of the basis functions but increases efforts concerning the weighting functions.

It is obvious from this approach, that the solution of the strong form is always a solution of the weak form. The other way around, this does not always hold.

## Energy-minimum functional

The principle of minimum energy requires that the potential distribution corresponds to the minimum of stored field energy. For several electrotechnical problems, this equivalent minimisation problem is known.

The quantityis the total energy of the functionwhich

is the sum of the internal energyand the load potential

The minimum energy functional yields the same results obtained by the local Galerkin method (Kost65, Eriksson et al.38).

## Types of elements

The domain of interest can be discretised by various types of finite elements. In this section the most commonly used element types for two-and three-dimensional FEM meshes will be introduced. It is the aim to use simple geometries for the elements. Cross-sectional elements such as triangles, quadrangles and rectangles are used for two-dimensional models and volume elements such as tetrahedrons and cuboids for the three-dimensional FEM models.

Table 5.3. Standard FEM element types.

The outer boundaries of the geometries are mainly approximated by a polygon. In general triangular or tetrahedral shapes can best approximate such geometries. A complicated geometry can be approximated by a large number of such simple-shaped elements.

The FEM model can be built up with element types with different properties. Nodal and edge elements can be distinguished. The most common types of elements will be briefly introduced in the next section. For further details on special types such as non-conform elements, please refer to the literature (Goering et al. Eriksson et al.38, Kost65, Binns et al. 13). Line elements are not considered here.

### Nodal elements

The triangular nodal element is the most commonly used element type for two-dimensional problem formulations. This element shape is the most adaptable to complicated geometries. Therefore, it has advantages concerning an adaptive local mesh refinement to enhance the quality of the approximated solution.

Fig. 5.32. 2D triangular nodal element with linear shape function.

The unknown values of the approximated function are defined at the nodes of element. By using first order basis functions,equals 1 at one node of the domain and 0 at the other two nodes of the triangular sub-domain(Fig. 5.32).

The equivalent element type for three-dimensional models is the nodal tetrahedron with the same advantage of being able to adapt complicated geometries very accurately.

### Edge elements

By using edge elements, the unknowns are referred to the edges of this element type. This is advantageous in three-dimensional problem definitions. Therefore, this type of element is in common use for three-dimensional FEM problems.

The basis functionsare defined by:

### Edge elements

By using edge elements, the unknowns are referred to the edges of this element type. This is advantageous in three-dimensional problem definitions. Therefore, this type of element is in common use for three-dimensional FEM problems.

The basis functionsare defined by:

For a three-dimensional element the course of the basis function of an edge element is plotted in Fig. 5.33.

Fig. 5.33. First order three-dimensional edge element.

### Facet elements

The basis functionsare defined by:

Fig. 5.34. First order three-dimensional facet element.

Fig. 5.34 shows the course of a linear basis function of a three-dimensional facet element. The function value in one node is zero. The course of the basis function value is linear between the nodes of the tetrahedron.

### FEM element properties

The basis functionsandown special properties (Table 5.4).

Table 5.4. Properties of finite elements.g

 type element properties the value of the basis function at a node is 1 at the node n and 0 at all other nodes the value of the line integral over an edge is 1 at the edge e and 0 at all other edges the value of the surface integral over a facet is 1 in the plane f and 0 at all other planes