They are the sphincter muscles, they regulate the flow of food from the stomach to the next part. When the food is in the process of digestion, it cannot be transferred forward, at that time the muscles are closed and do not allow the passage of food. But when the food gets digested, they get open allow the food to move forward very slowly so that you do not feel hungry again.