ModelTwoBodyFactory

class ModelTwoBodyFactory : public feasst::ModelTwoBody

Contains a collection of two body models. This allows the visitor to consider multiple two body models for each pairwise interaction.

Subclassed by feasst::ModelExpanded

Public Functions

void add(std::vector<std::shared_ptr<ModelTwoBody>> models)

Add a vector of two body models.

void add(std::shared_ptr<ModelTwoBody> model)

Add a two body model.

int num() const

Return the number of two body models.

const Model *model(const int index) const

Return a two body model by index.

void precompute(const Configuration &config)

Precompute model parameters based on existing model parameters.

void serialize(std::ostream &ostr) const

Output a serialized version of the existing model.

Arguments