Reply To: Implement Gravity in Shen Chen model
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 › Implement Gravity in Shen Chen model › Reply To: Implement Gravity in Shen Chen model
August 21, 2019 at 9:04 am
#4509
mgaedtke
Participant
Hi zshi,
using slatticeOne.defineExteneralField ( geometry, 1, externalforcebeginat, sizeofexternalforce, f) to set additional forces when using Shan-Chen-Model is exactly right. Note that our field externalforce is actually F/rho (acceleration), so that you don’t have any problems with variing densities. Just set the externalforce to g in lattice units and you should be fine.
Cheers,
Max
