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
Add a vector of two body models.
Add a two body model.
-
int num() const
Return the number of two body models.
-
void precompute(const ModelParams &existing)
Precompute model parameters based on existing model parameters.
-
void serialize(std::ostream &ostr) const
Output a serialized version of the existing model.
Arguments
model[i]: add the i-th model. The “[i]” is to be substituted for an integer 0, 1, 2, …
model_file: if not empty, file name that lists the ModelTwoBody (default: empty). The first line is simply ModelTwoBodyFactory. The second line is empty. The remaining lines are for creating each ModelTwoBody.