+ All Categories
Home > Documents > Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall...

Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall...

Date post: 26-Jun-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
23
Fluctuating Hydrodynamics of Non-Ideal Fluids Via Stochastic Hard-Sphere Molecular Dynamics (SHSD) Aleksandar Donev 1 Luis W. Alvarez Fellow, Lawrence Berkeley National Laboratory Berni J. Alder, Lawrence Livermore National Laboratory Alejandro L. Garcia, San Jose State University 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. DSMC09, Santa Fe, NM September 9, 2009 A. Donev (LLNL/LBNL) SHSD Sept. 2009 1 / 23
Transcript
Page 1: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Fluctuating Hydrodynamics of Non-Ideal Fluids ViaStochastic Hard-Sphere Molecular Dynamics (SHSD)

Aleksandar Donev1

Luis W. Alvarez Fellow, Lawrence Berkeley National LaboratoryBerni J. Alder, Lawrence Livermore National Laboratory

Alejandro L. Garcia, San Jose State University

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

DSMC09, Santa Fe, NMSeptember 9, 2009

A. Donev (LLNL/LBNL) SHSD Sept. 2009 1 / 23

Page 2: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

Stochastic Molecular Dynamics

In real fluids particles (atoms) interact continuously via interactionforces: Molecular Dynamics (MD).

A notable exception are hard-sphere fluids.

At low densities, particles travel almost freely in-between brief butintense collisions.

Momentum and energy transport in a collisional fluid have twocomponents:

Kinetic: advective motion made diffusive by the randomizing collisionsCollisional: momentum and energy exhange during the collisions

Stress tensor is an average over collisions,

σ = σk + σc =m 〈vi ⊗ vi 〉+ m〈rij ⊗∆vij〉c

∆t

A. Donev (LLNL/LBNL) SHSD Sept. 2009 2 / 23

Page 3: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

Traditional DSMC

Traditional DSMC assumes a low-density gas, meaning that thekinetic transport dominates: the collisional terms do not really matter!

In particular, the typical collisional distance 〈rij〉 does not matter aslong as 〈rij〉 � λ.

Traditional DSMC algorithm:

Propagate particles advectively, r′

i = ri + vi∆t, and sort them into agrid of collision cells.For each cell c a certain number Ntc ∼ ΓtcNc(Nc − 1)∆t of randomtrial collisions are executed.The collision rate Γtc ∼ σ is chosen based on kinetic theory and aprescribed collisional cross-section σ.

The trial collision is accepted with some probability p(acc)ij dependent on

vrel = |vij |, e.g., p(acc)ij = vrel/v

(max)rel for hard-sphere gases.

Momentum and energy is exchanged conservatively, choosing ∆vij

randomly, independently of rij .

A. Donev (LLNL/LBNL) SHSD Sept. 2009 3 / 23

Page 4: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

DSMC for Dense Flows

As the density is increased, i.e., when 〈rij〉 & λ, the collisionalcontributions to the transport begin to become important...

Grid artifacts in traditional DSMC:

It is not Galilean invariant: the grid of cells must be shifted randomlybefore each collision step.It is not microscopically isotropic and does not strictly conserve angularmomentum.

The collisional stress tensor in traditional DSMC is anisotropic andthe particle interactions are not frame invariant: this is not acceptablefor liquids or dense gases!

A. Donev (LLNL/LBNL) SHSD Sept. 2009 4 / 23

Page 5: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

Isotropic DSMC

Isotropic DSMC: All pairs of particles closer than distance D arecollision candidates, even if in neighboring cells!

In the limit of small time steps, the I-DSMC method simulates thefollowing stochastic particle system:

Particles move ballistically in-between collisions.While two particles i and j are less than a diameter D apart, rij ≤ D,there is a probability rate χD−1Kc(vij , rij) for them to collide andchange velocities without changing their positions.The pair center-of-mass velocity does not change, while the relativevelocity is drawn from a probability density Pc(v

ij ; vij , rij),∥∥∥v′

ij

∥∥∥ = ‖vij‖.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 5 / 23

Page 6: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

I-DSMC Collision Kernels

The I-DSMC fluid is specified through: the pre- and post-collisionkernels Kc and Pc , the cross-section factor χ and the density(hard-sphere volume fraction) φ = πND3/(6V ).

Normalization is such that for χ = 1 and φ� 1, the effectivecollisional cross-section is the same as traditional DSMC:

1 Traditional DSMC collisions:

Kc = 3vrel/4, requiring costly rejection to implement.The relative velocity is rotated uniformly independent of rij [1].

2 Maxwell collisions:

Kc = 3v rel/4 = 3√

kBT0/πm, no rejection necessary!This is unphysical if the temperature dependence matters, butotherwise preferred.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 6 / 23

Page 7: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

I-DSMC Algorithm

1 Visit the cells one by one in random order.

2 For each cell c perform N(c)tc = Γ

(c)tc NcNp∆t trial collisions between

one of the Nc particles in that cell and one of the Np particles in the3d neighboring cells, rejecting self-collisions. The local collisional

rate Γ(c)tc = χD−1K

(max)c /2.

3 Perform an actual collision for the trial pair ij with probability

pcij = Kc(vij , rij)/K

(max)c .

4 For the Maxwell kernel K(max)c = 3v rel/4 = const.

5 For the traditional pre-collision kernel K(max)c = 3v

(max)rel /4.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 7 / 23

Page 8: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

Practicalities

Guidelines for parameter selection:

Cell length Lc ' D.Choose φ such that there are a couple of particles per cell.Trial collision frequency χ should be adjusted to tune viscosity.Choose dimensionless time step δt / 0.10− 0.25 s.t.

l∆t ≈ ∆t√

kBT0/m ∼ Dδt.

Time steps should be such that there are no more than 0.25− 0.5collisions per particle per time step.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 8 / 23

Page 9: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Isotropic DSMC (I-DSMC)

Comparison with Traditional DSMC

I-DSMC is not meant to replace traditional DSMC at low densities!For one, it is several times less efficient.

The molecular properties enter in traditional DSMC only in the formof collisional cross-sections σ ∼ D2

m.

For rarified gas flows, the collision diameter D is like the cell lengthLc , not Dm!

I-DSMC for a low-density gas of hard-sphere of diameter Dm:Choose the collision diameter D ≈ λ/4� Dm, and setχB ∼ (Dm/λ)2 � 1.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 9 / 23

Page 10: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Non-Ideal Fluids

Recall stress tensor

σ = σk + σc =m 〈vi ⊗ vi 〉+ m〈rij ⊗∆vij〉c

∆t

For randomized collision kernels, at equilibrium σc =0 and the fluidhas an ideal equation of state (EOS),

p = PV /NkBT = 1

The (I-)DSMC fluid is thus very compressible and has large densityfluctuations.

Idea: Mimic repulsion by biasing the momentum exchange∆pij = m∆vij to be (statistically) aligned to rij .

A. Donev (LLNL/LBNL) SHSD Sept. 2009 10 / 23

Page 11: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Hard-Sphere Collision Kernels

Maximal repulsion when ∆pij ‖ rij , i.e., the hard-sphere collision rule,

v′i =vi + vn r̂ij

v′j =vj − vn r̂ij ,

where vn = −vij · r̂ij is the normal (relative) speed.

Only accept collisions of approaching particles, vn > 0.

Thermodynamics requires that pc ∼ Tc for a fluid with no internalenergy.

Locally, pc ∼ 〈∆vij · rij〉c ∼ Γl

√Tl , where Γl is the local collisional

frequency, and thus we require Γl ∼√

Tl .

This requires a pre-collision kernel that is linear in the relative speed!

A. Donev (LLNL/LBNL) SHSD Sept. 2009 11 / 23

Page 12: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Collision Kernels contd.

Stochastic Hard-Sphere Dynamics (SHSD) collision kernels [2]:

Pc(v′ij ; vij , rij) =δ(vij + 2vn r̂ij).

Kc(vij , rij) =3vnΘ(vn)

SHSD is a specific version of I-DSMC and is implemented with theI-DSMC algorithm.

Rejection of collision trial pairs slows things down significantly but is

necessary (we use K(max)c = 3v

(rel)max ).

A. Donev, A. L. Garcia and B. J. Alder [3, 4]”Stochastic Hard-Sphere Dynamics for Hydrodynamics of Non-IdealFluids”, Phys. Rev. Lett. 101:075902 (2008) [arXiv:0803.0359]”A Thermodynamically-Consistent Non-Ideal Stochastic Hard SphereFluid”, submitted [arXiv:0908.0510].

A. Donev (LLNL/LBNL) SHSD Sept. 2009 12 / 23

Page 13: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

The SHSD Fluid

The SHSD fluid has non-trivial structure

But is the structure thermodynamically-consistent with the EOS,p(φ) = PV /NkBT , i.e.,Are the density fluctuations consistent with thecompressibility?!?

A. Donev (LLNL/LBNL) SHSD Sept. 2009 13 / 23

Page 14: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

SHSD as a Penetrable Sphere Fluid

The SHSD fluid is not a classical Hamiltonian fluid, so classicalstatistical mechanics is not directly applicable.

We find numerically that the SHSD system is thermodynamicallyequivalent to a system of penetrable spheres interacting with alinear core pairwise effective potential

U(r)/kT = 3χ(1− x)Θ(1− x)

This potential is similar to the Dissipative Particle Dynamics (DPS)quadratic core potential.

This equivalence guarantees thermodynamic consistency for SHSD,i.e.,

S(ω = 0, k = 0) =kBT

mc−2T = (p + φdp/dφ)−1

A. Donev (LLNL/LBNL) SHSD Sept. 2009 14 / 23

Page 15: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Pair Correlation Function

0.25 0.5 0.75 1 1.25 1.5 1.75 2

x=r/D

0.25

0.5

0.75

1

g 2(x)

Low density limitHNC linear coreMC linear coreSHSD φ=0.1SHSD φ=0.5SHSD φ=1.0SHSD φ=2.0

0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5

kD / 2π0

0.25

0.5

0.75

1

1.25

1.5

S(k)

Low density appr. (φ=0.1)HNC linear coreSHSD φ=0.1SHSD φ=0.5SHSD φ=1.0SHSD φ=2.0

Figure: g2(x) and S(k) for SHSD with χ = 1

A. Donev (LLNL/LBNL) SHSD Sept. 2009 15 / 23

Page 16: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Transport Coefficients

The hydrodynamics of SHSD is described by a stochastic revisedEnskog equation [5],

∂f (t, r, v)

∂t+ v ·∇rf (t, r, v) =3χD2

∫ 1

0dx

∫R3

dw

∫S2

+

de x2vn[g2(r, r + xe; n)f (t, r, v′)f (t, r + xe,w′)

−g2(r, r − xe; n)f (t, r, v)f (t, r − xe,w)]

where vn = −e · (v −w) ≥ 0, v′ = v + evn and w′ = w − evn.

A standard second-order Chapman-Enskog expansion [5] givestheoretical estimates for transport coefficients in terms of themoments of pair correlation function g2(x = r/D),

xk =∫ 1

0 xkg2(x)dx .

A. Donev (LLNL/LBNL) SHSD Sept. 2009 16 / 23

Page 17: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Pressure

0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5

φ1.75

2

2.25

2.5

2.75(p

-1)/

(χφ)

Low-density limitχ=1.00χ=0.75χ=0.50χ=0.25

0.5 1 1.5 2φ0

0.1

0.2

0.3

0.4

0.5

0.6S(

k=0)

Figure: p(φ;χ) = PV /NkBT = 1 + 12φχx3

A. Donev (LLNL/LBNL) SHSD Sept. 2009 17 / 23

Page 18: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

SHSD

Viscosity

0.5 0.75 1 1.25 1.5 1.75 2

φ0

1

2

3

4

5

6

7

η/η 0

χ=0.25χ=0.50χ=0.75χ=1.00

0 0.1 0.2 0.3 0.4 0.50

0.5

1

Low density limit

Figure: η(φ;χ)D2/√

mkBT = 548√

πχx2(1 + 24φχx3

5 )2 + 144φ2χx4

5π3/2

A. Donev (LLNL/LBNL) SHSD Sept. 2009 18 / 23

Page 19: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Conclusions

SHSD as a Stochastic Fluid

The SHSD algorithm gives a fluctuating hydrodynamic medium withtunable compressibility and viscosity that is significantly moreefficient than classical Molecular Dynamics!

We have verified that the spatio-temporal correlations of thefluctuating hydrodynamic field U = (ρ0 + δρ, δv ,T0 + δT ) areconsistent with the (linearized) Landau-Lifshitz Navier Stokes(LLNS) equations.

The speed of sound increases with φ and χ, and the densityfluctuations are correspondingly reduced.

For reasonable parameters the SHSD fluid is still relativelycompressible compared to a dense liquid, Schmidt numberSc = η(ρζ)−1 ∼ 10 instead of Sc ∼ 1000 for water.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 19 / 23

Page 20: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Conclusions

Dynamic Structure Factor

-7.5 -5 -2.5 0 2.5 5 7.5ω

0

1

2

3

4

5

6

7

8

c T2 S

ρ(k,ω

)IDSMC φ=0.5, χ=0.62SHSD φ=0.5, χ=1SHSD φ=1, χ=1

Figure: Shifting of the two symmetric Brillouin peaks at ω ≈ csk toward higherfrequencies as compressibility is reduced.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 20 / 23

Page 21: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Conclusions

Conclusions

Collisional contribution to the stress tensor can be made Gallileaninvariant and isotropic by making DSMC grid-free: Isotropic DSMC(I-DSMC).

Eliminating grid artifacts is expensive but becomes important fordense and non-ideal fluids.

A non-ideal equation of state can be introduced in I-DSMC by usingthe hard-sphere pre- and post-collision kernels: StochasticHard-Sphere Dynamics (SHSD).

We have coupled I-DSMC to a continuum fluctuating hydrodynamicssolver in a hybrid method [6]”A hybrid particle-continuum method for hydrodynamics of complexfluids”, by A. Donev and A. L. Garcia and J. B. Bell and B. J. Alder,under preparation, 2009.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 21 / 23

Page 22: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Conclusions

Future Work

Develop kinetic theory for I-DSMC for the traditional and Maxwellcollision kernels.

Deeper theoretical understanding of the connection betweenstochastic and deterministic fluids.

I-DSMC and SHSD can and should be parallelized.

Our hybrid method works only for ideal DSMC fluids: Can we coupleSHSD to a continuum solver?

Ultimately we require an Adaptive Mesh and AlgorithmRefinement (AMAR) framework that couples deterministic MD forthe polymer chains (micro), a stochastic solvent (micro-meso), withcompressible fluctuating Navier-Stokes (meso), and incompressibleCFD (macro).

A. Donev (LLNL/LBNL) SHSD Sept. 2009 22 / 23

Page 23: Fluctuating Hydrodynamics of Non-Ideal Fluids Via ...donev/DSMC/SHSD.DSMC.handout.pdf · Recall stress tensor ˙ = ˙ k + ˙ c =m hv i v ii+ m hr ij v iji c t For randomized collision

Conclusions

References/Questions?

F. J. Alexander and A. L. Garcia.

The Direct Simulation Monte Carlo Method.Computers in Physics, 11(6):588–593, 1997.

M. Lachowicz and M. Pulvirenti.

A stochastic system of particles modelling the Euler equations.Archive for Rational Mechanics and Analysis, 109:81–93, March 1990.

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

Stochastic Hard-Sphere Dynamics for Hydrodynamics of Non-Ideal Fluids.Phys. Rev. Lett, 101:075902, 2008.

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

A Thermodynamically-Consistent Non-Ideal Stochastic Hard-Sphere Fluid.Preprint, arXiv:0908.0510, 2009.

J. Polewczak and G. Stell.

Transport Coefficients in Some Stochastic Models of the Revised Enskog Equation.J. Stat. Phys., 109:569–590, 2002.

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

A hybrid particle-continuum method for hydrodynamics of complex fluids.In preparation, 2009.

A. Donev (LLNL/LBNL) SHSD Sept. 2009 23 / 23


Recommended