The algorithm of the projection method is based on the Helmholtz decomposition of any vector field into a solenoidal part and an irrotational part. Typically, the algorithm consists of two stages. In the first stage, an intermediate velocity that does not satisfy the incompressibility constraint is computed at each time step. In the second, the pressure is used to project the intermediate velocity onto a space of divergence-free velocity field to get the next update of velocity and pressure.
Helmholtz–Hodge decomposition
The theoretical background of projection type method is the decomposition theorem of Ladyzhenskaya sometimes referred to as Helmholtz-Hodge Decomposition or simply as Hodge decomposition. It states that the vector field defined on a simply connected domain can be uniquely decomposed into a divergence-free part and an irrotational part. Thus, since for some scalar function,. Taking the divergence of equation yields This is a Poisson equation for the scalar function. If the vector field is known, the above equation can be solved for the scalar function and the divergence-free part of can be extracted using the relation This is the essence of solenoidal projection method for solving incompressible Navier-Stokes equations.
Chorin's projection method
The incompressible Navier-Stokes equation may be written as In Chorin's original version of the projection method, one first computes an intermediate velocity,, explicitly using the momentum equation by ignoring the pressure gradient term: where is the velocity at th time step. In the second half of the algorithm, the projection step, we correct the intermediate velocity to obtain the final solution of the time step : One can rewrite this equation in the form of a time step as to make clear that the algorithm is really just an operator splitting approach in which one considers the viscous forces and the pressure forces separately. Computing the right-hand side of the second half step requires knowledge of the pressure,, at the time level. This is obtained by taking the divergence and requiring that, which is the divergence condition, thereby deriving the following Poisson equation for, It is instructive to note that the equation written as is the standard Hodge decomposition if boundary condition for on the domain boundary, are. In practice, this condition is responsible for the errors this method shows close to the boundary of the domain since the real pressure does not satisfy such boundary conditions. For the explicit method, the boundary condition for in equation is natural. If on, is prescribed, then the space of divergence-free vector fields will be orthogonal to the space of irrotational vector fields, and from equation one has The explicit treatment of the boundary condition may be circumvented by using a staggered grid and requiring that vanish at the pressure nodes that are adjacent to the boundaries. A distinguishing feature of Chorin's projection method is that the velocity field is forced to satisfy a discrete continuity constraint at the end of each time step.
General method
Typically the projection method operates as a two-stage fractional step scheme, a method which uses multiple calculation steps for each numerical time-step. In many projection algorithms, the steps are split as follows:
First the system is progressed in time to a mid-time-step position, solving the above transport equations for mass and momentum using a suitable advection method. This is denoted the predictor step.
At this point an initial projection may be implemented such that the mid-time-step velocity field is enforced as divergence free.
The corrector part of the algorithm is then progressed. These use the time-centred estimates of the velocity, density, etc. to form final time-step state.
A final projection is then applied to enforce the divergence restraint on the velocity field. The system has now been fully updated to the new time.