Site
-
class Site : public feasst::PropertiedEntity
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
-
int type() const
Obtain the type.
-
void set_type(const int type)
Set the type.
-
void add_property(const std::string name, const double value)
Add a property with the given name and value.
-
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.
-
void set_anisotropic(const bool aniso = false)
Set if anisotropic (default: false).
-
bool is_anisotropic() const
Return true if the site is anisotropic.
-
int type() const