37
Fluctuating Hydrodynamics and Direct Simulation Monte Carlo Alejandro L. Garcia San Jose State University 28th International Symposium on Rarefied Gas Dynamics Zaragoza, Spain, July 9-13, 2012 Aleksandar Donev New York University John B. Bell Lawrence Berkeley Lab Kaushik Balakrishnan Lawrence Berkeley Lab DoE Applied Mathematics Program, contract no. DE-AC02-05CH11231

Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating Hydrodynamicsand Direct Simulation Monte Carlo

Alejandro L. GarciaSan Jose State University

28th International Symposium on Rarefied Gas Dynamics

Zaragoza, Spain, July 9-13, 2012

Aleksandar DonevNew York University

John B. BellLawrence Berkeley Lab

Kaushik BalakrishnanLawrence Berkeley Lab

DoE Applied Mathematics Program, contract no. DE-AC02-05CH11231

Page 2: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Regimes for Dilute Gases

Continuum vs. KnudsenDeterministic vs. Random

(A) Continuum, Deterministic:Fluid mechanics & CFD

(B) Knudsen, Deterministic:Kinetic theory & RGD

(C) Continuum, Random:Fluctuating hydrodynamics

(D) Knudsen, Randomlog( p ) or log( ρ )

log( L )

(A)

(B)

(C)

Adapted from Bird

(D)

Page 3: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

DSMC Simulations

DSMC can be used for allregimes but is primarily used in the Knudsen regime due to computational efficiency.

DSMC also useful for the study of fluctuations.

log( p ) or log( ρ )

log( L )

(A)

(B)

(C)

Aerospace

Microfluids

(D)

Adapted from Bird

Page 4: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuations in DSMC

D. Bruno, 27th RGD Proceedings (2011)

Fluctuations in DSMC are not due to Monte Carlo; they are physically correct at hydrodynamic and kinetic scales.

Fluctuation spectra at equilibrium may be used to measure transport properties (e.g., contribution of internal energy to bulk viscosity).

Page 5: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuations & Statistical ErrorFractional error in fluid velocity

Ma11

SNEvelocity

where S is number of samples, Ma is Mach number.

For desired accuracy of Evelocity = 1%, N = 100 particles/cell

S 102 samples for Ma =1.0 (Aerospace flow) S 108 samples for Ma = 0.001 (Microscale flow)

222 Ma1

Ma1

velocityEN

S

N. Hadjiconstantinou, ALG, M. Bazant, and G. He, J. Comp. Phys. 187 274-297 (2003).

Page 6: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Correlations of Fluctuations

At equilibrium, fluctuations of conjugate hydrodynamic quantities are uncorrelated. For example, density is uncorrelated with fluid velocity and temperature,

Out of equilibrium, (e.g., gradient of temperature or shear velocity) correlations appear.

0),'(),( txutx

0),'(),( txTtx u

Page 7: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating Navier-Stokes PDEsLandau introduced fluctuations into the Navier-Stokes equations by adding white noise fluxes of stress and heat.

Hyperbolic Fluxes Parabolic Fluxes Stochastic Fluxes

MassMomentumEnergy

Page 8: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Density-Velocity CorrelationCorrelation of density-velocity fluctuations under T

Position x’

)'()( xux DSMC

ALG, Phys. Rev. A 34 1454 (1986).

COLD HOT

When density is below average,

fluid velocity is in the cold-to-hot direction.

u

Theory is Landau-Lifshitz fluctuating hydrodynamics

(My first DSMC paper)

Page 9: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuation Examples

Show three examples in which non-equilibrium fluctuations produce interesting physical or numerical effects:

• Anomalous fluid velocity and temperature in DSMC• Enhancement of diffusion by fluctuations• Fluctuations in reaction – diffusion problems

In all cases Landau-Lifshitz fluctuating hydrodynamics serves as both a theoretical approach and the basis for numerical simulations, complementing DSMC.

Page 10: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuation Examples (1)

• Anomalous fluid velocity and temperature in DSMC• Enhancement of diffusion by fluctuations• Fluctuations in reaction – diffusion problems

Due to non-equilibrium correlations of fluctuationsthe measurement of instantaneous fluid velocityand instantaneous temperature in DSMC producesanomalous, un-physical results.

Page 11: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Instantaneous Fluid Velocity

Center-of-mass velocity in a cell C

mN

mv

MJu

N

Cii

Average particle velocity

Note that vu

N

Ciiv

Nv 1

vi

Page 12: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Estimating Mean Fluid Velocity

Mean of instantaneous fluid velocity

S

j

tN

Ciji

j

S

jj

j

tvtNS

tuS

u1

)(

1)(

)(11)(1

where S is number of samples

S

j j

S

j

tN

Ci ji

tN

tvu

j

)(

)()(

*

Alternative estimate is the cumulative average

Page 13: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Anomalous Fluid Velocity

Mean instantaneous fluid velocity measurement gives an anomalous flow in a closed system at steady state with T.

Using the cumulative mean, u

*, gives the

expected result of zero fluid velocity.

TxLxMJu )(

Cold Hot

Cold Hot

0*

MJ

u

Page 14: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluid Velocity & Fluctuations

From the definitions,

From correlation of non-equilibrium fluctuations,

u

uu *

TxLxxux )()()(

This effect is the origin of the anomalous fluid velocity.

M. Tysanner and ALG, J. Comp. Phys. 196 173-83 (2004).

Cold Hotu

Page 15: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Instantaneous TemperatureInstantaneous temperature has a similar error due to density-temperature correlation of fluctuations.

ALG, Comm. App. Math. Comp. Sci. 1 53-78 (2006)

T

TT *

A

B

Error goes as 1/N, so instantaneous temperature is not an intensive quantity.

Temperature of cell A = temperature of cell B but not equal to temperature of super-cell (A U B)

Page 16: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuation Examples (2)

• Anomalous fluid velocity and temperature in DSMC• Enhancement of diffusion by fluctuations• Fluctuations in reaction – diffusion problems

Due to non-equilibrium correlations of fluctuationsthe effective diffusion coefficient is enhancedand the effect is depends on the size of thesystem perpendicular to the gradient.

Page 17: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Giant Fluctuations in Mixing

Snapshots of the concentration during the diffusive mixing of two fluids (red and blue) at t = 1 (top), t = 4 (middle), and t = 10 (bottom), starting from a flat interface (phase-separated system) at t = 0.

Fluctuations grow large during mixing even when the two species are identical (red & blue).

Note: This is not a hydrodynamic instability!

Page 18: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Experimental Observations

Giant fluctuations in diffusive mixing seen in lab experiments.

Experimental images of interface between two miscible fluids.

1 mm Vailati and Giglio, Nature 390, 262 (1997).

Top Viewt = t1 t = t2

t = t3 t = t4

Page 19: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Experimental Observations (cont.)

Vailati, et al., Nature Comm., 2:290 (2011).

Experiments confirm that concentration fluctuations are reduced by gravity with a cut-off wavelength that goes as 1 / g 1/4.

5 mm

Page 20: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

No gravity

Weak gravity

Strong gravity

http://cims.nyu.edu/~donev/FluctHydro/GiantFluct/mixing_grav.mov

Page 21: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

2

2

0||, ˆˆ)(ˆ|| k

kcucS uc k

Fluctuating Hydrodynamic Theory

Using fluctuating hydrodynamic in the isothermal, incompressible approximation one finds a correlation in the fluctuations of concentration and velocity.

Solving in Fourier space gives the correlation function,

A. Donev, ALG, A. de la Fuente, and J.B. Bell, Phys. Rev. Lett., 106(20): 204501 (2011)A. Donev, ALG, A. de la Fuente, and J.B. Bell, J. Stat. Mech. 2011:P06014 (2011)

Note: Linear in gradient

Can easily test this prediction using DSMC simulations.

Page 22: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Concentration-Velocity Correlation

Ly

LxLz

Symbols are DSMC;ky = 0

kx–2

DSMC in agreement with incompressible, isothermal fluctuating hydrodynamic prediction

Ly = 512 ; Lz = 2

kx

kx

11 ˆˆ u

Page 23: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Diffusion Flux & Fluctuations

The non-equilibrium correlation enhances the effective flux of concentration even at this steady state.

Consider a monatomic gas of “red” and “blue” particles with a steady state gradient imposed by wall boundaries.

Blue Wall

Red Wall

||ˆˆ uc

Page 24: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating Hydrodynamics Theory

For a slab geometry (Lz << Lx << Ly) we have,

Note: Diffusion enhancement, D ln Lx

Ly

LxLz

cDDdccDkc )(ˆˆ 0||0 kuJ

mol

x

z

B

LL

LDTkD ln

)(4 0

The total mass flux for concentration species is,

where D0 is the “bare” diffusion coefficient and the enhancement D is due to correlation of fluctuations.

Page 25: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Diffusion and System Geometry

Ly

LxLz

Ly

LxLz

Ly

2LxLz

+ ≠

Spectrum of hydrodynamic fluctuations is truncated at wavenumbers given by the size of the physical system.

The wider system can accommodate long wavelength fluctuations, thus it has an enhanced diffusion rate.

D ln Lx

Page 26: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating Navier-Stokes Solvers

Have simple, accurate, and efficient finite volume schemes for the stochastic PDEs of fluctuating hydrodynamics.

J.B. Bell, ALG, and S. Williams, Physical Review E 76 016708 (2007)A. Donev, E. Vanden-Eijnden, ALG, and J. B. Bell, CAMCoS, 5(2):149-197, (2010)

where

Change in Mass, Momentum, Energy

Deterministic Flux Stochastic Flux

3rd Order Runge-Kutta

Page 27: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

DSMC Measurements

Can separate the contributions to the concentration flux as,

In DSMC we can easily measure

Find the bare diffusion coefficient D0 and the total effective diffusion coefficient Deff

Ly

LxLz

ΔD c

and c

1111111 uuuJ

Deff c D0 c

1111 ,, uu

Page 28: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

DSMC and FNS Results (Quasi-2D)

Deff

D0

Kinetic theoryDeff (DSMC)D0 (DSMC)Deff (Fluct. Hydro.)D0 (Theory)Deff (Theory)

Ly

Ly

LxLz

Quasi-2D (Lz << Ly)

Diff

usio

n C

oeffi

cien

t

Ly = 256 Lz = 2

Page 29: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Ly

Lx

Lz

Full 3D (Lx = Lz)

Deff

DKinetic theoryDeff (DSMC)D0 (DSMC)Deff (FH)D0 (Theory)Deff (Theory)

D0

Deff

ΔD goes as1/L0 – 1/L

Diff

usio

n C

oeffi

cien

t

Ly = Lz = L1/L

DSMC and FNS Results ( Full 3D )

Page 30: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuation Examples (3)

• Anomalous fluid velocity and temperature in DSMC• Enhancement of diffusion by fluctuations• Fluctuations in reaction – diffusion problems

Study of fluctuating hydrodynamics is being extended to realistic gases, including chemistry.

Page 31: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Realistic GasesThe phenomena in the first two fluctuation examples are present in simple gases, such as the hard sphere model.

Realistic gases introduce additional physical effects:

• Complex transport properties (e.g., Soret effect)• Internal degrees of freedom• Disassociation, recombination, and chemistry• Non-ideal gas equation of state

Both DSMC and fluctuating hydrodynamics become more complicated but interesting new phenomena appear.

Page 32: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating Multi-species FluidsStochastic PDE for multi-species fluids has the form,

The stochastic species diffusion flux is

where W is a white noise of unit variance.

The matrix L given by the Cholesky decomposition of a matrix involving the mass fractions Yk, the molecular weights, and the matrix of diffusion coefficients.

sN

lkklk L

1

~ WF

kkkkkk YYt

~~FFu

Diffusion Chemistry

K. Balakrishna, J.B. Bell, ALG. and A. Donev, 28th RGD Proceedings (2012)

Page 33: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Fluctuating ChemistryFor chemical reaction of the general form,

The deterministic rate of reactions is

and the stochastic rate of reaction is

ss

l

N

kklk

N

k

Kklk pr

1,

1, SS rMl ,,1

r s liM

l

N

i

r

lklkkkWkY

KW1 1

,

,

l

M

l

N

i

r

A

lklkk

r s li

kWkY

NKW W

1 1

,

,~

lklklk rp ,,,

Page 34: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Turing Pattern InstabilityFluctuations change the Turing instability patterns in reaction – diffusion simulations of Brusselator model

Fluctuating hydrodynamics and chemistry

Deterministic hydrodynamics and chemistry

Page 35: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Turing Instability Limit CycleSpatially-averaged concentrations of X and Y vary in time as a limit cycle.

Fluctuations suppress the amplitude of the cycle.

Species X concentration

Spe

cies

Y c

once

ntra

tion

Page 36: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

Future Work

For more information, visit:www.algarcia.org, cse.lbl.gov

and cims.nyu.edu/~donev

• Developing incompressible and low-Mach number schemes for fluctuating hydrodynamics

• Extensions to complex fluids (e.g., Cahn-Hilliard)

• Exploring DSMC / FNS hybrids using Adaptive Mesh and Algorithm Refinement

Supported by Dept. Energy

Page 37: Fluctuating Hydrodynamics and Direct Simulation Monte Carloalgarcia.org/Talks/RGD_Zaragoza_Talk.pdf · Fluctuating Multi-species Fluids Stochastic PDE for multi-species fluids has

DSMC 2013 Workshop

Late September 2013Hosted by Sandia Lab.

For info, contact: Michail Gallis([email protected])or myself ([email protected])

Santa Fe ?

Hawaii ?