6.6. APPLICATION TO FLUIDS 285
MD [36] (see Section 4.2). The constant temperature constraint is imposed by using vari-
ous kinds of thermostats [36]. After making these two assumptions, the conservation laws
(6.3.15) with σ defined by the Irving-Kirkwood formula are no longer exact. However, we
will continue to use the Irving-Kirkwood formula as the basis for extracting macroscopic
stress from the MD data. This should be an acceptable approximation but its accuracy
remains to be carefully validated. For simplicity only, we will also limit ourselves to the
situation when the macroscale flow is a two dimensional flow. The molecular dynamics,
however, is done in three dimensions, and simple periodic boundary condition is used in
the third direction.
The macroscale model and the macro-solver. We will assume that the macro-
scopic density is a constant ρ
0
. Under this assumption, the macroscopic model should
be of the form:
ρ
0
(∂
t
U + ∇ · (U ⊗ U)) − ∇ · σ
s
= 0, x ∈ Ω
∇ · U = 0
(6.6.4)
where U is the macroscopic velocity field, σ
s
is the stress tensor. The data that needs to
be supplied from the micro model is the stress: D = σ
s
. We will make the assumption
that it depends only on ∇U. As we remarked earlier (Section 6.3), since the macroscale
model is in the form of the equations for incompressible flows, it is natural to use the
projection method as the macro solver [11]. Let us denote the time step by ∆t (or
˜
∆t
in the seamless metho d ), and the numerical solution at time t
n
= n∆t by U
n
. In the
projection method, we discretize the time derivative in the momentum equation using
the forward Euler scheme:
ρ
0
˜
U
n+1
− U
n
∆t
+ ∇ · (ρ
0
U
n
⊗ U
n
− σ
n
s
) = 0. (6.6.5)
For the moment, pressure as well as the incompressibility condition are neglected. Next,
the velocity field U
n+1
at the new time step t
n+1
= (n + 1)∆t is obtained by projecting
˜
U
n+1
onto the divergence-free subspace:
ρ
0
U
n+1
−
˜
U
n+1
∆t
+ ∇P
n+1
= 0, (6.6.6)
where P
n+1
is determined by the incompressibility condition:
∇ · U
n+1
= 0 (6.6.7)