#### 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.

## 2 thoughts on “Multigrid applied to Incompressible Navier-Stokes Equation”

Comments are closed.