class Site : public feasst::PropertiedEntity, public feasst::TypedEntity, public feasst::SpatialEntity

Sites are used for interaction potentials. They contain information associated with their positions and identity. This Site base class contains only those site properties which are unique to this particular site and not the same for every site of the same type.

Public Functions

Site(const Position position)

Construct with a position.

void displace(const Position displacement)

Displace the Position of the Site.

bool is_director() const

Return true if the site is a director. These are used, for example, by patchy models.

void add_property(const std::string name, const double value)

Assign as director if a site has a property named director.

bool is_physical() const

Return true if the site is physically present. These are used, for example, in particle regrowth.

void set_physical(const bool physical = true)

Set as physical/nonphysical (default: physical).

void add_cell(const int cell)

Add a cell.

void set_cell(const int index, const int cell)

Set a cell.

int cell(const int index) const

Return a cell.

int num_cells() const

Return the number of cells.