I am trying to implement periodic boundary condition in a 2 dimensional channel. The geometry is attached, showing very coarse mesh( just for representation). According to Patankar et al. I have added an extra source term in x momentum equation(Pressure drop per unit periodic length). And the boundary condition is such that for all the variables, inlet face values are equal to the cell(control volumes) values attached to the corresponding downstream or outlet faces. And similarly the outlet face values are equal to the cell values attached to the inlet faces, as shown in the attached figure.
The top and bottom boundaries are no slip walls and the front and back faces are symmetric planes as in OpenFOAM.
But the solution is diverging after few time steps. I have checked simple channel flow with velocity inlet and pressure outlet boundary conditions, it is working fine. I am unable to figure out where am I doing mistake for periodic case.
I didn't find much study material regarding applying periodic boundary condition. Can any one suggest some good source of information?
any help will be greatly appreciated.
Thanks in advance.
Jai
===