mimetic methods for diffusion problems - amazon...

18
Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation 21/3/2018 Kennet Olesen PhD Aarhus University 2013-2016

Upload: others

Post on 07-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Mimetic Methods for Diffusion Problems

DANSIS seminar: High order discretisation 21/3/2018

Kennet OlesenPhD

Aarhus University 2013-2016

Page 2: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

A diffusion problem is typically constructed out of 2 parts

β€’ An equilibrium or balance part– E.g. mass balance, energy balance etc.

𝛁 β‹… 𝒒 = 𝑓

β€’ A constitutive part– E.g. relation between heat flux and a temperature gradient

𝒒 = k 𝛁𝛼

Merge the 2 parts and you get:

𝛁 β‹… k 𝛁𝛼 = 𝑓

k βˆ†π›Ό = 𝑓

Structure of a diffusion problem

Mimetic Methods for Diffusion Problems 2

Page 3: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Special interpolation polynomials: Edge polynomials

In [1] interpolation polynomials are derived,which are based on integrated line values

π›½β„Ž πœ‰ =

𝑖=1

𝑁

𝐡𝑖𝑒𝑖(πœ‰) 𝐡𝑖 = πœ‰π‘–βˆ’1

πœ‰π‘–

𝛽 πœ‰ π‘‘πœ‰

𝑒𝑖 πœ‰ = βˆ’

𝑗=0

π‘–βˆ’1π‘‘β„Žπ‘— πœ‰

π‘‘πœ‰ πœ‰π‘˜βˆ’1

πœ‰π‘˜

𝑒𝑖 πœ‰ = 1 π‘“π‘œπ‘Ÿ 𝑖 = π‘˜0 π‘“π‘œπ‘Ÿ 𝑖 β‰  π‘˜

β„Ž: Lagrange polynomials

Mimetic Methods for Diffusion Problems 3

[1]: Gerritsma M.: Edge Functions for Spectral Element MethodsSelected Papers from the ICOSAHOM '09. Springer, 2011

Page 4: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Special interpolation polynomials: Edge polynomials

Mimetic Methods for Diffusion Problems 4

π›½β„Ž πœ‰ =

𝑖=1

𝑁

𝐡𝑖𝑒𝑖(πœ‰)

𝐡𝑖 = πœ‰π‘–βˆ’1

πœ‰π‘–

𝛽 πœ‰ π‘‘πœ‰

π›Όβ„Ž πœ‰ =

𝑖=0

𝑁

π›Όπ‘–β„Žπ‘–(πœ‰)

Page 5: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Interpolation in 3D -> tensor products

Mimetic Methods for Diffusion Problems 5

π›Όβ„Ž πœ‰1, πœ‰2, πœ‰3 =

𝑖

𝑗

π‘˜

π΄π‘–π‘—π‘˜ Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = β„Žπ‘–(πœ‰1)β„Žπ‘—(πœ‰2)β„Žπ‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = 𝑒𝑖(πœ‰1)β„Žπ‘—(πœ‰2)β„Žπ‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = β„Žπ‘–(πœ‰1)𝑒𝑗(πœ‰2)β„Žπ‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = β„Žπ‘–(πœ‰1)β„Žπ‘—(πœ‰2)π‘’π‘˜(πœ‰3)Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = β„Žπ‘–(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = 𝑒𝑖(πœ‰1)β„Žπ‘—(πœ‰2)π‘’π‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)β„Žπ‘˜(πœ‰3)

Ξ¨π‘–π‘—π‘˜ πœ‰1, πœ‰2, πœ‰3 = 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3)

𝑄1 𝑄2 𝑄3

𝐹

Page 6: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Differentiation

β€’ Say we have the approximation:

π›Όβ„Ž πœ‰ =

𝑖=0

𝑁

π›Όπ‘–β„Žπ‘–(πœ‰)

β€’ We choose to approximate the derivative by:

π‘‘π›Όβ„Ž(πœ‰)

π‘‘πœ‰=

𝑖=1

𝑁

π‘–βˆ’π‘–

π‘–π‘‘π›Όβ„Ž(πœ‰)π‘‘πœ‰

π‘‘πœ‰ 𝑒𝑖(πœ‰)

β€’ This reduces to (first fundamental theorem of calculus):

π‘‘π›Όβ„Ž(πœ‰)

π‘‘πœ‰=

𝑖=1

𝑁

𝛼𝑖 βˆ’ π›Όπ‘–βˆ’1 𝑒𝑖(πœ‰)

Mimetic Methods for Diffusion Problems 6

𝛼𝑖

π›Όπ‘–βˆ’1

Page 7: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Divergence

Mimetic Methods for Diffusion Problems 7

𝛁 β‹… π’’β„Ž =πœ•π‘ž1

β„Ž πœ‰1, πœ‰2, πœ‰3πœ•πœ‰1

+πœ•π‘ž2

β„Ž πœ‰1, πœ‰2, πœ‰3πœ•πœ‰2

+πœ•π‘ž3

β„Ž πœ‰1, πœ‰2, πœ‰3πœ•πœ‰3

π‘ž1β„Ž πœ‰1, πœ‰2, πœ‰3 =

𝑖=0

𝑁

𝑗=1

𝑁

π‘˜=1

𝑁

𝑄𝑖,𝑗,π‘˜1 β„Žπ‘–(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3)

π‘ž2β„Ž πœ‰1, πœ‰2, πœ‰3 =

𝑖=1

𝑁

𝑗=0

𝑁

π‘˜=1

𝑁

𝑄𝑖,𝑗,π‘˜2 𝑒𝑖(πœ‰1)β„Žπ‘—(πœ‰2)π‘’π‘˜(πœ‰3)

π‘ž3β„Ž πœ‰1, πœ‰2, πœ‰3 =

𝑖=1

𝑁

𝑗=1

𝑁

π‘˜=0

𝑁

𝑄𝑖,𝑗,π‘˜3 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)β„Žπ‘˜(πœ‰3)

𝛁 β‹… π’’β„Ž =

𝑖=1

𝑁

𝑗=1

𝑁

π‘˜=1

𝑁

𝑄𝑖,𝑗,π‘˜1 βˆ’ π‘„π‘–βˆ’1,𝑗,π‘˜

1 + 𝑄𝑖,𝑗,π‘˜2 βˆ’ 𝑄𝑖,π‘—βˆ’1,π‘˜

2 + 𝑄𝑖,𝑗,π‘˜3 βˆ’ 𝑄𝑖,𝑗,π‘˜βˆ’1

3 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3)

𝑑iv

𝑬(3,2)

Page 8: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Divergence – Incidence matrix

Mimetic Methods for Diffusion Problems 8

Page 9: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

The discrete balance equation

Mimetic Methods for Diffusion Problems 9

𝛁 β‹… π’’β„Ž = 𝑓h

This is written by:

𝑖=1

𝑁

𝑗=1

𝑁

π‘˜=1

𝑁

𝑄𝑖,𝑗,π‘˜1 βˆ’ π‘„π‘–βˆ’1,𝑗,π‘˜

1 + 𝑄𝑖,𝑗,π‘˜2 βˆ’ 𝑄𝑖,π‘—βˆ’1,π‘˜

2 + 𝑄𝑖,𝑗,π‘˜3 βˆ’ 𝑄𝑖,𝑗,π‘˜βˆ’1

3 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3) =

𝑖=1

𝑁

𝑗=1

𝑁

π‘˜=1

𝑁

𝐹𝑖,𝑗,π‘˜ 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3)

They share common interpolation polynomials:

𝑖=1

𝑁

𝑗=1

𝑁

π‘˜=1

𝑁

𝑄𝑖,𝑗,π‘˜1 βˆ’ π‘„π‘–βˆ’1,𝑗,π‘˜

1 + 𝑄𝑖,𝑗,π‘˜2 βˆ’ 𝑄𝑖,π‘—βˆ’1,π‘˜

2 + 𝑄𝑖,𝑗,π‘˜3 βˆ’ 𝑄𝑖,𝑗,π‘˜βˆ’1

3 βˆ’ 𝐹𝑖,𝑗,π‘˜ 𝑒𝑖(πœ‰1)𝑒𝑗(πœ‰2)π‘’π‘˜(πœ‰3) = 0

This implies:

𝑄𝑖,𝑗,π‘˜1 βˆ’ π‘„π‘–βˆ’1,𝑗,π‘˜

1 + 𝑄𝑖,𝑗,π‘˜2 βˆ’ 𝑄𝑖,π‘—βˆ’1,π‘˜

2 + 𝑄𝑖,𝑗,π‘˜3 βˆ’ 𝑄𝑖,𝑗,π‘˜βˆ’1

3 βˆ’ 𝐹𝑖,𝑗,π‘˜ = 0

Exact balance equation for our mesh

Page 10: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Putting together the system of equations

Mimetic Methods for Diffusion Problems 10

β€’ Problem: More unknowns than equations

β€’ I fix this when I discretize the constitutive equationπ’’β„Ž = k π›π›Όβ„Ž

β€’ Weigh with π’’β„Ž and integrate over domain1

π‘˜π’’β„Ž, π’’β„Ž

Ξ©= π’’β„Ž, π›π›Όβ„Ž

Ξ©= βˆ’ 𝛁 β‹… π’’β„Ž, π›Όβ„Ž

Ξ©+ π’’β„Ž, π›Όβ„Ž

πœ•Ξ©

πΌπ‘›π‘‘π‘’π‘”π‘Ÿπ‘Žπ‘‘π‘–π‘œπ‘› 𝑏𝑦 π‘π‘Žπ‘Ÿπ‘‘π‘ 

β€’ Choose same amount of discrete points for π›Όβ„Ž as number of elements

β€’ Square system of equations

Transpose of the divergence in thebalance equations

Page 11: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Putting together the system of equations

Mimetic Methods for Diffusion Problems 11

β€’ Balance equation + constitutive equation β†’ Square system of equations

𝟎 𝑬(3,2)

𝑬(3,2)π‘½β„Ž 𝑇 1

π‘˜π‘―β„Ž

πš«π›Ό

πš«π‘„=

𝚫𝐹

π‘©β„Žπš«π›Όπ΅

Potential boundary conditions weakly enforced

Flux boundary conditions strongly enforced

β€’ Multiply balance equation with π‘½β„Žβ†’ Symmetric system of equations

𝟎 π‘½β„Žπ‘¬(3,2)

𝑬(3,2)π‘½β„Ž 𝑇 1

π‘˜π‘―β„Ž

πš«π›Ό

πš«π‘„=

π‘½β„Žπš«πΉ

π‘©β„Žπš«π›Όπ΅

Page 12: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Complex geometry

Mimetic Methods for Diffusion Problems 12

β€’ Mapping will only affect the matrices with expansion polynomials and not the incidence matrices

β€’ I.e. mapping will not affect the mimicking property of the balance equation

𝑬(3,2)πš«π‘„ = 𝚫𝐹 𝑬(3,2)πš«π‘„ = 𝚫𝐹

Page 13: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Test case

Mimetic Methods for Diffusion Problems 13

β€’ Choose potential fieldβ€’ Calculate 𝒒 and 𝑓‒ Apply as boundary conditions

β€’ Solve on different meshesβ€’ Refine mesh

β€’ Mesh size β„Žπ‘’π‘™ ↓

β€’ Evaluate in 100 Γ— 100 points in each element

β€’ Plot the maximum value in the entire domain

Error of the Potential (𝛼 = πœ™)

Residual of balance equation (𝑅 = 𝛁 β‹… π’’β„Ž βˆ’ π‘“β„Ž)

Page 14: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Mimicking vector valued fields

Mimetic Methods for Diffusion Problems 14

β€’ So far we have considered Poisson’s equation of a scalar fieldβ€’ But what about Poisson’s equation of a vector field?

β€’ For example the equilibrium of forces in Continuum mechanics

𝛁 β‹… 𝝈 = βˆ’π’‡

Page 15: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Mimicking vector valued fields

Mimetic Methods for Diffusion Problems 15

β€’ The procedure is the same just in 3 directionsπ‘«πš«π‘‡ = βˆ’πš«πΉ

β€’ With

𝑫 =

𝑬(3,2) 𝟎 𝟎

𝟎 𝑬(3,2) 𝟎

𝟎 𝟎 𝑬(3,2)

β€’ Consider the structural problemβ€’ Constitutive equations

β€’ πœ€π‘–π‘— =πœ•

πœ•π‘₯𝑖𝑒𝑗 βˆ’ πœ”π‘–π‘— = πΆπ‘–π‘—π‘˜π‘™ πœŽπ‘˜π‘™

β€’ Equilibrium of forces

β€’πœ•

πœ•π‘₯π‘–πœŽπ‘–π‘— + 𝑓𝑗 = 0

β€’ Symmetry of the stress tensorβ€’ πœŽπ‘–π‘— βˆ’ πœŽπ‘—π‘– = 0

π‘―β„Ž 𝑫 π‘½β„Ž π‘‡βˆ’ π‘Ήβ„Ž 𝑇

π‘½β„Ž 𝑫 𝟎 πŸŽβˆ’π‘Ήβ„Ž 𝟎 𝟎

πš«π‘‡

πš«π‘’

πš«πœ”

=π‘©β„Žπš«π‘’

𝐡𝐢

βˆ’π‘½β„Žπš«πΉ

𝟎

Page 16: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Test case

Mimetic Methods for Diffusion Problems 16

Page 17: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Test case

Mimetic Methods for Diffusion Problems 17

FEMimetic

Page 18: Mimetic Methods for Diffusion Problems - Amazon S3s3-eu-west-1.amazonaws.com/foreninglet-wordpress-offload...Mimetic Methods for Diffusion Problems DANSIS seminar: High order discretisation

Thank you for your time!

Mimetic Methods for Diffusion Problems 18