Nonlinear finite elements/Heat equation time integration

From testwiki
Jump to navigation Jump to search

Solving the Matrix Problem

The matrix equations for the Poisson problem do not involve time and can be solved directly using either direct or iterative methods for solving systems of equations. You have done that in your introductory course on finite elements.

For the time-dependent heat equation, a few extra steps are needed. This is because the equations we have developed so far still have continuous time derivatives which need to be approximated.

Recall equations (45)

(45)πŒπ“Λ™+πŠπ“=𝐟.

These equations are a coupled system of first-order ordinary differential equations rather than a system of algebraic equations.

One way of solving the system of differential equations (45) is to use the generalized midpoint rule.

Generalized midpoint rule

Consider the following initial value problem

TΛ™(t)=g(T(t))for allt[0,τ]T(0)=Tn,

where g:ℝℝ is a smooth function.

The generalized midpoint rule can be used to solve this differential equation in an approximate manner.

Let us discretize the domain [0,τ] into increments of Δt. Let Tn+1:=T(tn+1) be the approximation to the exact value of T(t) at time tn+1=tn+Δt.

The integration rule for the generalized midpoint rule is

Tn+1=Tn+Δtg(Tn+θ)g(Tn+θ):=(1θ)g(Tn)+θg(Tn+1)θ[0,1].

When we choose θ=0, we get

Tn+1=Tn+Δtg(Tn);θ=0Forward Euler - fully explicit.

When we choose θ=1, we get

Tn+1=Tn+Δtg(Tn+1);θ=1Backward Euler - fully implicit.

When we choose θ=1/2, we get

Tn+1=Tn+Δt(g(Tn)+g(Tn+1)2);θ=12Midpoint rule, Crank-Nicolson.

Generalized midpoint rule for Heat equation

If we apply the generalized midpoint rule to the system of differential equations

πŒπ“Λ™+πŠπ“=𝐟

we get

(46)πŒπ“Λ™n+1+πŠπ“n+1=𝐟n+1𝐓n+1=𝐓n+Δt𝐓˙n+θ𝐓˙n+θ=(1θ)𝐓˙n+θ𝐓˙n+1

The computational problem is to find 𝐓n+1 and 𝐓˙n+1 given 𝐓n and 𝐓˙n.

We start at t=0 at which time the initial condition 𝐓0 is given. In that case, the value of 𝐓˙0 can be calculated using

𝐓˙0=𝐌1(𝐟0πŠπ“0).

Implementation of the algorithm for subsequent times may take various forms.

Let us combine the second and third equations in (46) to get

(47)𝐓n+1=𝐓n+(1θ)Δt𝐓˙n+θΔt𝐓˙n+1.

If we collect the known quantities at time tn, we can write equation (47) as

(48)𝐓n+1=𝐓~n+1+θΔt𝐓˙n+1

where

𝐓~n+1:=𝐓n+(1θ)Δt𝐓˙n.

The quantity 𝐓~n+1 is often called the predictor value of 𝐓n+1.

At this stage we can proceed in two ways (or more).

The v-form of the Generalized Midpoint Rule.

Substitute equation (48) into the first equation in (46) to get

πŒπ“Λ™n+1+𝐊(𝐓~n+1+θΔt𝐓˙n+1)=𝐟n+1.

Collect terms containing 𝐓˙n+1 and rearrange to get

(49)(𝐌+θΔt𝐊)𝐓˙n+1=𝐟n+1πŠπ“~n+1.

We can solve equation (49) for 𝐓˙n+1. Substitute this solution into equation (48) to get 𝐓n+1.

This approach is called the 𝐯-form because the "velocity" or rate of change of the unknown quantity is calculated first followed by the actual quantity.

The d-form of the Generalized Midpoint Rule.

Substitute equation (48) into the first equation in (46) to get

𝐌(𝐓n+1𝐓~n+1θΔt)+πŠπ“n+1=𝐟n+1.

Collect terms containing 𝐓n+1 and rearrange to get

(50)(𝐌+θΔt𝐊)𝐓n+1=θΔt𝐟n+1+πŒπ“~n+1.

The system of equations (50) can be solved for 𝐓n+1. Once we know 𝐓n+1, we can calculate 𝐓˙n+1 using equation (48).

This approach is called the 𝐝-form because the "displacement" or the actual unknown quantity is calculated first followed by its rate.

Explicit foward Euler method

FE System of ODEs:

πŒπ“Λ™+πŠπ“=𝐟

We know:

Δt;𝐓n;𝐓˙n;𝐟n+1

Apply generalized midpoint rule (θ=0):

πŒπ“Λ™n+1+πŠπ“n+1=𝐟n+1𝐓n+1=𝐓n+Δt𝐓˙n

Combine:

πŒπ“Λ™n+1+𝐊(𝐓n+Δt𝐓˙n)=𝐟n+1

Solve for 𝐓˙n+1.


Many other techniques are available for solving systems of time-dependent ODEs. We will look into some of them later.

Quality of Approximate Solutions

The usual engineer's approach is to stop after a solution has been obtained and assume that this solution is adequate. However, it is quite important to have some information about the quality of the approximation. Unless such information is available, the finite element solution is essentially useless because it could have little resemblance to the actual solution.

Verification is the process of determining if the numerical approximation is an accurate representation of the mathematical model. The first step in the process is to obtain a qualitative estimate of the error in the approximation. Functional analysis plays a vital role in determining these estimates of error.

The next step in the verification process is to obtain some information about whether an approximate solution converges to the exact solution as the mesh is refined. We can also determine what the rate of convergence or order of accuracy for a particular approach is. We will not get into the details of error estimation in this course except for a few specific cases.

The final step in the verification process involves comparisons of numerical results with known exact solutions and experimental results of well-characterized benchmark problems.

We also need to validate our models. Validation is the process of determining the degree to which our mathematical model represents physical reality (as far as the intended use of the model is concerned).

Later, we will discuss some aspects of verification and validation in the context of multi-physics problems.

Template:Subpage navbar