ArticleslgStudy

chemistry

Hp-FEM

Hp-FEM is a chemistry topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hp-FEM rather than just read about it. In short: hp-FEM is a generalization of the finite element method (FEM) for solving partial differential equations numerically based on piecewise-polynomial approximations. hp-FEM originates from the discovery by Barna A. Szabó and Ivo Babuška that the finite element method converges exponentially fast when the mesh is refined using a suitable combination of h-refinements (dividing elements into smaller ones) and p-refinement…

Hp-FEM — main illustration
Hp-FEM — illustration

Key takeaways

  • Hp-FEM belongs to chemistry; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hp-FEM to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hp-FEM from memory before moving on to harder problems.

Reference excerpt

hp-FEM is a generalization of the finite element method (FEM) for solving partial differential equations numerically based on piecewise-polynomial approximations. hp-FEM originates from the discovery by Barna A. Szabó and Ivo Babuška that the finite element method converges exponentially fast when the mesh is refined using a suitable combination of h-refinements (dividing elements into smaller ones) and p-refinements (increasing their polynomial degree). The exponential convergence of hp-FEM has been observed by numerous independent researchers.

Differences from standard FEM The hp-FEM differs from the standard (lowest-order) FEM in many aspects.

Choice of higher-order shape functions: The higher-degree polynomials in elements can be generated using different sets of shape functions. The choice of such a set can influence dramatically the conditioning of the stiffness matrix, and in turn the entire solution process. Automatic hp-adaptivity: In hp-FEM, an element can be hp-refined in many different ways, such as: Increasing its polynomial degree without subdividing it in space, or subdividing the element geometrically, where various polynomial degrees can be applied to the sub-elements. The number of element refinement candidates easily reaches 100 in two dimensions and 1000 in three dimensions. One number indicating the size of the error in an element is not enough to guide automatic hp-adaptivity (as opposed to adaptivity in standard FEM). Other techniques such as reference solutions or analyticity considerations must be employed to obtain more information about the shape of error in every element. The ratio of assembling and solution CPU times: In standard FEM, the stiffness matrix usually is assembled quickly but it is quite large. Typically, the solution of the discrete problem consumes the largest part of the overall computing time. By contrast, the stiffness matrices in hp-FEM typically are much smaller, but (for the same matrix size) their assembly takes more time than in standard FEM. This is mainly due to the computational cost of numerical quadrature, which must have higher precision, and therefore be of higher order, compared to standard FEM to take advantage of the faster convergence rates. Programming challenges: It is much harder to implement a hp-FEM solver than standard FEM code. The multiple issues that need to be overcome include (but are not limited to): higher-order quadrature formulas, higher-order shape functions, connectivity and orientation information relating shape functions on the reference domain with basis functions in the physical domain, etc.

Solution to Fichera problem The Fichera problem (also called the Fichera corner problem) is a standard benchmark problem for adaptive FEM codes. One can use it to show the dramatic difference in the performance of standard FEM and hp-FEM. The problem geometry is a cube with a missing corner. The exact solution has a singular gradient (an analogy of infinite stress) at the centre. The knowledge of the exact solution makes it possible to calculate the approximation error exactly and thus compare various numerical methods. For illustration, the problem was solved using three different versions of adaptive FEM: linear elements, quadratic elements, and hp-FEM.

The convergence graphs show the approximation error as a function of the number of degrees of freedom (DOF). DOF refers to unknown parameters that are needed to define the approximation, and the number of DOF equals the size of the stiffness matrix. The reader can see in the graphs that the convergence of the hp-FEM is much faster than the convergence of both other methods. The performance gap is large enough that the linear FEM might not converge at all (in reasonable time) and the quadratic FEM would need hundreds of thousands or perhaps millions of DOF to reach the accuracy that hp-FEM attained with approximately 17,000 DOF. Obtaining very accurate results using relatively few degrees of freedom is the main strength of hp-FEM.

Efficiency of hp-FEM Smooth functions can be approximated much more efficiently using large high-order elements than small piecewise-linear ones. This is illustrated in the figure below, where a one-dimensional Poisson equation with zero Dirichlet boundary conditions is solved on two different meshes. The exact solution is the sine function.

Left: mesh consisting of two linear elements. Right: mesh consisting of one quadratic element.

While the number of unknowns is the same in both cases (1 DOF), the errors in the corresponding norm are 0.68 and 0.20, respectively. This means that the quadratic approximation was roughly 3.5 times more efficient than the piecewise linear one. When we proceed one step further and compare (a) four linear elements to (b) one quartic element (p=4), then both discrete problems will have three DOFs, but the quartic approximation will be approximately 40 times more efficient. On the contrary, small low-order elements can capture small-scale features such as singularities much better than large high-order ones. hp-FEM is based on an optimal combination of these two approaches which leads to exponential convergence. Note that this exponential convergence is expressed in the axis of error vs. degrees of freedom. For real-life applications, we usually consider the computational time needed to reach the same level of accuracy. For this performance indicator h- and hp-refinement can provide similar results. As soon as it is harder to program and parallelize hp-FEM compared to h-FEM, the convergence excellence of hp-refinement may become impractical.

… excerpt ends here. Continue reading the full article.

Illustrations

Hp-FEM illustration
Hp-FEM illustration
Hp-FEM illustration
Hp-FEM illustration
Hp-FEM illustration

Worked examples

Example 1 — a first encounter with Hp-FEM

Start with the simplest possible case. Write down what Hp-FEM claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In chemistry, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hp-FEM before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hp-FEM ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hp-FEM

In research
Hp-FEM appears in chemistry research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hp-FEM in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hp-FEM is common in secondary-school and first-year university syllabi. It links to neighbouring topics Finite element method, so understanding it makes those chapters shorter.
In everyday life
Look for Hp-FEM outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hp-FEM” →

How to study Hp-FEM in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hp-FEM means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hp-FEM out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hp-FEM in simple terms?

hp-FEM is a generalization of the finite element method (FEM) for solving partial differential equations numerically based on piecewise-polynomial approximations. hp-FEM originates from the discovery by Barna A. Szabó and Ivo Babuška that the finite element method converges exponentially fast when…

Why does Hp-FEM matter?

Because it connects several chemistry ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hp-FEM?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hp-FEM.

Tags

  • Finite element method

Keep exploring