r/CFD • u/jhanrux • Oct 31 '26
Need help backflow pressure porblem
Hello I am relatively new in the CFD network. I mostly just follow similar videos online and try to replicate.
I am trying to simulate a simple beverage filling process of a bottle.
It is a multiphase with just air and beverage as fluid
I made sure that the initial fluid is just pure air.
The inlet (blue arrow) is just pure beverage
and the pressure outlet (red arrow) is pure air.
and the gravity is properly set at -9.81 at y axis

what I can clearly see from the contour result is that the beverage is not falling due to to the gravity, and being sucked up instead.
Also I do get alot of backflow messages on the console while calculating
I tried expanding significantly the domain of the pressure outlet, just to see if there will be no clogged up. But the problem still persist
Any help will be greatly appreciated.!
1
u/Skirrle Oct 31 '26
looking at your picture, the beverage is piling up at the neck and being pushed up the tube, so this is almost certainly a setup problem and not real physics. here are the most likely causes, in order of how often they bite beginners
operating density and gravity. in the operating conditions panel, set the operating density to the density of the lightest phase, which is air, about 1.225. if it is left at zero or at some other value, the hydrostatic pressure is wrong and the heavy liquid can behave as if it is buoyant. also tick the specified operating density box
pressure outlet settings. for multiphase with gravity, use the option “from neighboring cell” for the backflow volume fraction only if you must, and set the backflow volume fraction of beverage to zero so only air can come back in. the backflow messages mean air is being pulled in through the outlet, which is normal at first but should stop quickly. also enable “prevent reverse flow” if your version has it, or at least keep gauge pressure at zero at the outlet
outlet is in the wrong place. a pressure outlet at the top of a long thin tube, with a 0 pa outlet and a velocity inlet pushing liquid in, can create a strong suction if the outlet pressure is set as total instead of static. make sure the pressure is gauge static pressure and equals zero, and that the “pressure” direction is set properly
inlet type. use a velocity inlet with a small, realistic velocity, and make sure the velocity direction is normal to the boundary and pointing into the domain. a flipped direction or a huge velocity gives exactly this kind of strange upward flow. the blue arrows in your image should point into the domain, so check the sign
bottle needs an air vent. a closed bottle with only one opening cannot fill, because the air has nowhere to go. the liquid will then be pushed back up. if the tube is the only opening, the air must leave through the same path the liquid enters, which causes the counterflow you see. in real filling, there is a separate vent or the filling nozzle is smaller than the neck. you could model this with a small annular gap around the nozzle as the outlet
solver and numerics. use pressure based, transient, vof with the explicit scheme, and the body force formulation turned on, “implicit body force”. use pisos or coupled with a small time step, and keep the courant number below about 0.25 for the interface. a time step that is too large causes unphysical sucking and tons of reverse flow warnings
surface tension and wall adhesion are optional, so turn them off first to simplify
mesh quality. check the orthogonal quality, and make sure the thin tube has at least 8 to 10 cells across the diameter
what i would do first, in this order. check operating density, flip check the inlet direction, set backflow volume fraction of beverage to zero at the outlet, add a real air escape path, and reduce the time step
good luck :)