Skip to content

Reply To: ShanChen multicomponents + outflow boundary

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics ShanChen multicomponents + outflow boundary Reply To: ShanChen multicomponents + outflow boundary

#7630
TimBingert
Participant

Hi Marie!

The boundary conditions that you used for the outflow should work. When setting boundary conditions while using a multi-component/multi-phase force like Shan-Chen, make sure that your boundary nodes have an appropriate component/fluid density or pseudopotential.
For example, the default value for a component density on a boundary node is zero which can cause problems in some pseudopotential functions (these you can look up in /src/dynamics/interactionPotential.h).
This is also the reason, why there are boundary conditions defined specifically for the freeEnergy model.
Hope, this helps a bit and just ask again in case you got another question.

Kind regards
Tim