Skip to content

Reply To: microFluidics2d: Including gravity

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 microFluidics2d: Including gravity Reply To: microFluidics2d: Including gravity

#8123
TimBingert
Participant

Hi Callum!

In the line where the Descriptor is set, you have to include the Field “EXTERNAL_FORCE” like this:
typedef D2Q9<CHEM_POTENTIAL,FORCE,EXTERNAL_FORC> DESCRIPTOR;
This field will be added to the multi-phase force in the free energy post-processor, just fyi. In the “prepareLattice” method, you can now initialize the external force field with the desired gravitational acceleration.

Hope this helps, kind regards
Tim