ModelTwoBody
-
class ModelTwoBody : public feasst::Model
Subclassed by feasst::ChargeScreened, feasst::ChargeScreenedIntra, feasst::Coulomb, feasst::DebyeHuckel, feasst::HardSphere, feasst::IdealGas, feasst::Jagla, feasst::LennardJones, feasst::Mie, feasst::ModelExample, feasst::ModelServer, feasst::ModelTwoBodyFactory, feasst::ModelTwoBodyTable, feasst::PairDistributionInner, feasst::SquareWell, feasst::TablePotential, feasst::TwoBodyAlpha, feasst::TwoBodyTable, feasst::Yukawa
Public Functions
-
double compute(const ModelParams &model_params, const int group_index, Configuration *config, VisitModel *visitor)
Visit the model over the entire configuration.
-
double compute(const ModelParams &model_params, Configuration *config, VisitModel *visitor)
Same as above, except the group index is assumed to be zero (which is all particles and sites in the configuration).
-
double compute(const ModelParams &model_params, const Select &selection, const int group_index, Configuration *config, VisitModel *visitor)
Visit the model over a selection of the configuration. Optionally, restrict to groups of given index, which is only relevant for multibody models (e.g., two body and not one body).
-
double compute(const ModelParams &model_params, const Select &selection, Configuration *config, VisitModel *visitor)
Same as above, except the group index is assumed to be zero (which is all particles and sites in the configuration)
-
int num_body() const
Return the number of bodies in the model (e.g., two-body/pairwise = 2).
-
double compute(const ModelParams &model_params, const int group_index, Configuration *config, VisitModel *visitor)