Professional Documents
Culture Documents
! Thursday: class will begin late, 11:30am ! In reality, nearby molecules travelling at
different velocities occasionally bump into
each other, transferring energy
• Differences in velocity reduced (damping)
• Measure this by strain rate (time derivative of
strain, or how far velocity field is from rigid
motion)
• Add terms to our constitutive law
cs533d-term1-2005 1 cs533d-term1-2005 2
! At any instant in time, measure how fast chunk ! As with linear elasticity, end up with two parameters if we
of material is deforming from its current state want isotropy:
• Not from its original state ! ijviscous = 2µ"˙ij + #"˙kk$ij
• So we"re looking at infinitesimal, incremental strain • µ and ! are coefficients of viscosity (first and second)
updates • These are not the Lame coefficients! Just use the same symbols
• Can use linear Cauchy strain! • ! damps only compression/expansion
! So the strain rate tensor is " Usually !!-2/3µ (exact for monatomic gases)
" So end up with
# "u "u &
!˙ij = 12 %% i + j (( % " u "u 2 "u (
$ "x j "x i ' ! ijviscous = µ'' i + j # k
$ij **
& " x j "x i 3 "x k )
cs533d-term1-2005 3 cs533d-term1-2005 4
Navier-Stokes Nondimensionalization
cs533d-term1-2005 9 cs533d-term1-2005 10
cs533d-term1-2005 11 cs533d-term1-2005 12
Vorticity equation Vorticity equation continued
! Start with N-S, constant viscosity and density ! Simplify with more vector identities, and assume
ut + u ! "u + #1 "p = g + $" 2 u incompressible to get:
! Take curl of whole equation D!
= ! " #u + $# 2!
! " ut + ! " ( u # !u) + ! " $1 !p = ! " g + ! " (%! 2 u) Dt
! Lots of terms are zero: ! Important result: Kelvin Circulation Theorem
• g is constant (or the potential of some field) • Roughly speaking: if '=0 initially, and there"s no
• With constant density, pressure term too viscosisty, '=0 forever after (following a chunk of
fluid)
! " ut + ! " ( u # !u) = $! " ! 2 u
! Then use vector identities to simplify… " If fluid starts off irrotational, it will stay that way
(in many circumstances)
! " ut + ! " ((! " u) " u + 12 !u 2 ) = #! 2 (! " u)
$ t + ! " ($ " u) = #! 2$
cs533d-term1-2005 13 cs533d-term1-2005 14
cs533d-term1-2005 15 cs533d-term1-2005 16
Bernoulli’s equation Water waves
! Every term in the simplified momentum ! For small waves (no breaking), can reduce
equation is a gradient: integrate to get geometry of water to 2D heightfield
p Can reduce the physics to 2D also
! t + 12 u 2 + = #G
!
cs533d-term1-2005 17 cs533d-term1-2005 18
Set up Boundaries
! We"ll take y=0 as the height of the water at ! At sea floor (y=-H), v=0 !y = 0
rest
! H is the depth (y=-H is the sea bottom)
! At sea surface (y=h!0), v=ht
• Note again - assuming very small horizontal motion
! h is the current height of the water at (x,z)
! y = ht
! Simplification: velocities very small (small
amplitude waves) ! At sea surface (y=h!0), p=0
• Or atmospheric pressure, but we only care about
pressure differences
• Use Bernoulli"s equation, throw out small velocity
squared term, use p=0,
cs533d-term1-2005 19
! t = "gh cs533d-term1-2005 20
Finding a wave solution Dispersion relation
height i, j
2
• Evolve each wave according to given wave ! “Energy” in K=(i,j) is S(K) = hˆ (K)
speed (dispersion relation)
! Update phase, use FFT to evaluate
! Oceanographic measurements have found
! How do we get the initial spectrum? models for expected value of S(K)
• Measure it! (oceanography) (statistical description)
cs533d-term1-2005 23 cs533d-term1-2005 24
Phillips Spectrum Fourier synthesis
! For a “fully developed” sea ! From the prescribed S(K), generate actual
• wind has been blowing a long time over a large area, Fourier coefficients
( )
statistical distribution of spectrum has stabilized
hˆ (K,0) = 1 X + X !1 S (K )
! The Phillips spectrum is: [Tessendorf…] 2 1 2
cs533d-term1-2005 25 cs533d-term1-2005 26
! Dispersion relation gives us '(K) ! Need to fix grid for Fourier synthesis
At time t, want h(x,t) = $ hˆ (K,0)e !1( K " x!#t ) (e.g. 1024x1024 height field grid)
"
! Grid spacing shouldn"t be less than e.g. 2cm (smaller
K =(i, j ) than that - surface tension, nonlinear wave terms, etc.
= $ hˆ (K,0)e ! !1#t
e !1K " x take over)
• Take little l (cut-off) a few times larger
K =(i, j )
! Total grid size should be greater than but still
" So then coefficients at time t are comparable to L in Phillips spectrum (depends on wind
• For j$0: speed and gravity)
• Others: figure out from conjugacy condition (or leave ! Amplitude A shouldn"t be too large
it up to real-valued FFT to fill them in) • Assumed waves weren"t very steep
cs533d-term1-2005 27 cs533d-term1-2005 28
Note on FFT output Choppy waves
! FFT takes grid of coefficients, outputs grid of ! See Tessendorf for more explanation
heights
! Nonlinearities cause real waves to have
! It"s up to you to map that grid sharper peaks and flatter troughs than
(0…n-1, 0…n-1) to world-space coordinates
linear Fourier synthesis gives
! In practice: scale by something like L/n
• Adjust scale factor, amplitude, etc. until it looks nice ! Can manipulate height field to give this
! Alternatively: look up exactly what your FFT effect
routines computes, figure out the “true” scale • Distort grid with (x,z) -> (x,z)+!D(x,z,t)
factor to get world-space coordinates K ˆ
D(x,t) = " ! !1 h (K,t )e !1K # x
K
K
cs533d-term1-2005 29 cs533d-term1-2005 30
Choppiness problems
cs533d-term1-2005 31