140 likes | 172 Views
Computer Animation Algorithms and Techniques. Computational Fluid Dynamics. Fluids. conservation of mass momentum energy. types. viscous v. non-viscous. compressible v. incompressible. properties. characteristics. velocity. laminar flow. density. turbulent. pressure.
E N D
Computer AnimationAlgorithms and Techniques Computational Fluid Dynamics
Fluids conservation of mass momentum energy types viscous v. non-viscous compressible v. incompressible properties characteristics velocity laminar flow density turbulent pressure steady state flow heat gravity
d d d d d d d d d d d d d d d d Models grid-based (Eulerian) particle-based (Lagrangian) Hybrid
Notation Gradient Divergence
Divergence Theorem The integral of the flow field’s divergence over the volume of the cell is the same as the intgral of the flow field over the cell’s boundary
Conservation of Mass If incompressible:
Conservation of Momentum in x dy dx
Velocity: u,v Coordinates: x,y Density: Pressure: p Euler Equations - 2D
Stable Fluids Velocity grid Density grid Move densities around using velocity grid and dissipate densities Move velocities around using velocity grid and dissipate velocities
Stable Fluids Source Force Dissipation Advection