Skip to content

Reply To: Additional Force Field


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.