Reply To: microFluidics2d: Including gravity
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › microFluidics2d: Including gravity › Reply To: microFluidics2d: Including gravity
January 15, 2024 at 9:52 am
#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