Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element...

80
Adaptive Finite Element methods for incompressible fluid flow Claes Johnson and Johan Hoffman [email protected], [email protected] Chalmers Finite Element Center Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.1/80

Transcript of Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element...

Page 1: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

AdaptiveFinite Elementmethodsfor incompressiblefluid flow

Claes Johnson and Johan Hoffman

[email protected], [email protected]

Chalmers Finite Element Center

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.1/80

Page 2: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

3 lectures

1. Adaptive FE methods for incompr. fluid flow

2. Hydrodynamic stability

3. Subgrid modeling & multi adaptivity

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.2/80

Page 3: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling& Multi adaptivity

� General setting� A posteriori error analysis - balancingnumerical and modeling errors� Dynamic large eddy simulations (DLES)� Previous results on scale similarity subgridmodeling for convection-diffusion-reactionproblems� Multi adaptivity

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.3/80

Page 4: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling

Turbulent flow is pointwise uncomputable ontodays computers for most flows because of

1. unresolvable small-scale features

The finest scales in the flow are finer than the

finest possible computational mesh (

� �� � �

?), so

the computed solution cannot be pointwise

close to the exact solution �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.4/80

Page 5: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling

Turbulent flow is pointwise uncomputable ontodays computers for most flows because of

1. unresolvable small-scale features

Because of the non linearity of NSE, the unre-

solved scales also influence the resolved scales

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.5/80

Page 6: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling

Turbulent flow is pointwise uncomputable ontodays computers for most flows because of

1. unresolvable small-scale features

2. large stability factors

Pointwise quantities corresponds to local data in

the linearized dual problem, giving large stability

factors

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.6/80

Page 7: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling

Turbulent flow is pointwise uncomputable ontodays computers for most flows because of

1. unresolvable small-scale features

2. large stability factors

Linearizing the dual problem at the irregular tur-

bulent flow � and the computed approximation

gives large stability factors

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.7/80

Page 8: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modeling

A posteriori error estimation by duality ofpointwise quantities in turbulent flow is hard ontodays computers since

1. cannot be pointwise close to � we get alarge linearization error in the dual problemwhen we replace � by

2. the dual problem has as fine scales as theexact solution � itself, making it expensive tosolve

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.8/80

Page 9: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

Mathematical model:

� � � (MM)Pertubed problem:

� � � (PP)

� � � = data/modeling error � � = discretization error

Total error = � � � � � � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.9/80

Page 10: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

Mathematical model:

� � � (MM)Pertubed problem:

� � � (PP)

If

is the smallest computationally resolvable

scale and the exact solution � contains smaller

scales than

, then a pointwise accurate approxi-

mation of � is impossible.

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.10/80

Page 11: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

Mathematical model:

� � � (MM)Pertubed problem:

� � � (PP)

Let

� � �

be an approx. of the exact solution �

corresponding to a local average of size

. We

seek to compute a pointwise accurate approx.

of � �

, and we want to find an equation for � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.11/80

Page 12: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

Mathematical model:

� � � (MM)Pertubed problem:

� � � (PP)

We seek a pertubed equation � � � �

bymaking an Ansatz of the form

� � � � � � � � � � � � � � � � � �

where we need to approximate� � � � � � � � � � � � �

in terms of � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.12/80

Page 13: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

Mathematical model:

� � � (MM)Pertubed problem:

� � � � � � � �(PP)

� � � � � � � � � � � � �

has the form of ageneralized covariance

� � � � � � � � � � is called a subgrid model

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.13/80

Page 14: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

We solve the Galerkin equation: find � � s.t.

� � � � � �� � � � � � � � � � �

We now have

1. a discretization error from solving theGalerkin equation

2. a modeling error from the subgrid model � � � � � � � �Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.14/80

Page 15: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

How to choose the averaging scale

�?

We expect that by choosing finer�

� the modeling error decrease� but the discretization error increase

and we expect that by choosing coarser

� the discretization error decrease� but the modeling error increase

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.15/80

Page 16: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

How to choose the averaging scale

�?

Examples:� DNS = no averaging� LES = averaging over the finest spatial scales� RANS = coarse averaging (in space and time)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.16/80

Page 17: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

� We want to accurately balance the errorsfrom modeling and discretization

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.17/80

Page 18: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

General setting

� We want to accurately balance the errorsfrom modeling and discretization� We can achieve this balance using aposteriori error estimates

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.18/80

Page 19: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

A posteriori error analysis

Galerkin equation: find � � such that

� � � � � �� � � � � � � � � � � �

To estimate

��� � �

, � � � � and � , write

� � � � � � � ��

���� � � � � � � � � � � ���

�� � � � � � � � � � � � � � � � � � �� � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.19/80

Page 20: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

A posteriori error analysis

Let then � solve (the dual problem)� � � � �� ��� � � �� � �� �� �Observe that� the dual problem now is linearized at � �

andnot � itself!� The linearization error � � �

could beexpected to be smaller than � � , since � �

do not contain any subgrid scales� the dual problem is indep. of � � � � and

� � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.20/80

Page 21: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

A posteriori error analysis

Let then � solve (the dual problem)� � � � �� ��� � � �� � �� �� �Setting � � gives the error representation��� � � � � � � �� � � � � � � � � � � � �� �

� � � � � � � � �� �

since� � � � � � � � �

� � � � � � � �� � � � � � � � � � �� �

� � �� � � � � � � � � � �� �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.21/80

Page 22: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

A posteriori error analysis

��� � � � � �� � � � � � � � � � �� �

� � � � � � � � � �is the computable

residual related to the discretization errorfrom the Galerkin equation� � � � � � � � � is a residual related to thequality of the subgrid model

� � � � � � � � ,which has to be estimated

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.22/80

Page 23: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

A posteriori error analysis

If we compute without subgrid model, we get

��� � � � � �� � � � � � � �� �

We can then use the subgrid model

� � � �

� � � � to estimate the modeling residual � � � � in

the a posteriori error estimate, to balance model-

ing and discretization errors

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.23/80

Page 24: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Simpleexample

� � � ��� � �� � � ��! � �! �

centered in � , side length�

(commutes with space & time differentiation)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.24/80

Page 25: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Simpleexample

� � � ��� � �� � � ��! � �! �

centered in � , side length�

(commutes with space & time differentiation)� � � � � " � ��� � # $&% " � � �(' � �

( � ��� � # $&% � � �' � �)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.25/80

Page 26: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Simpleexample

� � � ��� � �� � � ��! � �! �

centered in � , side length�

(commutes with space & time differentiation)� � � � � " � ��� � # $&% " � � �(' � �

( � ��� � # $&% � � �' � �)

� � � � � " � � " � �Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.26/80

Page 27: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Simpleexample

� � � ��� � �� � � ��! � �! �

centered in � , side length�

(commutes with space & time differentiation)� � � � � " � ��� � # $&% " � � �(' � �

( � ��� � # $&% � � �' � �)

� � � � � � � � � " � � � � �

� � � � � � " � � � � � � � "

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.27/80

Page 28: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1−1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

� ��� � # $&% � � �' � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.28/80

Page 29: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

� ��� � # $&% � � �' � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.29/80

Page 30: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� ) � �0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

� ��� � # $&% � � �' � � � � * +

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.30/80

Page 31: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� ) � � ) � �0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

� ��� � # $&% � � �' � � � � * +

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.31/80

Page 32: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� , � � - � �

large!

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

� ��� � # $&% � � �' � � � � * +

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.32/80

Page 33: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Lar gemodelingerror!

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

� ��� � # $&% � � �' � � � � * +

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.33/80

Page 34: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Lar geEddy Simulation (LES)

� �� . � / � �10 � � �243 � . 0 � �

� ��� � � � � ���� �Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.34/80

Page 35: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Lar geEddy Simulation (LES)

� �� . � / � �10 � � �243 � . 0 � �

� ��� � � � � ���� �

� � �� . � � 0 � � � �

0 � � �

� � ��� � � � � � � ��� �

0 � � � � 0 5 �

5 �67 � � 6 � 7 � � � � � 6 � �7 (Reynolds stresses)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.35/80

Page 36: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

How to choosethe subgrid model8 �?

� � � � � contains the effect of unresolvablescales on resolvable scales

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.36/80

Page 37: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

How to choosethe subgrid model8 �?

� � � � � contains the effect of unresolvablescales on resolvable scales� We want to choose

� only based onresolvable scales

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.37/80

Page 38: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modelsin turb ulence

� Eddy viscosity models (EVM)( 5 �

modelled as an extra viscosity)

The classical Smagorinsky model:

5 67 � � � 5:9 9 � �<; = > 67 � � � �� ; = � ? � � " �> � � � � �

where ? is the Smagorinsky constant.

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.38/80

Page 39: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modelsin turb ulence

� Eddy viscosity models (EVM)( 5 �

modelled as an extra viscosity)

In dynamic variants the constant ? is computed

by fitting the model on a coarser mesh using a

fine mesh solution as reference

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.39/80

Page 40: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modelsin turb ulence

� Eddy viscosity models (EVM)( 5 �

modelled as an extra viscosity)� Scale Similarity Models (SSM)( 5 �

prop. to 5 �

of the resolved field)

Here one seeks to extrapolate 5 � � � � from 5 @ � � �

with A �

and � a solution computed on mesh�

from a scale similarity Ansatz

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.40/80

Page 41: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Subgrid modelsin turb ulence

� Eddy viscosity models (EVM)( 5 �

modelled as an extra viscosity)� Scale Similarity Models (SSM)( 5 �

prop. to 5 �

of the resolved field)� Mixed Models = EVM + SSM

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.41/80

Page 42: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Scalesimilarity in turb ulent flow?

� Kolmogorov (1941): “ � ��B C � � � � B �ED C � F �”� Scotti, Meneveau & Saddoughi (1995):

“Experimental findings of fractal scaling ofvelocity signals in turbulent flow”� Papanicolaou (1999): “Experimentalaerothermal data scale similar with respect towavelet (Haar) analysis”� ...

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.42/80

Page 43: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Models

5 �67 � � � � � 6 � 7 � � � � � 6 � �7 � 5 @67 � � � �

� �

, �

(Bardina,...)� A �

, D �

(Liu,...)� A �

, � � � �(Dynamic model)

5 �67 has the form of a covariance

� �� � � � � �� �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.43/80

Page 44: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

We base a subgrid model on the Ansatz

� � � � � �� � � � � �� � ��� � � ��� � � G HJI K

where the coefficients

��� �and L ��� �

have to be

extrapolated from coarser scales

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.44/80

Page 45: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

We base a subgrid model on the Ansatz

� � � � � �� � � � � �� � ��� � � ��� � � G HJI K

� � � � �M � � � � � �� " � � � � �� + � � � � � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.45/80

Page 46: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

We base a subgrid model on the Ansatz

� � � � � �� � � � � �� � ��� � � ��� � � G HJI K

� � � � �M � � � � � �� " � � � � �� + � � � � � �

M ��N � O� P � � � � � P � O + �O + � � N + � � * Q � O + � � N + �

P � O + �O + � � N + � � �

( R corresponds to the finest scale in �)Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.46/80

Page 47: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

We base a subgrid model on the Ansatz

� � � � � �� � � � � �� � ��� � � ��� � � G HJI K

In particular, we have used the p.w. constant Haar

basis as filter (averaging operator), which is gen-

erated from mesh refinements

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.47/80

Page 48: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.48/80

Page 49: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

� We test the Ansatz for the Couette flowundergoing transition to turbulence.� We plot the sum of the Haar coefficients oneach scale (

� �� � �� S �

with� � TVU �

) for 5 �� � ona part of the domain� Regular decrease in the sum of coefficientscan be observed (at least in average)� The test suffers from a too coarse mesh andnot being fully turbulent

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.49/80

Page 50: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

0 10 20 30 40 50 600

1

2

3

4

5

6

7

8x 10

−3

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.50/80

Page 51: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ScaleSimilarity Ansatz

We have previously tested this approach forconvection-diffusion-reaction problems, wherethis type of scale similarity has been introducedthrough data

We are working on the extension to Dynamic

Large Eddy Simulations (DLES)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.51/80

Page 52: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Previous results

Convection-Diffusion-Reaction system/ � � > � 0 � � � ��� �� � � � � ���� �

� Convection-Diffusion-Reaction systems withscale similar (fractal) initial data� Convection-Diffusion-Reaction systems withscale similar (fractal) convection field

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.52/80

Page 53: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Example: ScaleSimilar Function

Weierstrass function

WYXZ ��� � [ ��� � \7^] �

� * 7 Z HJI K # $% � � 7 0 � ' � �

� Amplitude at scale

_ �is

� * Zless than at

_

(Scale similarity)� `

determine the amount of fine scales in WYXZ� Typically [ ` �a �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.53/80

Page 54: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

2D WeierstrassFunction ( , � b)

0

0.5

1

0 0.2 0.4 0.6 0.8 1

−0.5

0

0.5

1

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.54/80

Page 55: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Ex 1: Volterra-Lotka with diffusion

/ � �� � > � �� � �� � � � � �" � � � � � �/ � �" � > � �" � �" � � �� � � � � � � � "

� � ��� � � � � �� � �� � � * c� �d 3 e � * f� �� ��� �

fractal Weierstrass function

� � � � � � � � � � " � � � �� � �"

� � � � " � � " � � � � � � �" � ��

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.55/80

Page 56: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10.6

0.8

1

1.2

1.4

1.6

1.8

2

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.56/80

Page 57: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , i h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10.6

0.7

0.8

0.9

1

1.1

1.2

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.57/80

Page 58: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10.65

0.7

0.75

0.8

0.85

0.9

0.95

1

1.05

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.58/80

Page 59: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10

0.5

1

1.5

2

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.59/80

Page 60: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , i h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10.6

0.8

1

1.2

1.4

1.6

1.8

2

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.60/80

Page 61: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

� g g , h0

0.20.4

0.60.8

1

0

0.2

0.4

0.6

0.8

10.6

0.8

1

1.2

1.4

1.6

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.61/80

Page 62: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Err ors:

� - � �

� No model (computed on

): (blue *)� No model (computed on

� T �): (blue o)

� � � � � � " � � � � �

: (green <)This corresponds to an assumption that �

contains no finer scales than

� T �.

� � � � � � M � � � � � �� " � � � � �� + � � � � � �

: (red +)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.62/80

Page 63: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

First component �, in �-norm

0 2 4 6 8 10 12 14 160

0.002

0.004

0.006

0.008

0.01

0.012

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.63/80

Page 64: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Secondcomponent � , in �-norm

0 2 4 6 8 10 12 14 160

0.5

1

1.5

2

2.5

3

3.5

4

4.5x 10

−3

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.64/80

Page 65: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Ex 2: VL with convection& diffusion

/ � �� � > � �� � �� � � � � �" � � � � � �/ � �" � > � �" � 0 � �" � �" � � �� � � � � � � � "

� � ��� � � � � �" j� � �� �

��� �� � " � � � # $&% � ' � � �lk m # � ' � " �� �k m # � ' � � � # $&% � ' � " � �

(convection of order�

)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.65/80

Page 66: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

First component �, in �-norm

1 2 3 4 5 6 7 80

1

2

3

4

5

6

7x 10

−3

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.66/80

Page 67: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Ex 3: Fractal Convection

/ � � � > � � � 0 � � � � � � �� n �� � o "qp � �� � ��r � �r R �IVs ] � XIVt ] � �� � � �Is ] � XIVt ] �� � � ��� � � � ��

> � � * �

, � " j� " j �(

�d 3 e � * u

)

� � � � � 0 � � � � � � 0 � � �

(non divergence form)

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.67/80

Page 68: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

�-err. with(r) & without(b) s.g.mod.

0 2 4 6 8 10 12 14 160

0.002

0.004

0.006

0.008

0.01

0.012

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.68/80

Page 69: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Summary

� Subgrid scales introduces a modeling errorwhich we have to estimate or model� Linearize at � �

instead of � in the dualproblem, gives a natural split between amodeling error and a discretization error interms of corresponding residuals in aposteriori error estimates� Want to balance these two errors� Scale similarity model proposed and testedfor simple model problems

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.69/80

Page 70: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Summary - Many openends

� Extend subgrid model to DLES� Mixed models� Scale sim. models on divergence form or not?� �0 � � � � � � �0 � � �

or 0 � � � � � � � � � � � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.70/80

Page 71: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Multi-adapti vity (A.Logg)

Solve the ODE initial value problem

/ � �wv � � � �wv �� v �� v � � �� o �� � � � � ��for �x n �� o \

with adaptive and individualtime-steps for the different components � 6 �wv �

toachieve efficient and reliable control of the globalerror at time

v .

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.71/80

Page 72: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Indi vidual Time-Steps

PSfrag replacements

y 67z

{ 67

�Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.72/80

Page 73: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Indi vidual PiecewisePolynomials

PSfrag replacements

6 �v �7 �wv �

v

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.73/80

Page 74: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Ordinary Galerkin

Ordinary Galerkin k ��| �

for

/ � :=� � / � � � �v =� � � � 0 �� � � �v � � � �

with � ,

� � � � �and the trial and testspaces defined as

} � � \ � n �� o � x � 6 �~�� � � � y 7 �� � } � x � 6 � ~�� � � * � � y 7 �� a

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.74/80

Page 75: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Multi-Adapti veGalerkin

Multi-adaptive Galerkin �k ��| �

:=� � / � � � �v =� � � � 0 �� � � �v � � � �

with � ,

� � � � �and the trial and testspaces now defined as

} � � \ � n �� o � x � 6 � ~�� � � � � � � y 67 �� � } � x � 6 � ~�� � � � � � * � � y 67 �� a

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.75/80

Page 76: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Ex: The Solar System

� 6 �� 6 7 �] 6� 6 � 7�� 7 � � 6 �� ��� 7 � � 6 �

0 0.5 1 1.5 2 3 3.5 4 4.5 5−10

−5

0

5

10

−1

0

1

−100.51

0

0.5

3.2 3.4 3.8

−2

0

2

4

6

PSfrag replacements

�!

v

v

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.76/80

Page 77: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

The Dual

0 1 2 3 4 6 7 8 9 10

−1000

−800

−600

−400

−200

0

200

400

600

800

1000

PSfrag replacementsv

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.77/80

Page 78: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Err or Growth

0 10 20 30 40 50−0.5

0

0.5

0 10 20 30 40 50−0.5

0

0.5

0 10 20 30 40 50−5

0

5x 10

−4

0 10 20 30 40 50−5

0

5x 10

−3

PSfrag replacementsvv

��

k � � �k � � �

� � � �� � � �

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.78/80

Page 79: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

Err or Growth: mcG(2)

0 1 2 3 4 5−4

−2

0

2

4x 10

−3

0 1 2 3 4 5−4

−2

0

2

4x 10

−5

0 0.5 1 1.5 2 3 3.5 4 4.5 5

10−3

10−2

10−1

PSfrag replacements

v

vv

���

All components Position of the Moon

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.79/80

Page 80: Adaptive Finite Element methods for incompressible fluid flo w€¦ · Adaptive Finite Element methods for incompressible fluid flo w Claes Johnson and Johan Hoffman claes@math.chalmers.se,

ChalmersFinite ElementCenter

More on subgrid modeling, multi-adaptivity,...

www.phi.chalmers.se

Claes Johnson and Johan Hoffman – Chalmers Finite Element Center – Nasa/VKI course – p.80/80