ModelExpanded
-
class ModelExpanded : public feasst::ModelTwoBodyFactory
Contains a collection of two body models. This allows the visitor to consider multiple two body models for each pairwise interaction.
Public Functions
-
int model_index() const
Return the index of the model.
-
void set_model_index(const int index)
Set the index of the model.
-
double energy(const double squared_distance, const int type1, const int type2, const ModelParams &model_params)
Return the energy of only the model with the particular index.
-
void serialize(std::ostream &ostr) const
Output a serialized version of the existing model.
Arguments
model_index: index of current model (default: 0).
ModelTwoBodyFactory arguments.
-
int model_index() const