66
Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo Alejandro L. Garcia San Jose State University Lawrence Berkeley Nat. Lab. RTO-AVT-VKI Lecture Series, January 24 th 2011 von Karman Institute for Fluid Dynamics

Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Embed Size (px)

DESCRIPTION

Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo. Alejandro L. Garcia San Jose State University Lawrence Berkeley Nat. Lab. RTO-AVT-VKI Lecture Series, January 24 th 2011 von Karman Institute for Fluid Dynamics. Discoveries made by DSMC. - PowerPoint PPT Presentation

Citation preview

Page 1: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Surprising Hydrodynamic Results Discovered by means of

Direct Simulation Monte Carlo

Alejandro L. Garcia

San Jose State University

Lawrence Berkeley Nat. Lab.

RTO-AVT-VKI Lecture Series, January 24th 2011von Karman Institute for Fluid Dynamics

Page 2: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Discoveries made by DSMC

This lecture will describe four interesting discoveries made using Direct Simulation Monte Carlo (DSMC).

First two occur due to Knudsen number effects:* Anomalous Poiseuille Flow* Anomalous Couette Flow

The other two occur due to thermal fluctuations:* Anomalous Temperature Gradient Flow* Anomalous Diffusion Flow

Page 3: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Outline

• Direct Simulation Monte Carlo• Anomalous Poiseuille Flow

• Anomalous Couette Flow

• Anomalous Temperature Gradient Flow

• Anomalous Diffusion Flow

Page 4: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Molecular Dynamics for Dilute Gases

Molecular dynamics inefficient for simulating the kinetic scale.

Relevant time scale is mean free time but MD computational time step limited by time of collision.

DSMC time step is large because collisions are evaluated stochastically.

Mean Free P

athCollision

Volume of potential collision partners

Page 5: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Direct Simulation Monte Carlo

• DSMC developed by Graeme Bird (late 60’s)• Popular in aerospace engineering (70’s)• Variants & improvements (early 80’s)• Applications in physics & chemistry (late 80’s)• Used for micro/nano-scale flows (early 90’s)• Extended to dense gases & liquids (late 90’s)• Granular gas simulations (early 00’s)• Multi-scale modeling of complex fluids (late 00’s)

DSMC is the dominant numerical method for molecular simulations of dilute gases

Development of DSMC

Page 6: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC Algorithm

• Initialize system with particles

• Loop over time steps

– Create particles at open boundaries

– Move all the particles

– Process any interactions of particle & boundaries

– Sort particles into cells

– Select and execute random collisions

– Sample statistical values

Example: Flow past a sphere

Page 7: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC Collisions

• Sort particles into spatial collision cells

• Loop over collision cells– Compute collision

frequency in a cell

– Select random collision partners within cell

– Process each collision

Probability that a pair collides only depends on their relative velocity.

Two collisions during t

Page 8: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Collisions (cont.)

Post-collision velocities

(6 variables) given by:• Conservation of

momentum (3 constraints)• Conservation of energy

(1 constraint)• Random collision solid

angle (2 choices)

v1

v2 v2’

v1’

Vcm

vr

vr’

Direction of vr’ is uniformly distributed in the unit sphere

Page 9: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC in Aerospace Engineering

International Space Station experienced an unexpected 20-25 degree roll about its X-axis during usage of the U.S. Lab vent relief valve.

Analysis using DSMC provided detailed insight into the anomaly and revealed that the “zero thrust” T-vent imparts significant torques on the ISS when it is used.

NASA DAC (DSMC Analysis Code)

Mean free path ~ 1 m @ 101 Pa

Page 10: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Computer Disk Drives

Mechanical system resembles phonograph, with the read/write head located on an air bearing slider positioned at the end of an arm.

Platter

Air flow

Page 11: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Multi-scales of Air Bearing Slider

Slider (1 mm long) flies about 30 nm above platter. This is like a 747 flying 1.5 millimeters above ground

Sensitivity decreases exponentially with height

Page 12: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC Simulation of Air Slider

30 nm

Spinning platter

R/W Head

PressureInflowOutflow

F. Alexander, A. Garcia and B. Alder, Phys. Fluids 6 3854 (1994).

Navier-Stokes

1st order slip

Cercignani/Boltzmann

DSMC

Position

Pres

sure

Flow between platter and read/write head of a computer disk drive

Page 13: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Outline

• Direct Simulation Monte Carlo

• Anomalous Poiseuille Flow• Anomalous Couette Flow

• Anomalous Temperature Gradient Flow

• Anomalous Diffusion Flow

Page 14: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Acceleration Poiseuille Flow

Similar to pipe flow but between pair of flat planes (thermal walls).

Push the flow with a body force, such as gravity.

Channel widths roughly 10 to 100 mean free paths (Kn 0.1 to 0.01)

v

a

periodic

periodic

Page 15: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Anomalous Temperature

• DSMC

- Navier-Stokes• DSMC

- Navier-Stokes

Velocity profile in qualitative agreement with Navier-Stokes but temperature has anomalous dip in center.

M. Malek Mansour, F. Baras and A. Garcia, Physica A 240 255 (1997).

Page 16: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Heat Flux &Temperature Gradient

• DSMC

- Navier-Stokes

Heat is generate inside the system by shearing and it is removed at the walls.

Heat is flowing from cold to hot near the center.

M. Malek Mansour, F. Baras and A. Garcia, Physica A 240 255 (1997).

HEAT

Page 17: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Burnett Theory for Poiseuille

Burnett

Navier-Stokes

N-S

BurnettDSMC

F. Uribe and A. Garcia, Phys. Rev. E 60 4063 (1999)

Pressure profile also anomalous with a gradient normal to the walls. Agreement with Burnett’s hydrodynamic theory.

P but no flow

Page 18: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

BGK Theory for Poiseuille

M. Tij, A. Santos, J. Stat. Phys. 76 1399 (1994)

“Dip” term

Navier-Stokes

BGK

DSMC

Kinetic theory calculations using BGK theory predict the dip.

Page 19: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Super-Burnett Calculations

Burnett theory does not get temperature dip but it is recovered at Super-Burnett level.

Xu, Phys. Fluids 15 2077 (2003)

DSMC

S-B

Page 20: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Pressure-driven Poiseuille Flow

v v

High P

Low PAcceleration

DrivenPressure

Driven

P

a

Compare acceleration-driven and pressure-driven Poiseuille flows

periodic

periodic reservoir

reservoir

Page 21: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Poiseuille: Fluid Velocity

Acceleration Driven

Pressure Driven

NS & DSMC almost identical

NS & DSMC almost identical

Note: Flow is subsonic & low Reynolds number (Re = 5)

Velocity profile across the channel (wall-to-wall)

Page 22: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Poiseuille: Pressure

Acceleration Driven

Pressure Driven

NS

DSMCDSMC

NS

Pressure profile across the channel (wall-to-wall)

Y. Zheng, A. Garcia, and B. Alder, J. Stat. Phys. 109 495-505 (2002).

Page 23: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Poiseuille: Temperature

Acceleration Driven

Pressure Driven

NS

DSMCDSMC

NS

Y. Zheng, A. Garcia, and B. Alder, J. Stat. Phys. 109 495-505 (2002).

Page 24: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Super-Burnett Theory

Super-Burnett accurately predicts profiles.

Xu, Phys. Fluids 15 2077 (2003)

Page 25: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Outline

• Direct Simulation Monte Carlo

• Anomalous Poiseuille Flow

• Anomalous Couette Flow• Anomalous Temperature Gradient Flow

• Anomalous Diffusion Flow

Page 26: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Couette Flow

Dilute gas between concentric cylinders. Outer cylinder fixed; inner cylinder rotating.

Low Reynolds number (Re 1) so flow is laminar; also subsonic. Dilute Gas

A few mean free paths

Page 27: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Slip LengthThe velocity of a gas moving over a stationary, thermal wall has a slip length.

ThermalWall

Slip length

Moving Gas

This effect was predicted by Maxwell; confirmed by Knudsen.Physical origin is difference between impinging and reflected velocity distributions of the gas molecules.Slip length for thermal wall is about one mean free path.Slip increases if some particle reflect specularly; define accommodation coefficient, , as fraction of thermalize (non-specular) reflections.

Page 28: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Slip in Couette Flow

Simple prediction of velocity profile including slip is mostly in qualitative agreement with DSMC data.

K. Tibbs, F. Baras, A. Garcia, Phys. Rev. E 56 2282 (1997)

= 1.0

= 0.7

= 0.4

= 0.1

Page 29: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Diffusive and Specular Walls

Dilute Gas

Diffusive Walls

Dilute Gas

Specular Walls

Outer wallstationary

When walls are completely specular the gas undergoes solid body rotation so v = r

Page 30: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Anomalous Couette Flow

At certain values of accommodation, the minimum fluid speed within the fluid.

= 0.01

= 0.05

= 0.1

(solid body rotation)

(simple slip theory)Minimum

K. Tibbs, F. Baras, A. Garcia, Phys. Rev. E 56 2282 (1997)

Page 31: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Anomalous Rotating Flow

Dilute Gas

Diffusive Walls

Dilute Gas

Specular Walls

Dilute Gas

Intermediate Case

Outer wallstationary

Effect occurs when walls ~80-90% specular

Minimum tangential speedoccurs in between the walls

Page 32: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

BGK Theory

K. Aoki, H. Yoshida, T. Nakanishi, A. Garcia, Physical Review E 68 016302 (2003).

Excellent agreement between DSMC data and BGK calculations; the latter confirm velocity minimum at low accommodation.

DSMC BGK

Page 33: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Critical Accommodation for Velocity Minimum

BGK theory allows accurate computation of critical accommodation at which the velocity profile has a minimum within the fluid.

Approximation is

Kn2 O

Ic r

r

Page 34: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Outline

• Direct Simulation Monte Carlo

• Anomalous Poiseuille Flow

• Anomalous Couette Flow

• Anomalous Temperature Gradient Flow• Anomalous Diffusion Flow

Page 35: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Fluid Velocity

How should one measure local fluid velocity from particle velocities?

Page 36: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Instantaneous Fluid VelocityCenter-of-mass velocity in a cell C

mN

mv

M

Ju

N

Cii

Average particle velocity

Note that vu

N

Ciiv

Nv

1vi

Page 37: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

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 cumulative average

Page 38: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Landau Model for Students

Simplified model for university students:

Genius

Intellect = 3

Not Genius

Intellect = 1

Page 39: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Three Semesters of TeachingFirst semester Second semester

Average = 3

Third semester

Average = 2

Sixteen students in three semesters

Total value is 2x3+14x1 = 20.

Average = 1

Page 40: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Average Student?How do you estimate the intellect of the average student?

Average of values for the three semesters:( 3 + 1 + 2 )/3 = 2

Or

Cumulative average over all students:(2 x 3 + 14 x 1 )/16 = 20/16 = 1.25

Significant difference because there is a correlation between class size and quality of students in the class.

Page 41: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Relation to Student Example

25.116

11432*

u

23

213

u

S

j

tN

Ciji

j

j

tvtNS

u1

)(

)()(

11

S

j j

S

j

tN

Ci ji

tN

tvu

j

)(

)()(

*

Average = 3 Average = 1 Average = 2

Page 42: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC SimulationsTemperature profilesMeasured fluid velocity

using both definitions.Expect no flow in x forclosed, steady systems

T systemT = 2

T = 4

Equilibrium

x

10 mean free paths

20 sample cellsN = 100 particles per cell

u

Page 43: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

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.

TxLxM

Ju )(

Hot Cold

Hot Cold

0*

M

Ju

Page 44: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Anomalous Fluid Velocity

T = 4

T = 2

Equilibrium

Position

uMean instantaneous fluid velocity measurement gives an anomalous flow in the closed system.

Using the cumulative mean, u* , gives the expected result of zero fluid velocity.

Page 45: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Properties of Flow Anomaly

• Small effect. In this example • Anomalous velocity goes as 1/N where N is

number of particles per sample cell (in this example N = 100).

• Velocity goes as gradient of temperature.• Does not go away as number of samples

increases.• Similar anomaly found in plane Couette flow.

mkTu 410

Page 46: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Correlations of FluctuationsAt 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

Page 47: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Density-Velocity CorrelationCorrelation of density-velocity fluctuations under T

Position x’

)'()( xux DSMC

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

COLD HOT

When density is above average, fluid velocity is negative

u

Theory is Landau fluctuating hydrodynamics

Page 48: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Relation between Means of Fluid Velocity

From the definitions,

From correlation of non-equilibrium fluctuations,

u

uNm

NJ

N

Nuu

*22

2

*1

TxLxxux )()()(

This prediction agrees perfectly with observed bias.

)'()( xux

x = x’

Page 49: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Comparison with Prediction

Perfect agreement

between mean

instantaneous

fluid velocity and

prediction from

correlation of

fluctuations.

Position

Grad T

Grad u(Couette)

u

u and

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

Page 50: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Inflow / Outflow Boundaries

Unphysical fluctuation correlations also appear boundary conditions are not thermodynamically correctly.

For example, number of particles crossing an inflow / outflow boundary are Poisson distributed.

Reservoir boundary

Surface injection boundary

Page 51: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Anomalous Equilibrium Flow

M. Tysanner and A. Garcia, Int. J. Num. Meth. Fluids 48 1337-49 (2005)

Poisson

Constant

Me

an

Inst

ant

an

eou

s F

luid

Ve

loci

ty

Surface injection boundary

Mean instantaneous fluid velocity is non-zero even at equilibrium if boundary conditions not treated correctly with regards to fluctuations.

Page 52: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Instantaneous TemperatureMeasured error in mean instantaneous temperature for small and large N. (N = 8.2 & 132)

Error goes as 1/N

Predicted error from density-temperature correlation in good agreement. Position

Mea

n In

st. T

empe

ratu

re E

rror

Error about 1 Kelvin for N = 8.2

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

Hot Cold

Page 53: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Non-intensive Temperature

Mean instantaneous temperature has bias that goes as 1/N, so it is not an intensive quantity.Temperature of cell A = temperature of cell B yetnot equal to temperature of super-cell (A U B)

A

B

Page 54: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Outline

• Direct Simulation Monte Carlo

• Anomalous Poiseuille Flow

• Anomalous Couette Flow

• Anomalous Temperature Gradient Flow

• Anomalous Diffusion Flow

Page 55: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Diffusion & Fluctuations

Equilibrium concentration gradient (induced by gravity)

Steady-state concentration gradient (induced by boundaries)

As we’ve seen, fluctuations are enhanced when a system is out of equilibrium, such as under a gradient imposed by boundaries.

Page 56: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

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).

Page 57: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Experimental Observations

Giant fluctuations in diffusive mixing seen in lab experiments.

Experimental images (1mm side) of scatterring from the interfacebetween two miscible fluids (from A. Vailati & M. Giglio, Nature 1997)

Page 58: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Diffusion & Fluctuations

Using Landau-Lifshitz fluctuating hydrodynamics in the isothermal, incompressible approximation we may write,

for the fluctuations of concentration and velocity.

Solving in Fourier space gives the correlation function,

Page 59: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Diffusion & Fluctuations

The total mass flux for concentration species is,

where there are two contributions, the “bare” diffusion coefficient and the contribution due to correlation of fluctuations.

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

Notice that diffusion enhancement goes as ln Lx

Ly

Lx

Lz

Page 60: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC Measurements

Can separate the contributions to the concentration flux as,

In DSMC we can easily measure

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

Ly

Lx

Lz

= Deff c = D0 c + ΔD c

and c

Page 61: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC Results for Deff and D0

Deff

D0

Ly

Lx

Lz

A. Donev, J. Bell, A. Garcia, J. Goodman, E. Vanden-Eijnden, in preparation

Page 62: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Global Enhancement of Diffusion

Ly

Lx

Lz

Ly

Lx

Lz

Ly

2Lx

Lz

+ ≠

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 enhanced diffusion.

Page 63: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

References and Spam

Reprints, pre-prints and slides available:

www.algarcia.org

DSMC tutorial & programs in my textbook.

Japanese

Page 64: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

RGD 2012 in Zaragoza, Spain

Hosted by ZCAM, the Spanish node of the European Centers for Atomic and Molecular Calculations (CECAM)

Summer 2012

Page 65: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

DSMC 2011 WorkshopLate September 2011Santa Fe, New MexicoHosted by Sandia Nat. Lab.

Page 66: Surprising Hydrodynamic Results Discovered by means of Direct Simulation Monte Carlo

Von Neumann Symposium on Multi-scale Algorithms

July 4-8, 2011Snowmass, Utah

Sponsored by American Mathematical Society