My FDM code simulates Backward Facing Step flow when I use conventional BCs such as defining velocity profile at inlet and fully developed condition at outlet. I have validated the results and it seems functioning correctly.
However, when I want to impose a pressure-pressure condition (both static), it only converges when a zero-gradient condition is selected for inlet. $$ @inlet: p=p_{in} \hspace{10 mm} ,\dfrac{du}{dx}=0 \hspace{10 mm}, \dfrac{dv}{dx}=0 $$ $$ @outlet: p=p_{out} \hspace{10 mm},\dfrac{du}{dx}=0 \hspace{10 mm}, \dfrac{dv}{dx}=0 $$ When I try to use mass balance to update inlet normal velocity at each iteration, the solution eventually blows up. I am integrating outflow and use the mean velocity as a uniform inlet velocity. $$ @inlet: p=p_{in} \hspace{10 mm} ,u=U_{in} \hspace{10 mm}, v=0 $$ $$ @outlet: p=p_{out} \hspace{10 mm},\dfrac{du}{dx}=0 \hspace{10 mm}, \dfrac{dv}{dx}=0 $$ where $U_{in}$ is found from last iteration mass balance.
Also I am interested to know if there is any difference to use momentum balance and mass balance to update inlet normal velocity.
Has anyone faced this problem before? I appreciate your help