class VisitModelCell : public feasst::VisitModel

Compute many-body inter-particle interactions using a cell list.

Public Functions

VisitModelCell(std::shared_ptr<VisitModelInner> inner, argtype args)

Same as above, but with an inner.

const Cells &cells() const

Return the cells.

int cell_id(const Domain &domain, const Position &position) const

Return the unique cell number for the position.

int cell_id_opt_(const Domain &domain, const Position &position)

Same as above, but optimized.

void precompute(Configuration *config)

Same as base class, but also prepare the cells.

void change_volume(const double delta_volume, const int dimension, Configuration *config)

Change the volume.


  • min_length: build cell list with given minimum distance between cells as a floating point number. If “max_sigma” then use the largest mixed sigma value. If “max_cutoff” then use the largest mixed cutoff value.

  • cell_group_index: compute cells only in given group index (default: 0).

  • cell_group: as above, but use the name of the group, not the index. Do not use at the same time as cell_group_index (default: “”).

  • VisitModel arguments.