Hello all I am simulating a peristaltic wave in a tube. I want to apply the inlet boundary condition as following: inlet is open and when the pressure at the inlet drops to some certain amount it closes (velocity=0, wall) and for the outlet: the oulet is closed (velocity=0, wall) when the pressure reaches to a cerain amount, it opens the outlet. Can you please help me to solve this problem?
Thank you