Equations for fluid dynamics
In one of my research projects, I study numerical methods for fluid-structure interaction (FSI) problems. Examples of this type of problems are ubiquitous in nature, industries, and laboratories. For instance, as organisms swim in a liquid, the parts that generate propulsion, such as flagella and fins, are the solid structures that interact with the fluid environment around them. At the core of a numerical method for FSI problems, we need able to solve the PDEs that describe continuum mechanics. For fluid dynamics, we need to numerically solve the well-known Navier-Stokes equations. Assuming the fluid is incompressible Newtonian fluid, with constant density, we can write down two equations, first is the momentum balance equation, involving fluid velocity , pressure , and body force acting on the fluid :
where and are density and dynamic viscosity of the fluid. Second, we have the incompressibility constraint:
The first equation is a PDE in space and time, to solve it, we first discretize the spatial domain, then use finite difference to compute various spatial derivatives. Once the spatial derivatives are computed, we can use those to advance the solution forward in time. But the solution we get in this way is not guaranteed to fulfill the incompressibility constraint. To overcome this problem, we use Alexandre Chorin‘s projection method.
Projection method for incompressibility constraint
The mathematical formulation of the projection method would be a topic of another day, the idea is we would get an intermediate velocity update by solving the incomplete momentum balance equation, now without the term involving pressure:
For example, if we were to use simple explicit time update rule, in discretized time step , we would have
We update the velocities to , then, we subtract in the pressure gradient term to get to next time step, i.e.
Now let’s apply divergence operator to both sides of the equation above, and have
The first term because the incompressibility constraint needs to be enforced. Recognize this is a Poisson equation for pressure , with the source being
We can choose how to would like to discretize the Laplacian and gradient operator, but in the end we would end up with a linear equation of the form
where and are discretized pressure and source term. This is a linear equation we can solve with multigrid.
In summary, we can use multigrid is in enforcing the incompressibility constraint in the Navier-Stokes equation via Chorin’s projection method. This method means we need to solve a Poisson equation at every time step. After discretization, the Poisson equation can be written in the form. For details about multigrid algorithm, what it is and how it works, see the post Multigrid in a nutshell. In another post, I write about a project to parallelize the smoothing steps in multigrid using OpenMP and CUDA.
I’m a grad student studying Applied Mathematics at SEAS, Harvard University. My interest lies in using mathematical models and computation to explore problems and phenomena in the natural world. Together with my Ph.D. advisor, Prof. Chris Rycroft and my collaborators, we explore topics such as numerical methods for fluid-solid interaction problems, simulations of diffusion-limited dissolutions, modeling bacteria growth and pattern formation in biofilm.
When I’m not doing math or coding, I enjoy being outdoors and playing music with Tobi.