Reply To: Additional Force Field
Due to recent bot attacks we have chanced 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 › on OpenLB › General Topics › Additional Force Field › Reply To: Additional Force Field
September 4, 2023 at 9:59 am
#7721
Adrian
Keymaster
You can add a force field by declaring that you want a force field, i.e. by adding the descriptors::FORCE type to your descriptor (or just FORCE in your case as you seem to be including the descriptors namespace already).
After this you can set the field as any other field (using e.g. SuperLattice::defineField – strictly speaking you don’t even need to add the field to the descriptor, this is mainly for documentation).
Finally you’ll need to select appropriate forced dynamics for your per-cell models.
