


























Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!



























We now treat the problem we arrived at for what it is, an equation , to be studied and solved as such: Given a bounded domain D, a number I (the mmf), and a function μ (the permeability), subject to the conditions 0 < μ 0 ≤ μ ≤ μ 1 of Eq. (18) in Chapter 2,
find ϕ ∈ ΦI^ = {ϕ ∈ Φ : ϕ = 0 on Sh 0 , ϕ = I on Sh 1 } such that (1) ∫D μ grad ϕ · grad ϕ' = 0 ∀ ϕ' ∈ Φ^0.
S b S^
h 0
S h 1
n D
FIGURE 3.1. The situtation, reduced to its meaningful geometrical elements.
All potentials ϕ and test functions ϕ' belong to the encompassing linear space Φ of piecewise smooth functions on D (cf. 2.4.2), and the geometrical elements of this formulation, surface S = Sh^ ∪ S b, partition Sh = S h 0 ∪ Sh 1 of the “magnetic wall” S h^ (Fig. 3.1), are all that we abstract from the concrete situation we had at the beginning of Chapter 2. We
note that the magnetic energy (or rather, coenergy, cf. Remark 2.6) of
62 CHAPTER 3 Solving for the Scalar Magnetic Potential
h = grad ϕ, that is,
F (ϕ) = 12 ∫D μ |grad ϕ|^2 ,
is finite for all elements of Φ. The function F, the type of which is FIELD → REAL , and more precisely, Φ → IR, is called the (co)energy functional.
Remark 3.1. The use of the quaint term “functional” (due to Hadamard), not as an adjective here but as a somewhat redundant synonym for “function”, serves as a reminder that the argument of F is not a simple real- or vector-valued variable, but a point in a space of infinite dimension, representative of a field. This is part of the “functional” point of view advocated here: One m a y treat complex objects like fields as mere “points” in a properly defined functional space. ◊
Function F is quadratic with respect to ϕ, so this is an analogue, in infinite dimension, of what is called a quadratic form in linear algebra. Quadratic forms have associated polar forms. Here, by analogy, we define the polar form of F as F(ϕ, ψ) = ∫D μ grad ϕ · grad ψ, a bilinear function of two arguments, that reduces to F, up to a factor 2, when both arguments take the same value.
The left-hand side of (1) is thus F (ϕ, ϕ' ). This cannot be devoid of significance, and will show us the way: In spite of the dimension being infinite, let us try to apply to the problem at hand the body of knowledge about quadratic forms. There is in particular the following trick, in which only the linearity properties are used, not the particular way F was defined: For any real λ,
(2) 0 ≤ F(ϕ + λψ) = F(ϕ) + λ F(ϕ, ψ) + λ^2 F(ψ) ∀ ψ ∈ Φ.
One may derive from this, for instance, the Cauchy–Schwarz inequality, by noticing that the discriminant of this binomial function of λ must be nonnegative, and hence
F(ϕ, ψ) ≤ 2 [F(ϕ)]1/2^ [F(ψ)] 1/2^ ,
with equality only if ψ = aϕ + b, with a and b real, a ≥ 0. Here we shall use (2) for a slightly different purpose:
Proposition 3.1. Problem (1) is equivalent to
(3) Find ϕ ∈ ΦI^ such that F (ϕ) ≤ F(ψ) ∀ ψ ∈ ΦI,
the coenergy minimization problem.
64 CHAPTER 3 Solving for the Scalar Magnetic Potential
at ϕ, for all directions that satisfy the constraint. The condition obtained that way is called the Euler equation of the variational problem.
Here, (4) is the map ψ → F(ϕ, ψ), after (2). Therefore, Problem (1), which expresses the cancellation of this derivative in all directions parallel to Φ^0 , is the Euler equation of the coenergy minimization problem (3).
Exercise 3.1. Find variational forms for Problems (2.34) and (2.36).
In the space Φ ∗^ of the last chapter (Exer. 2.9), which is visualized as ordinary space in Fig. 3.2, we may define a norm , ||ϕ||μ = (2F(ϕ) ) 1/2^ ≡ [∫D μ |grad ϕ|^2 ]1/2^ , hence a notion of distance: The distance in energy of two potentials is dμ(ϕ, ψ) = ||ϕ – ψ||μ ≡ [∫D μ |grad(ϕ – ψ)|^2 ]1/2^. The variational problem can then be described as the search for this potential in ΦI^ that is closest to the origin, in energy: in other words, the projection of the origin on ΦI.
Moreover, this norm stems from a scalar product, which is here, by definition, (ϕ, ψ)μ = ∫D μ grad ϕ · grad ψ (≡ F(ϕ, ψ), the polar form), with ||ϕ||μ = [(ϕ, ϕ)μ]1/2^. The weak form also then takes on a geometrical interpretation: It says that vector ϕ is orthogonal to Φ^0 , which amounts to saying (Fig. 3.2) that point ϕ is the orthogonal projection of the origin on ΦI. The relation we have found while proving Prop. 3.1,
(5) F (ψ) = F(ϕ) + F(ψ – ϕ) ∀ ψ ∈ ΦI,
if ϕ is the solution, then appears as nothing but the Pythagoras theorem, in a functional space of infinite dimension.
Exercise 3.2. Why the reference to Φ ∗, and not to Φ?
This is our first encounter with a functional space: an affine space, the elements of which can usually be interpreted as functions or vector fields, equipped with a notion of distance. When, as here, this distance comes from a scalar product on the associated vector space, we have a pre-Hilbertian space. (Why “pre” will soon be explained.) The existence of this metric structure (scalar product, distance) then allows one to speak with validity of the “closeness” of two fields, of their orthogonality, of converging sequences, of the continuity of various mappings, and so forth. For instance (and just for familiarization, for this is a trivial result), if we call ϕ(I) the solution of (1) or (3), considered as a function of the mmf I, we have
Proposition 3.2. The mapping I → ϕ(I) is continuous in the energy metric.
Proof. By (1), ϕ(I) = I ϕ(1), hence ||ϕ(I)||μ = |I| ||ϕ(1)||μ, that is, ||ϕ(I)||μ ≤
C |I| for all I, where C is a constant, thus satisfying the criterion for continuity of linear operators. ◊
Exercise 3.3. Show that J (notation of Exer. 2.9) is continuous on Φ ∗.
As for the functional point of view, also heralded before, we now have a good illustration of it: Having built a functional space of eligible potentials, we search for a distinguished one, here the orthogonal projection of the origin on ΦI.
Remark 3.2. Once we have this solution ϕ, then, by the integration by parts formula, ∫D μ |grad ϕ|^2 = ∫S n · b ϕ = I ∫Sh 1 n · b = I 2 /R, by definition of the reluctance R (cf. 2.4.1). So, finding the magnetic coenergy will give access to R. We’ll return to this in Chapter 4 (Subsection 4.1.3). ◊
After this promising commencement, the bad news: Problems (1) or (3) may fail to have a solution.
Call d the distance of the origin to ΦI, that is, d = inf{||ψ||μ : ψ ∈ ΦI}. For each integer n, there certainly exists some ϕn in ΦI^ such that ||ϕn||μ ≤ d + 1/n. (Otherwise, d would be lower than the infimum.) Moreover, d = lim (^) n → ∞ ||ϕn||μ. One says that the ϕns form a minimizing sequence , which we may expect to converge towards a limit ϕ. If so, this limit will be the solution.
Indeed, by developing ||ϕn ± ϕm||μ^2 = ∫D μ |grad(ϕn ± ϕm)|^2 , we have
||ϕn – ϕm||μ^2 + ||ϕn + ϕm||μ^2 = 2(||ϕn||μ^2 + ||ϕm||μ^2 ).
The point (ϕn + ϕm)/2 belongs to ΦI, so its distance to 0 is no smaller than d; therefore ||ϕn + ϕm||μ^2 ≥ 4d^2 , and hence,
(6) ||ϕn – ϕm||μ^2 ≤ 2(||ϕn||μ^2 + ||ϕm||μ^2 ) – 4d 2.
Now, let n and m tend to infinity; the right-hand side tends to 0, so ||ϕn – ϕm||μ tends to 0; this qualifies {ϕn : n ∈ IN} as a Cauchy sequence , which a converging sequence must be (cf. Appendix A, Subsection A.4.1).
But this necessary condition is not sufficient. Just as the set of rational numbers does not contain all the limits of its Cauchy sequences, functional
Refer to Fig. 2.6 (recalled in inset), and imagine the system as so long in the z–direction that all field lines are in the x–y plane, which makes a 2D modelling feasible. It is well known that the field will be infinite at the tips of the “re- entrant corners” C and C' with such geometry. (This is the same phenomenon as the “spike effect” in electrostatics.) By doing Exercises 5 and 6, you should be able to see why: An analogue of Problems (1) and (3), in an appropriately simplified two-dimensional setting, can be solved in closed form, and its solution exhibits a mild singularity at the origin (which corresponds to corner C). The potential is well-behaved (cf. Fig. 3.6, p. 89), but its gradient becomes infinite at the origin, in spite of the magnetic coenergy 3 being bounded.
This is an idealization, but it points to an unacceptable weakness of our modelling: The restriction to piecewise smooth potentials, which seemed quite warranted, bars the existence of such mild singularities, 4 whereas physics requires they be accounted for, as something that can happen. Our space is too small: The frame is too narrow.
Of course, we could blame this failure on too strict a definition of smoothness, and revise the latter in the light of new data, contriving to accept mildly singular fields as “smooth” according to some new, looser definition. But first, this kind of “monster-barring” [La] would lead to even more technical concepts and (likely) to something more esoteric than the radical solution we shall eventually adopt. Moreover, it might be only the beginning of an endless process: One may easily imagine how fractal-like boundaries, for instance, could later be invoked to invalidate our attempts to deal with corners.
The radical (and right) solution is completion: Having a non-complete functional space, immerse it into a larger, complete space. Then the above method works: The solution exists, in the completed space, as the limit of
(^3) In such a 2D modelling, the μ-norm corresponds to the (co)energy contributed by the
region of space lying between two horizontal planes, one unit of length apart. (^4) Precisely: the singularity at 0 makes it impossible to extend ϕ to a domain that would
contain the origin and where its gradient would be finite, which is required by 1-smoothness “over” D, as we defined it.
a minimizing sequence. (All of them will yield the same limit.)
S b^ S b
S h
S h
D C (^) C'
68 CHAPTER 3 Solving for the Scalar Magnetic Potential
Completion logically belongs to the mathematical Appendix of this book, but the idea is so important, and so germane to what physicists do spontaneously when they define “generalized solutions” to problems which have no “classical” ones, that it may be worthwhile to discuss it here.
First, note this is not the same thing as closure. Indeed, if A is a part of a metric space {X, d}, sequences which fail to converge in A may converge to an element of its closure, so if X is complete, the completion of A will be its closure A‹. But there, A is already immersed in a pre-existing metric space. If such an encompassing complete space does not yet exist, we can’t proceed that way.
1 2
n n + 1
X
x x xx
i(x)
x (^1) x (^2)
x (^3)
x^ X^
y 1 y 2 y 3
X
X
FIGURE 3.3. The idea of completion. X Ó is an abstract space: its elements are of a different type that those of X. But there is a natural injection of X into X Ó, so the process can be seen, very informally, as “plugging the holes” in X.
The idea (Fig. 3.3) conforms with the usual method for building new mathematical objects from old ones: define equivalence relations (cf. A.1.6) , and take equivalence classes. This is how, one will remember, rational numbers are built from pairs of integers, and real numbers from sequences of rationals. Completion is quite analogous to the construction of IR in this respect. Suppose {X, d} is a metric space, that is, a set X equipped with a distance d. Let X° be the set of all Cauchy sequences in X. Two elements of X°, say x °= {x 1 , x 2 ,.. ., x (^) n,... } and y°= {... , y (^) n,... } , will be deemed equivalent if lim (^) n → ∞ d(xn, y (^) n) = 0 (Fig. 3.3). That is easily seen to be an equivalence relation, under the hypothesis that we are dealing with Cauchy sequences. We thus consider the quotient XÓ, we give it a distance, dÓ( x , y ) = lim (^) n → ∞ d(x (^) n, y (^) n), where {x (^) n} and {y (^) n} are representa- tives of the classes x and y , and we define the newly found metric space {XÓ, dÓ} as the completion of X. This is a bold move, for the elements of XÓ, being sets of sequences of elements of X, seem of a completely different
70 CHAPTER 3 Solving for the Scalar Magnetic Potential
A little more abstractly, suppose the problem has been cast in the form Ax = b, where b symbolizes the data, x the solution, and A some mapping of type SOLUTION → DATA. Solving the problem means, at a high enough level of abstraction, finding 7 the inverse A –1, which may not be defined for some values of b (those corresponding to sharp corners, let’s say, for illustration). But if there is a solution xn for each element bn of some sequence that converges toward b, it’s legitimate to define the limit x = lim (^) n → ∞ x (^) n as the solution, if there is such a limit, and if there isn’t, to invent one. That’s the essence of completion. Moreover, attributing to Ax the value b, whereas A did not make sense, a priori, for the generalized solution x, constitutes a prolongation of A beyond its initial domain, a thing which goes along with completion (cf. A.2.3). Physicists made much mileage out of this idea of a generalized solution, as the eventual limit of a parameterized family, before the concepts of modern functional analysis (complete spaces, distributions, etc.) were elaborated in order to give it status.
Summing up: We now attribute the symbol Φ ∗^ to the completion of the space of piecewise smooth functions in D, null on S h 0 and equal to some constant on Sh 1 , with respect to the norm ||ϕ||μ = [∫D μ |grad ϕ|^2 ]1/^. Same renaming for ΦI^ (which is now the closure of the previous one in Φ ∗). Equation (1), or Problem (3), has now a (unique) solution. The next item in order^8 is to solve for it.
But what do we mean by that? Solving an equation means being able to answer specific questions about its solution with controllable accuracy, whichever way. A century ago, or even more recently in the pre-computer era, the only way was to represent the solution “in closed form”, or as the sum of a series, thus allowing a numerical evaluation with help of formulas and tables. Computers changed this: They forced us to work from the
(^7) An unpleasantly imprecise word. What is required, actually, is some representation of
the inverse, by a formula, a series, an algorithm... anything that can give effective access to the solution. (^8) Whether Problem (3) is well posed (cf. Note 1.16) raises other issues, which we temporarily
bypass, as to the continuous dependence of ϕ on data: on I (Prop. 3.2 gave the answer), on μ (cf. Exers. 3.17 and 3.19), on the dimensions and shape of the domain (Exers. 3.18 and 3.20).
outset with finite representations. Eligible fields and solutions must
therefore be parameterized, with a perhaps very large, but finite, number of parameters.
Suppose we have a finite catalog of elements of Φ, {λi^ : i ∈ J }, often called trial functions , where J is a (finite) set of indices. Each λi^ must be a simple function, one which can be handled in closed form. If we can find a family of real parameters {ϕϕϕϕi : i ∈ J } such that ∑i ϕϕϕϕi λi^ is an approximation of the solution, this will be enough to answer questions the modelling was meant to address, provided the approximation is good enough, because all the data-processing will be done via the λi^ s. The parameters ϕϕϕϕi (set in bold face) are called the degrees of freedom (abbreviated as DoFs or DoF, as the case may be) of the field they generate. We shall denote by ϕϕϕϕ, bold also, the family ϕϕϕϕ = {ϕϕϕϕi : i ∈ J}.
The Ritz–Galerkin idea consists in restricting the search for a field of least energy to those of the form ∑i ∈ J ϕϕϕϕi λi^ that belong to ΦI. The catalog of trial functions is then known as a Galerkin basis. (We shall say that it defines an approximation method , and use the subscript m to denote all things connected with it, when necessary; most often, the m will be understood.) This is well in the line of the above constructive method for proving existence, for successive enlargements of the Galerkin basis will generate a sequence with decreasing energy, and if, moreover, this is a minimizing sequence, the day is won.
To implement this, let us introduce some notation: Φm is the finite dimensional space of linear combinations of functions of the catalog, that is to say, the space spanned by the λi^ s, and we define
(7) ΦI m = Φm ∩ ΦI, Φ^0 m = Φm ∩ Φ^0.
The approximate problem is thus:
(8) Find ϕm ∈ ΦI m such that F(ϕm) ≤ F(ψ) ∀ ψ ∈ ΦI m.
This problem has a solution (by the compactness argument of A.2.3), since we are considering here a positive definite quadratic form on a finite - dimensional space. If in addition we assume that ΦI m and Φ^0 m are parallel, just as ΦI^ and Φ^0 were in Fig. 3.2 (this is not automatic, and depends on a sensible choice of trial functions), then (8) is equivalent, by exactly the same reasoning we made earlier, to the following Euler equation:
enforcement of the n · b boundary condition” on S b. This also will wait (till the next chapter).
Meanwhile, it’s interesting to examine the geometry of the situation (Fig. 3.4). The figure suggests that ϕm, which is the projection of 0 on ΦI m, is also the projection of ϕ (the exact solution) on ΦI m. This is correct: To see it, just restrict the test functions in (1) to elements of Φ^0 m, which we have assumed (cf. (7)) are contained in Φ^0 , which gives
∫D μ grad ϕ. grad ϕ' = 0 ∀ ϕ' ∈ Φ^0 m.
But by (9) we also have
∫D μ grad ϕm. grad ϕ' = 0 ∀ ϕ' ∈ Φ^0 m ,
therefore, by difference,
(11) ∫D μ grad(ϕm – ϕ) · grad ϕ' = 0 ∀ ϕ' ∈ Φ^0 m ,
which expresses the observed orthogonality.
The figure also suggests a general method for error estimation. Let rmϕ be an element of ΦI m that we would be able to associate with ϕ, as an approximation, i f we knew it. Then we have, as read off the figure, and proved by setting ϕ' = ϕm – rmϕ in (11),
||ϕ – ϕm ||μ ≤ ||ϕ – rmϕ ||μ
(rmϕ is farther from ϕ, in energy, than ϕm is). So if we are able somehow to bound ||ϕ – rmϕ||μ, an error bound on ϕm – ϕ will ensue. The potential of the idea for error control is obvious, and we whall return to it in Chapter 4, with a specific Galerkin basis and a specific rm.
The Ritz–Galerkin method is of surprising efficiency. If trial functions are well designed, by someone who has good feeling for the real solution, a handful of them may be enough for good accuracy in estimating the functional. But it’s difficult to give guidelines of general value in this respect, especially for three-dimensional problems. Besides, the computer changed the situation. We can afford many degrees of freedom nowadays (some modern codes use millions [We]) and can lavish machine time on the systematic design of Galerkin bases in a problem-independent way:
(^9) The terminology is hesitant: Some say these equations are approximately satisfied “in
the sense of weighted residuals”, or “in the weak sense of finite elements”, or even simply “in the weak sense”, which may induce confusion. “Discrete” solenoidality might be used as a more palatable alternative to “m-weak” solenoidality.
This is what finite elements are about.
74 CHAPTER 3 Solving for the Scalar Magnetic Potential
So let be given a bounded domain D ⊂ E 3 with a piecewise smooth boundary S, and also inner boundaries, corresponding to material interfaces (discontinuity surfaces of μ, in our model problem).
A finite element mesh is a tessellation of D by volumes of various shapes, but arranged in such a way that two of them intersect, if they do, along a common face, edge, or node,^10 and never otherwise. We shall restrict here to tetrahedral meshes, where all volumes have six edges and four faces, but this is only for clarity. (In practice, hexahedral meshes are more popular. 11 ) Note that a volume is not necessarily a straight tetrahedron, but may be the image of some “reference tetrahedron” by a smooth mapping u (inset). 12 This may be necessary to fit curved boundaries, or to cover infinite regions. Usually, one also arranges for material interfaces to be paved by faces of the mesh.
Exercise 3.7. Find all possible ways to mesh a cube by tetrahedra, under the condition that no new vertex is added.
Drafting a mesh for a given problem is a straightforward, if tedious, affair. But designing mesh generators is much more difficult, a scientific specialty [Ge] and an industry. We shall not touch either subject, and our only concern will be for the output of a mesh-generation process. The mesh is a complex data structure, which can be organized in many different ways, but the following elements are always present, more or less directly: (1) a list of nodes of the mesh, pointing to their locations; (2) a list of edges, faces, and volumes, with indirections allowing one to know which nodes are at the ends of this and that edge, etc.; (3) parameters describing the mapping of each volume to the reference one; (4) for each volume, parameters describing the material properties (for instance, the average value of μ, in our case).
For maximum simplicity in what follows, we assume that all volumes are straight tetrahedra. This can always be enforced, by distorting D to
(^10) Or vertex. For some, “vertex” and “node” specialize in distinct meanings, vertices
being the tips of the elementary volumes, and nodes the points that will support degrees of freedom. This distinction will not be made here. (^11) Most software systems offer various shapes, including tetrahedra and prisms, to be
used in conjunction. This is required in practice for irregular regions. (^12) A more precise definition will be given in Chapter 7.
a polyhedron with plane faces, which is then chopped into tetrahedra.
u.
76 CHAPTER 3 Solving for the Scalar Magnetic Potential
form a tetrahedron. Four real numbers λ^1 , λ^2 , λ^3 , λ^4 such that ∑i λi^ = 1 determine a point x, the barycenter of the xi s for these weights , uniquely defined by
(12) x – x 0 = ∑ (^) i = 1, 4 λi^ (x (^) i – x 0 ) ,
where x 0 is any origin (for instance, one of the x (^) i s). Conversely, any point x has a unique representation of the form (12), and the weights λi^ , considered as four functions of x, are the barycentric coordinates of x in the affine basis provided by the four points. Note that x belongs to the tetrahedron if λi^ (x) ≥ 0 for all i. The λi^ s are affine functions of x.
Remark 3.3. Consequently, a function p which is polynomial with respect to the three Cartesian coordinates can be expressed as a polynomial expression x → P(λ^1 (x),... , λ^4 (x)) of the barycentric coordinates, where P is another polynomial, of the same maximum degree as p, with four variables. This possibility is often used, usually without warning. ◊
Now, consider our paving of D‹ by tetrahedra. To each node n of the mesh, let us attribute a function, defined as follows: Its value at point x is 0 if the cluster D (^) n does not contain x, and if it does, it is the barycentric coordinate of x with respect to n, in the affine basis provided by the tetrahedron to which x belongs. (There is no ambiguity in that, because if x belongs to a simplex s, and thereby, to all tetrahedra of the cluster of s, its barycentric coordinates with respect to vertices of s are all the same, whatever the tetrahedron one considers to reckon them.) We shall reattribute to this nodal function the symbol λn. Note that, by construction, λn(x) ≥ 0, its support is D‹ n, its domain is D‹ (but doesn’t go beyond), and
(13) ∑ (^) n ∈ N λn(x) = 1 for all x ∈ D‹.
The λns themselves are often called “barycentric coordinates”, though they coincide with the previous λi^ s only for the nodes around x. This abuse is harmless, but I’ll stick to “nodal functions”, notwithstanding.
A shorter way to describe them is to say: λn^ is the only piecewise affine function 14 that takes the value 1 at node n and 0 at all other nodes.
(^14) Meaning: affine by restriction to each tetrahedron. I will use “ mesh-wise ” in such
cases: mesh-wise affine, mesh-wise quadratic, etc. (this is not standard terminology).
The inset shows the pattern of level lines of λn^ in the 2D case (triangulation
0
0
0
0
0
1
.
.75.
of a plane domain D). It is easy from this to imagine the graph of the corresponding function, and to understand why the λns are often called “hat functions”.
Exercise 3.8. Prove that the hat functions are linearly independent.
Exercise 3.9. Compute the average of λn^ over (1) an edge e, (2) a face f, (3) a tetrahedron T, all containing n.
Remark 3.4. Two things are essential in this construction: (1) each λn^ is supported on the cluster of n, (2) they form a partition of unity over D, i.e., ∑ (^) n ∈ N λn^ = 1, relation (13). The affine character is secondary, and is lost in case of curved tetrahedra.^15 But it considerably simplifies the programming, in conjunction with Remark 3.3, as we’ll see. ◊
Well, that’s all: The finite element method is the Ritz–Galerkin method, the basis functions being a partition of unity associated with a mesh, as above.
There are many ways to devise such a partition of unity, and the use of barycentric functions is only the simplest. When one refers to “a” finite element, it’s this whole procedure one has in mind, not only the analytical expression of the basis functions. However, the latter suffices in many cases. Here, for instance, the restrictions of the λns to individual tetrahedra are affine functions, that is, polynomials of maximum degree 1 of the Cartesian coordinates (one calls them “P 1 elements” for this reason), and this is enough characterization. 16
Let us give another example, which demonstrates the power of this notation. What are “P 2 elements”? This means functions with small support, like the above λns, which restrict to each tetrahedron as a second- degree polynomial, and therefore (Remark 3.3) are in the span of the products λnλm. This is enough to point to the partition of unity, for the set {λnλm^ : n ∈ N , m ∈ N } is perfect in this respect: we do have
∑ (^) n, m ∈ N λn^ λm^ = ∑ (^) n ∈ N [λn^ (∑ (^) m ∈ N λm^ )] = ∑ (^) n ∈ N λn^ = 1
after (13), and the support of λn^ λm^ is either the cluster of n, if n = m, or
(^15) What is affine, then, is the “pull-back” of λn (^) onto the reference tetrahedron. For this
notion, push a little forward (Note 7.9). (^16) There is in finite element theory a traditional distinction between “basis functions”, like
the λn, and “shape functions”, which are their restrictions to mesh volumes. As one sees here, shape functions are more simply characterized. Theory, on the other hand, is easier in terms of basis functions.
the cluster of edge n to m, if n and m are neighbors (the inset, next page,
the vector spaces they span. In particular, we shall denote with bold parentheses the Euclidean scalar product of two elements of ΦΦΦΦ, like this:
(15) ( ϕϕϕϕ, ϕϕϕϕ' ) = ∑ (^) n ∈ N ϕϕϕϕn ϕϕϕϕ' (^) n.
To introduce ΦI m, first call N ( Sh) the set of all boundary nodes that belong to Sh, including those on the frontier between Sh^ and Sb. Formally, N( Sh) = {n ∈ N : x (^) n ∈ cl(Sh)}, where cl stands for the closure relative to S. Let N( Sh 0 ) and N( Sh 1 ) similarly be defined. Then, define
(16) ΦΦΦΦI^ = {ϕϕϕϕ ∈ ΦΦΦΦ : ϕϕϕϕn = 0 if n ∈ N( Sh 0 ), ϕϕϕϕn = I if n ∈ N( Sh 1 ) }
and, similarly, ΦΦΦΦ^0 , two parallel subspaces of ΦΦΦΦ. Finally, let us set
(17) Φ^0 m = pm(ΦΦΦΦ^0 ), ΦI m = pm(ΦΦΦΦI).
Relation (10), ΦI m = ϕI m + Φ^0 m , has a counterpart here. Let us construct ϕϕϕϕ^1 , a special vector, with all components ϕϕϕϕ^1 n = 0 except for n ∈ N ( Sh 1 ), where they are set to 1. Then, with ϕϕϕϕI^ defined as ϕϕϕϕI^ = I ϕϕϕϕ^1 ,
(18) ΦΦΦΦI^ = ϕϕϕϕI^ + ΦΦΦΦ^0.
Remark 3.5. If you try to check (7) at this stage, you will see that it fails if the faces at the boundary do not fit it exactly. Cf. the inset: a piecewise affine function that vanishes at n and m, but not at l, cannot be zero at x. Because of this tiny difference, ΦI m is not contained in ΦI, and applying the geometrical reasonings suggested by Fig. 3. would be a “variational crime”, in the sense of Strang and Fix [SF]. This (jocular) charge should not deter anyone from using a mesh similar to the one in inset in case of a curved boundary. This is perfectly right! What is not, and would constitute the crime, would be to apply the simple convergence proof that will follow to such a situation, which calls for more cumbersome treatment. Thanks to our decision to deform D into a polyhedron before meshing, we do have ΦI m = Φm ∩ ΦI^ and Φ^0 m = Φm ∩ Φ^0 , as announced in (7). But this will not be effectively used before we address convergence and error analysis, and what immediately follows does not depend on the truth of these assertions. ◊
We want now to interpret problem (9), that is,
(9') find ϕm ∈ ΦI m such that ∫D μ grad ϕm · grad ϕ' = 0 ∀ ϕ' ∈ Φ^0 m ,
in algebraic terms. Since ΦI m = pm(ΦΦΦΦI), this is a linear system with respect
n (^) m
x
l
S D
80 CHAPTER 3 Solving for the Scalar Magnetic Potential
to the “free” degrees of freedom, that is, those not constrained by (16), which are the nodes of the subset N 0 = N – N( Sh). On the other hand, since Φ^0 m is parallel to ΦI m , there are as many equations as unknowns in (9'). Our aim is to rewrite (9') in terms of the degrees of freedom. For this, let us set, for any two nodes n and m,
(19) M n m = ∫D μ grad λn^ · grad λm,
and form the symmetric matrix M , indexed on N × N , of which this is the entry at row n and column m. Then (just write ϕm and ϕ' as in (14), and expand), (9') is equivalent to
(9'') find ϕϕϕϕ ∈ ΦΦΦΦI m such that (M ϕϕϕϕ, ϕϕϕϕ' ) = 0 ∀ ϕϕϕϕ' ∈ ΦΦΦΦ^0 ,
via the correspondence ϕm = pm(ϕϕϕϕ). As a matter of course (we did that twice already), this is equivalent to the variational problem
(9''') find ϕϕϕϕ ∈ ΦΦΦΦI^ such that F (ϕϕϕϕ) ≤ F (ψψψψ) ∀ ψψψψ ∈ ΦΦΦΦI,
where F (ϕϕϕϕ) = 12 (M ϕϕϕϕ, ϕϕϕϕ ).
M is traditionally dubbed the stiffness matrix of the problem, because of the origins of the finite elements method: In mechanics, the analogue of our ϕϕϕϕ is most often a displacement vector, and F (ϕϕϕϕ) is deformation energy, so M ϕϕϕϕ is a force vector, and a force-to-displacement ratio is a stiffness. (One could make a case for admittance matrix, in our context.)
As a last step, let us write M in block form, by partitioning the indexing set N as^17 N = N 0 + N ( Sh). With ad-hoc but obvious notation,
M =
M 00 M 01
(^10) M (^11) M ,
where the submatrix 00 M is indexed over N 0 and thus operates in the subspace ΦΦΦΦ^0 of genuine unknowns (those not constrained by essential boundary conditions). We also write vectors in block form, ϕϕϕϕ = { 0 ϕϕϕϕ, 1 ϕϕϕϕ} , and ϕϕϕϕI^ = { 0 , 1 ϕϕϕϕI}. Thanks to this and to (18), we see that (9") is equivalent to find^0 ϕϕϕϕ ∈ ΦΦΦΦ^0 such t h a t
(20) 00 M^0 ϕϕϕϕ = – 01 M^1 ϕϕϕϕI,
at last a standard linear system, since the right-hand side – 01 M^1 ϕϕϕϕI^ is
(^17) The union sign ∪ is replaced by + when sets are disjoint, as here.
known.