interfoam boundary condition
quite new in Openfoam, I'm working with rasInterfoam to simulate the flow arount a cylinder in a channel.
I have an inlet with a velocity fixedValue and inletOutlet (1,1) for gamma, zeroGradient for pd.
I have walls with slip conditions
My outlet is set as:
- pressureInletOutletVelocity for velocity
- inletOutlet(1,1) for gamma
- zeroGradient for pd
My issue is:
When it comes to long times, I loose my free surface level. I still have the good inlet level but outlet is about 5m below what I want (out of 30m).
I think I don't have the same massflow at inlet and outlet (obvious), but I do not know how to solve it.
Does anyone has any idea?
Thx for reading!
Maybe you can use cyclic boundary conditions for your in- and outlet.
This bc is basically copying the inflow to the outflow and thus quaranteeing, that they are equal ...
I'm not very familiar with rasInterFoam but I've had similar mass conservation issues with my own solutions using inletOutlet and similar BC's. The inletOutlet BC does no flux correction. It is essentially a zeroGradient outlet which can switch to an inlet. I got around my problems by using fluxCorrectedVelocity BCs at the outlet. This is fine as long as you know the boundary will always act as an outlet.
Thanks, I'm going to try these.
|All times are GMT -4. The time now is 10:18.|