3

Consider, for concreteness, the finite element (FE) method applied to stationary heat conduction in a domain $\Omega \subset \mathbb{R}^3$. Let the heat flux (thermal energy per unit area and time) be denoted by $\mathbf{q}$, and let the source term (applied thermal energy per unit volume and time) be denoted by $Q$. The strong form of the equation is simply given by the balance law $$1) \nabla \cdot \mathbf{q}=Q.$$ Suppose that we prescribe Neumann conditions on the whole boundary, i.e. $\mathbf{q}\cdot \mathbf{n} = g$ on $\partial \Omega$, where $\mathbf{n}$ denotes the outward unit normal, and $g$ denotes some function defined on $\Omega$. Integrating the conservation law 1) over $\Omega$ and using Gauss' theorem along with the boundary conditions, shows that $g$ and $Q$ must be related according to $$2)\int_\Omega QdV =\int_{\partial \Omega}gdA.$$ Consider now the FE formulation of 1). Let's assume a constitutive relation $\mathbf{q} = -\mathbf{D}\nabla T$, where $\mathbf{D}$ denotes the constitutive matrix and $T$ the temperature field. Let $\mathbf{N} = [N_1 \ ... \ N_n]$ denote the global shapefunction vector. The FE formulation then takes the form $$3)\mathbf{K}\mathbf{a}=\mathbf{f}_b+\mathbf{f}_l=\mathbf{f},$$ where $\mathbf{K}$ is the stiffness matrix given by $$4)\mathbf{K} = \int_{\Omega}(\nabla \mathbf{N})^T\mathbf{D}(\nabla \mathbf{N})dV$$ and we have the boundary force vector $\mathbf{f}_b$ and the load force vector $\mathbf{f}_l$, given by $$5)\mathbf{f}_b = -\int_{\partial \Omega}\mathbf{N}^TgdA $$ and $$6)\mathbf{f}_l = \int_{\Omega}\mathbf{N}^TQdV, $$ respectively.

Question 1

My first question, which was not really addressed in the book I'm using, concerns how the integrals in 4), 5) and 6) are actually defined. The shape functions are of course only defined on the elements in the FE mesh, whose domain we can call $M$. If our elements have straight boundaries but $\Omega$ does not have a straight boundary, then $M \neq \Omega$ and $\partial M \neq \partial \Omega$. Therefore, the integrals in 4), 5) and 6) should really be written as $$4')\mathbf{K} = \int_{M}(\nabla \mathbf{N})^T\mathbf{D}(\nabla \mathbf{N})dV,$$ $$5')\mathbf{f}_b = -\int_{\partial M}\mathbf{N}^TgdA $$ and $$6')\mathbf{f}_l = \int_{M}\mathbf{N}^TQdV, $$ respectively. However, then another issue appears. While the integrals in 4') and 6') are well-defined, since $M \subset \Omega$ and $Q$ is defined on $\Omega$, the integral in 5') is not well-defined a-priori, since $\partial M \not\subset \partial \Omega$ while $g$ is defined on $\partial \Omega$. Say for example that $\Omega$ is the quarter ball $\Omega = \{(x,y,z)|x^2+y^2+z^2 \leq 1, x,y,z, \geq 0\}$ and that we use a single element in the form of a tetrahedron, so that $M$ is the tetrahedron with vertices $(0,0,0),(1,0,0),(0,1,0)$ and $(0,0,1)$. Then the "spherical part" $(\partial\Omega)_s =\{(x,y,z)|x^2+y^2+z^2=1\}\cap \partial \Omega$ of $\partial\Omega$ does not coincide with the corresponding face $(\partial M)_s = \{(x,y,z)|x+y+z=1\}\cap \partial M$ of $\partial M$. If $g$ is constant, it probably makes sense to define $\mathbf{f}_b$ as $$5'')\mathbf{f}_b = -g\int_{\partial M}\mathbf{N}^TdA \ (\mathrm{for} \ g \ \mathrm{constant}).$$ However, say that we have defined $g$ on $(\partial \Omega)_s$ by $g|_{(\partial \Omega)_s} = \sqrt{x^2+y^2+z^2-0.9}$, which is well defined. However, we cannot just use the same "formula" $g(x,y,z) = \sqrt{x^2+y^2+z^2-0.9}$ when integrating over $(\partial M)_s$ since e.g. at the point $(1/3,1/3,1/3)$ the argument of the square root becomes negative. In this case, how should one then actually define the integral $-\int_{(\partial M)_s}\mathbf{N}^TgdA$?

Question 2

My second question concerns conservation laws in the FE method, and connects to the issues raised in the first question. In the book that I am using, the authors claim that the FE method exactly reproduces the conservation law in 1). They note that the shape functions satisfy the identity $$7) \sum_{i=1}^n N_i = 1.$$ If we define a total force vector $\mathbf{f}$ by $\mathbf{f}=\mathbf{f}_b+\mathbf{f}_l$ and use equation 7), then from 2), 5) and 6) we obtain $$8)\sum_{i=1}^n f_i = 0. $$

However, as we discussed above, we cannot actually use 5) and 6) to calculate $\mathbf{f}_b$ and $\mathbf{f}_l$, but we must rather use 5') and 6'). Doing so, the relation 8) will of course no longer hold. I argued this point in a course I took based on the aforementioned book, and the reply I got (unless I misunderstood it) was that the FE method does indeed exactly implement the conservation law 1). However, based on the arguments just presented, I don't see how that can be the case.

Thus, my question is whether the FE method does indeed correctly implement the conservation law 1), and if so, how?

  • 1
    I ‘m planning another answer, yes. Please be patient. – Han de Bruijn Jun 13 '21 at 11:25
  • 1
    @HandeBruijn Ok, sounds good. Thanks! – WaltherArgyris Jun 13 '21 at 11:58
  • 1
    And here is a List of FEM related publications by this author, if you are interested. – Han de Bruijn Jun 15 '21 at 09:21
  • 1
    Please take care while reading Zienkiewicz. You know, my personal experience is in numerical analysis with (internal) fluid flow and heat transfer. Zienkiewicz may be good in structural mechanics, but when trying to apply his FEM on my sort of problems, I found that the content of the book can be often highly misleading. I have an old version at my disposal; don't know if later editions of the book show significant improvement concerning the issues encountered at that time. – Han de Bruijn Jun 15 '21 at 12:46
  • @HandeBruijn Dear Han, sorry for my late feedback. I will have a look at your reply. Thanks for your comments on Zienkiewicz' books! – WaltherArgyris Jun 15 '21 at 19:53

2 Answers2

2

The short answer is yes, your intuition is correct, I would also have argued if someone had said the same thing. The approximation of a non polytopal domain by a straight mesh/ triangulation is called a "variational crime", due to the fact that consistency/ Galerkin orthogonality properties are violated.

Unfortunately your experience is very common in finite element literature and my colleague referred to this as the "smooth polygon" assumption, where an author assumes a domain is smooth, so that nice properties hold for the PDE, but then they consider example PDEs on a polytopal domain, so that it can be meshed exactly. For example IF the domain is polytopal, then the deduction is correct, and the conservation law can be replicated.

Otherwise, one must use modified finite element spaces, either by using a curvilear mesh, or a straight edge Triangulation that uses nonaffine maps to define the finite element space. Also, in the special case where $Q$ and $g$ are constant, then it can be conserved, as the source functions are then geometry independent.

Something else that also seems to have been overlooked is that the pure Neumann problem is singular, since any constant fuction is in the kernel of the operator. To overcome this, either a lagrange multiplier should be used (and therefore the variational formulation changes, and so the conservation law won't be replicated), or one has to modify the basis functions so that they integrate to zero (so that the FE solution integrates to zero, and we remove the singularity). If this is the case, then we lose the property $\sum N_i=1$, and the main deduction cannot be made.


Update: It seems that majoritively, your question is about what I have referred to as a "variational crime" in the inexact approximation of the computational domain, rather than necessarily the violation of a conservation law. I will try to summarise a few points:

  1. Variational crime: - generally corresponds to any case in which the variational form is inexact. Polytopal approximation of a curved domain is one such example, but also so is e.g. numerical integration which ubiquitous in FEM and many other applications as it allows for the efficient and accurate approximation of integrals. See e.g. these lecture notes: https://people.maths.ox.ac.uk/suli/fem.pdf

  2. Accuracy: In the case of the polytopal approximation of a curved domain, e.g., the unit disk, one will notice a cap on convergence rates, I have observed in many cases that if one approximates the unit disk with a simplicial mesh, even when the solution is smooth, the convergence rates are capped at $O(h^2)$

  3. Literature: a good bit of the original literature is from the 70s & 80s:

Capturing the domain exactly:

Christine Bernardi: Optimal Finite-Element Interpolation on Curved Domains, https://www.jstor.org/stable/2157925

Scott, L. Ridgway: Finite element techniques for curved boundaries, https://dspace.mit.edu/handle/1721.1/12182

Isoparametric (polynomial) domain approximation: Optimal Isoparametric Finite Elements and Error Estimates for Domains Involving Curved Boundaries, M. Lenoir, https://www.jstor.org/stable/2157524.

I can also shamelessly plug some of my own work here:

  1. Implementation: This is a good question. One approach would be to extend the known boundary data into the full domain, and approximate that on the boundary instead. In the case of piecewise linear finite elements, all of the boundary degrees of freedom would lie on the true boundary, so in that case you would be able to interpolate the data.

Another point to consider here: if your true domain is not convex, the polytopal approximation could lie both inside and outside of the true domain.

Ellya
  • 11,783
  • Thank you for your answer (by the way, it would interesting to hear from the downvoter if there is anything wrong about the answer)! I will hold off a little on accepting your answer and awarding the bounty, in order to see if there is further input. I hope you don't mind. – WaltherArgyris Jun 12 '21 at 08:30
  • I have a few questions that I would like to ask to your answer: – WaltherArgyris Jun 12 '21 at 08:31
  • Do you have any good references to suggest where this is further discussed? Is it properly discussed in standard books like Zienkiewicz and Taylor? I'm very new to FEM, so I don't have much experience with the standard literature. 2)Say that my domain is not polytypal and that I don't have access to finite elements with curved domain boundaries. How do I actually make a correct implementation then? How would f_b actually be defined for non-constant g? 3)You're right that my example is singular. However, I could have added some Dirichlet conditions without changing the nature of my question.
  • – WaltherArgyris Jun 12 '21 at 08:41
  • It would be nice to hear more about that "variational crime" because, if you are right, I've been a criminal for more than 30 years :-( – Han de Bruijn Jun 14 '21 at 19:09
  • 1
    Ah, the panacea of curvilinear meshes. One should be extremely cautious with them, as can easily be demonstrated for the 1-D case: Understand 1D FEM solution using quadratics elements – Han de Bruijn Jun 14 '21 at 19:22
  • It frequently happens that grossly inaccurate material properties outweigh all of your concerns about crime, violated, exactly, correct, singular. Have you ever tried to compute heat conduction in for example a material like wood? – Han de Bruijn Jun 14 '21 at 19:34
  • 1
    @WaltherArgyris I've added some more to answer which hopefully answers some of your questions and points in the right direction :) – Ellya Jun 14 '21 at 21:02
  • @HandeBruijn it does sound like you have been commiting variational crimes, as we all do! I think the best approach is to try to analyse them properly, rather than pretend they do not have an impact (like in the OPs lecture). Also, this post was about FEM in particular. – Ellya Jun 14 '21 at 21:03
  • Also, I think isoparametric finite elements are discussed in the Brenner and Scott book on finite elements (which I would highly recommend), and in Ciarlet's book on finite elements – Ellya Jun 14 '21 at 21:12
  • @Ellya Thank you for your update! Yes, you could probably say that my question is mainly about the "variational crime". It was the question about the conservation law that got me started thinking on it, however. I used the book as course literature for an introductory FEM course. I tried to argue the points I raised above, but didn't really get a satisfactory answer in the course. It's good to know I'm not crazy though for raising these doubts :) Thank you for your references. It will take me some time to digest them! – WaltherArgyris Jun 15 '21 at 20:25
  • @Ellya I know a bit about isoparametric elements. In my course, however, we only discussed them in the context of ensuring compatibility. By the way, are you familiar with how these issues are dealth with in commercial software? Perhaps it is a trade secret. – WaltherArgyris Jun 15 '21 at 20:33
  • I can't comment too much on commercial software, other than I know of someone who has implemented curved finite elements in matlab, but I'm pretty sure they coded it from scratch, so it's not quite the same as using existing "commercial fem software". I have generally worked with open source fem software, and as I recall, firedrake had some capability for curved/ isoparametric elements – Ellya Jun 15 '21 at 21:03
  • @Ellya Ok, thanks! I have now accepted your answer and awarded the bounty. – WaltherArgyris Jun 16 '21 at 09:34
  • @WaltherArgyris. I think that isoparametric elements should be regarded as standard with FEM: finite elements local vs global basisfunction. – Han de Bruijn Jun 16 '21 at 11:30