finite-volume schemes for fluctuating hydrodynamics

21
Finite-Volume Schemes for Fluctuating Hydrodynamics Aleksandar Donev 1 Luis W. Alvarez Fellow, Lawrence Berkeley National Laboratory & Eric Vanden-Eijnden, Courant Institute, NYU Jonathan Goodman, Courant Institute, NYU Alejandro L. Garcia, San Jose State University John B. Bell, Lawrence Berkeley National Laboratory 1 This work performed in part under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344. SIAM MS10 Conference May 21, 2010 A. Donev (LLNL/LBNL) S(k) May 2010 1 / 26

Upload: dangthuan

Post on 18-Jan-2017

238 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Finite-Volume Schemes for Fluctuating Hydrodynamics

Finite-Volume Schemes for Fluctuating Hydrodynamics

Aleksandar Donev1

Luis W. Alvarez Fellow, Lawrence Berkeley National Laboratory&

Eric Vanden-Eijnden, Courant Institute, NYUJonathan Goodman, Courant Institute, NYU

Alejandro L. Garcia, San Jose State UniversityJohn B. Bell, Lawrence Berkeley National Laboratory

1This work performed in part under the auspices of the U.S. Department of Energy byLawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.

SIAM MS10 ConferenceMay 21, 2010

A. Donev (LLNL/LBNL) S(k) May 2010 1 / 26

Page 2: Finite-Volume Schemes for Fluctuating Hydrodynamics

Outline

1 Introduction

2 Discrete Fluctuation-Dissipation Balance

3 Stochastic Advection-Diffusion Equation

4 Compressible Flows

5 Incompressible Fluctuating Hydrodynamics

A. Donev (LLNL/LBNL) S(k) May 2010 2 / 26

Page 3: Finite-Volume Schemes for Fluctuating Hydrodynamics

Introduction

Micro- and nano-hydrodynamics

Flows of fluids (gases and liquids) through micro- (µm) andnano-scale (nm) structures has become technologically important,e.g., micro-fluidics, microelectromechanical systems (MEMS).

Biologically-relevant flows also occur at micro- and nano- scales.

Essential distinguishing feature from “ordinary” CFD: thermalfluctuations! Fluctuations impact Brownian motion and instabilities.

It is necessary to include thermal fluctuations in continuum solvers inparticle-continuum hybrids [1].

The flows of interest often include suspended particles: colloids,polymers (e.g., DNA), blood cells, bacteria: complex fluids.

A. Donev (LLNL/LBNL) S(k) May 2010 4 / 26

Page 4: Finite-Volume Schemes for Fluctuating Hydrodynamics

Introduction

Particle/Continuum Hybrid Approach

A. Donev (LLNL/LBNL) S(k) May 2010 5 / 26

Page 5: Finite-Volume Schemes for Fluctuating Hydrodynamics

Introduction

Fluctuating Hydrodynamics

We consider stochastic transport equations (conservation laws) [2] ofthe form

∂tU = −∇ · [F(U)−Z] = −∇ · [FH(U)− FD(∇U)− B(U)W] ,

where B(U) is a scaling matrix for the spatio-temporal white noiseW , i.e., a Gaussian random field with covariance⟨

W(r, t)W?(r′, t ′)⟩

= δ(t − t ′)δ(r − r′).

The white noise forcing models intrinsic thermal fluctuations asoriginally proposed by Landau-Lifshitz [2].

These equations are interpreted in a finite-volume(finite-dimensional) context, which is well-defined for the linearizedequations (but nonlinear equations are problematic!).

A. Donev (LLNL/LBNL) S(k) May 2010 6 / 26

Page 6: Finite-Volume Schemes for Fluctuating Hydrodynamics

Introduction

Euler Method for Advection-Diffusion Equation

Consider the stochastic advection-diffusion equation in onedimension

ut = −cux + µuxx +√

2µWx .

Simple Euler time integrator

un+1j = un

j − α(unj+1 − un

j−1

)+ β

(unj−1 − 2un

j + unj+1

)+√

2β∆x−1/2(W n

j+ 12−W n

j− 12

)Dimensionless (CFL) time steps control the stability and the accuracy

α =c∆t

∆xand β =

µ∆t

∆x2=α

r.

A. Donev (LLNL/LBNL) S(k) May 2010 7 / 26

Page 7: Finite-Volume Schemes for Fluctuating Hydrodynamics

Discrete Fluctuation-Dissipation Balance

Linear Additive-Noise SPDEs

Consider the general linear SPDE

Ut = LU + KW ,

where the generator L and the filter K are linear operators.

The solution is a generalized process, which in the long-time limit is astationary Gaussian process, fully characterized by its covariance.

SPDEs like this are best studied in Fourier wavevector-frequencyspace, U(k, ω), where the covariance is the spectrum.

We focus on the static or spatial spectrum (static structure factormatrix)

S(k) = limt→∞

V⟨

U(k, t)U?(k, t)

⟩,

but the analysis can be extended to the spatio-temporal spectrumS(k, ω) (dynamic structure factor matrix).

A. Donev (LLNL/LBNL) S(k) May 2010 9 / 26

Page 8: Finite-Volume Schemes for Fluctuating Hydrodynamics

Discrete Fluctuation-Dissipation Balance

Spatio-Temporal Discretization

Finite-volume discretization of the field

Uj(t) =1

∆x

∫ j∆x

(j−1)∆xU(x , t)dx

General numerical method given by a linear recursion

Un+1j = (I + Lj∆t) Un + ∆tKjWn = (I + Lj∆t) Un +

√∆t

∆xKjW

n

The classical PDE concepts of consistency and stability continue toapply for the mean solution of the SPDE, i.e., the first moment ofthe solution.

However, the classical concepts of convergence do not translate to thestochastic context!

For SPDEs, it is natural to focus on the second moments.

A. Donev (LLNL/LBNL) S(k) May 2010 10 / 26

Page 9: Finite-Volume Schemes for Fluctuating Hydrodynamics

Discrete Fluctuation-Dissipation Balance

Stochastic Consistency and Accuracy

Use the discrete Fourier transform (DFT) to convert the iterationto Fourier space.

Analysis will be focused on the discrete static spectrum

Sk = V⟨

Uk

(Uk

)?⟩= S(k) + O (∆tp1kp2) ,

for a weakly consistent scheme.

For fluctuating hydrodynamics equations we have a spatially-whitefield at equilibrium, S(k) = I.

The remainder term quantifies the stochastic accuracy for largewavelengths (∆k = k∆x � 1) and small frequencies(∆ω = ω∆t � 1).

A. Donev (LLNL/LBNL) S(k) May 2010 11 / 26

Page 10: Finite-Volume Schemes for Fluctuating Hydrodynamics

Discrete Fluctuation-Dissipation Balance

Discrete Fluctuation-Dissipation Balance

A straightforward calculation [3] gives(I + ∆tLk

)Sk

(I + ∆tL

?

k

)− Sk = −∆tKkK

?

k .

For small ∆tLkS

(0)k + S

(0)k L

?

k = −KkK?

k ,

and thus S(0)k = lim∆t→0 Sk = I iff discrete fluctuation-dissipation

balance [4, 5] holds

Lk + L?

k = −KkK?

k .

Use the method of lines: first choose a spatial discretizationconsistent with the discrete fluctuation-dissipation balance condition,and then choose a temporal discretization.

”On the Accuracy of Explicit Finite-Volume Schemes for FluctuatingHydrodynamics”, by A. Donev, E. Vanden-Eijnden, A. L. Garcia, and J. B. Bell,CAMCOS, 2010 [arXiv:0906.2425]

A. Donev (LLNL/LBNL) S(k) May 2010 12 / 26

Page 11: Finite-Volume Schemes for Fluctuating Hydrodynamics

Stochastic Advection-Diffusion Equation

Spatial Discretization

∂tU = −∇ · [F(U)−Z] = ∇ ·[−AU + µ∇U +

√2µW

]The conservative discretization,

∆Uj = (∂tUj) ∆t = −∆t

∆xA(

Uj+ 12−Uj− 1

2

),

+µ∆t

∆x

(∇j+ 1

2−∇j− 1

2

)U +

√2µ∆t

∆x3/2

(Wj+ 1

2−Wj− 1

2

)satisfies the discrete fluctuation-dissipation balance if:

The discrete divergence D ≡∇· and gradient G ≡∇ operators aredual, D? = −G,

∇j+ 12U = ∆x−1 (Uj+1 −Uj) .

DA is skew-adjoint, (DA)? = DA, i.e., the cell-to-face interpolation iscentered (no upwinding!),

Uj+ 12

=7

12(Uj + Uj+1)− 1

12(Uj−1 + Uj+2) .

A. Donev (LLNL/LBNL) S(k) May 2010 14 / 26

Page 12: Finite-Volume Schemes for Fluctuating Hydrodynamics

Stochastic Advection-Diffusion Equation

Runge-Kutta (RK3) Method

Adapted a standard TVD three-stage Runge-Kutta temporalintegrator and optimized the stochastic accuracy:

Un+ 1

3j =Un

j + ∆Uj(Un,W1)

Un+ 2

3j =

3

4Un

j +1

4

[U

n+ 13

j + ∆Uj(Un+ 1

3j ,W2)

]Un+1

j =1

3Un

j +2

3

[U

n+ 23

j + ∆Uj(Un+ 23 ,W3)

].

Two random numbers per cell per time step

W1 =WA −√

3W3

W2 =WA +√

3W3

gives third-order temporal stochastic accuracy

Sk = 1− r

24α3∆k2 − 24 + r2

288rα3∆k4 + h.o.t.

A. Donev (LLNL/LBNL) S(k) May 2010 15 / 26

Page 13: Finite-Volume Schemes for Fluctuating Hydrodynamics

Compressible Flows

Landau-Lifshitz Navier-Stokes Equations

Complete single-species fluctuating hydrodynamic equations [6]:

U (r, t) =[ρ, j, e

]T=[ρ, ρv, cvρT + ρv2

2

]T

FH =

ρvρvvT + P (ρ,T ) I

(e + P)v

, FD =

σ · v + ξ

, Z =

Σ · v + Ξ

σ =

[η(∇v + ∇vT )− η

3(∇ · v) I

]and ξ = µ∇T

Σ =

√2kB ηT

[WT +

√1

3WV I

]and Ξ =

√2µkBT

2WS

A. Donev (LLNL/LBNL) S(k) May 2010 17 / 26

Page 14: Finite-Volume Schemes for Fluctuating Hydrodynamics

Compressible Flows

RK3 Method in 1D

0 0.2 0.4 0.6 0.8 1

k / kmax

0.9

0.925

0.95

0.975

1

S k

Sρ (1RNG)

1 + (Su-1) / 3 ST Sρ (2RNG)

Small k theory

0 0.2 0.4 0.6 0.8 1

k / kmax

0

0.05

0.1

0.15

S k

| Sρu | (1RNG)

| SρT |

| SuT || Sρu | (2RNG)

Figure: RK3 for 1D LLNS system for α = 0.5, β = 0.2 and γ = 0.1.

A. Donev (LLNL/LBNL) S(k) May 2010 18 / 26

Page 15: Finite-Volume Schemes for Fluctuating Hydrodynamics

Compressible Flows

Three Dimensions

In 3D, for compressible flows, the diffusive velocity portion of theLLNS equations is

vt = η

[∇2v +

1

3∇ (∇ · v)

]+√

[(∇ ·WT ) +

√1

3∇WV

]

= η

(DT GT +

1

3GV DV

)v +

√2η

(DTWT +

√1

3GVWV

).

To obtain discrete fluctuation-dissipation balance, we require discretetensorial divergence and gradient operators GT = −D?

T , andvectorial divergence and gradient GV = −D?

V .

Use MAC (marker-and-cell) second-order centered discretizations forthe tensorial operators (DT : faces→ cells), as in incompressibleprojection methods on staggered grids.

Use Fortin discretization for vectorial operators (DV : corners→cells),as in approximate projection methods.

A. Donev (LLNL/LBNL) S(k) May 2010 19 / 26

Page 16: Finite-Volume Schemes for Fluctuating Hydrodynamics

Compressible Flows

Implementation

We have implemented a three dimensional two species compressiblefluctuating RK3 code, parallelized with the help of Michael J. Lijewski.

Spontaneous Rayleigh-Taylor mixing of two gases

Future work: Use existing AMR framework to do mesh refinement.

Special spatial discretization of the stochastic fluxes is necessary tosatisfy the fluctuation-dissipation balance at coarse-fineinterfaces [4].

A. Donev (LLNL/LBNL) S(k) May 2010 20 / 26

Page 17: Finite-Volume Schemes for Fluctuating Hydrodynamics

Incompressible Fluctuating Hydrodynamics

Incompressible Flows

In 3D, for isothermal incompressible flows, the fluctuatingvelocities follow

vt = η∇2v +√

2η (∇ ·WT )

∇ · v = 0,

which is equivalent to

vt = P[η∇2v +

√2η (∇ ·WT )

],

where P is the orthogonal projection onto the space ofdivergence-free velocity fields

P = I− GV (DV GV )−1 DV , equivalently, P = I− kkT.

Since P is idempotent, P2 = P , the equilibrium spectrum isS(k) = P .

A. Donev (LLNL/LBNL) S(k) May 2010 22 / 26

Page 18: Finite-Volume Schemes for Fluctuating Hydrodynamics

Incompressible Fluctuating Hydrodynamics

Spatial Discretization

Consider a stochastic projection scheme,

vn+1 = P{[

I + ηDT GT ∆t + O(∆t2

)]vn +

√2η∆tDTWT

}.

The difficulty is the discretization of the projection operator P [7]:

Exact (idempotent): P0 = I− GV (DV GV )−1 DV

Approximate (non-idempotent): P = I− GV L−1V DV

Our analysis indicates that the stochastic forcing should projectedusing an exact projection, even if the velocities are approximatelyprojected: mixed exact-approximate projection method underdevelopment...

A. Donev (LLNL/LBNL) S(k) May 2010 23 / 26

Page 19: Finite-Volume Schemes for Fluctuating Hydrodynamics

Incompressible Fluctuating Hydrodynamics

Exact vs. Approximate Projection

If P = P0 then Sk = P0 + O(∆t2

).

If P = P then Sk = P0 + O (∆t) .

For cell-centered discretizations, there are significant disadvantagesto using exact projection due to subgrid decoupling (multigrid, meshrefinement, Low Mach).

A potential compromise, leading to Sk = P0S(ad)k , is

vn+1 = P[I + ηDT GT ∆t + O

(∆t2

)]vn +

√2η∆tP0DTWT .

Special multigrid is required for exact projections even on uniformgrids. With periodic boundaries one can use FFTs instead.

A. Donev (LLNL/LBNL) S(k) May 2010 24 / 26

Page 20: Finite-Volume Schemes for Fluctuating Hydrodynamics

Incompressible Fluctuating Hydrodynamics

Conclusions and Future Work

We have developed a framework for analysis of numerical methodsfor fluctuating hydrodynamics, based on looking at spectra as afunction of wavenumber and wavefrequency.

By focusing on the stochastic advection-diffusion equation, wedeveloped an explicit three-stage Runge-Kutta scheme for the(compressible) LLNS equations of fluctuating hydrodynamics that isrobust at large time steps.

We have developed a two-species mixture parallel RK3D code thatuses a mixed MAC/Fortin spatial discretization (AMR in the future).

The fluctuating hydrodynamic solver has been used in a hybridmethod [1].

For incompressible fluctuating hydrodynamics, a mixedapproximate-exact projection approach is under development.

In the future, we will explore the full Low Mach Numberfluctuating hydrodynamic equations, including temperature anddensity fluctuations.

A. Donev (LLNL/LBNL) S(k) May 2010 25 / 26

Page 21: Finite-Volume Schemes for Fluctuating Hydrodynamics

Incompressible Fluctuating Hydrodynamics

References/Questions?

A. Donev, J. B. Bell, A. L. Garcia, and B. J. Alder.

A hybrid particle-continuum method for hydrodynamics of complex fluids.SIAM J. Multiscale Modeling and Simulation, 8(3):871–911, 2010.arXiv:0910:3968.

J. L. Lebowitz, E. Presutti, and H. Spohn.

Microscopic models of hydrodynamic behavior.J. Stat. Phys., 51(5):841–862, 1988.

A. Donev, E. Vanden-Eijnden, A. L. Garcia, and J. B. Bell.

On the Accuracy of Explicit Finite-Volume Schemes for Fluctuating Hydrodynamics.Preprint, arXiv:0906.2425, 2010.

P. J. Atzberger.

Spatially Adaptive Stochastic Numerical Methods for Intrinsic Fluctuations in Reaction-Diffusion Systems.Journal of Computational Physics, 229(9):3474 – 3501, 2010.

P. J. Atzberger.

Stochastic Eulerian-Lagrangian Methods for Fluid-Structure Interactions with Thermal Fluctuations and Shear BoundaryConditions.Preprint, arXiv:0910.5739.

J. B. Bell, A. Garcia, and S. A. Williams.

Numerical Methods for the Stochastic Landau-Lifshitz Navier-Stokes Equations.Phys. Rev. E, 76:016708, 2007.

A. S. Almgren, J. B. Bell, and W. G. Szymczak.

A numerical method for the incompressible Navier-Stokes equations based on an approximate projection.SIAM J. Sci. Comput., 17(2):358–369, March 1996.

A. Donev (LLNL/LBNL) S(k) May 2010 26 / 26