Reply To: Setting both Density and Velocity at Boundary
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Setting both Density and Velocity at Boundary › Reply To: Setting both Density and Velocity at Boundary
April 2, 2020 at 2:23 pm
#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