Skip to content

Reply To: Setting both Density and Velocity at Boundary

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum please send a message via our contact form.

› Forums › OpenLB › General Topics › Setting both Density and Velocity at Boundary › Reply To: Setting both Density and Velocity at Boundary

#4898
mathias
Keymaster

Hi Julius,

in LBM, desity is like pressure. If you fix it on both side and fix the velocity on one side, the simulation the be unstable.

I would do it (I have done it that way actually) in the following way: Fix the desity at all inlets and set a pressure condition at the outlet OR fix velociyt + desity (by iniEquilibrium) at one side and use a convection BC at the other side.

Best
Mathias