Skip to content

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