Reply To: Additional Force Field
OpenLB – Open Source Lattice Boltzmann Code › 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.