ModelServer

class ModelServer : public feasst::ModelTwoBody

Establish a server to obtain the interaction potential from a client. The client receives byte strings which are the following three csv,

squared_distance, type1, type2

where the squared_distance is the square of the distance between the centers of two sites, and the types are the types of the sites (see Configuration).

Public Functions

double hard_sphere_threshold() const

Return the threshold for hard sphere interaction.

void serialize(std::ostream &ostr) const

Output a serialized version of the existing model.

Arguments

  • hard_sphere_threshold: when r < threshold*sigma, return NEAR_INFINITY (default: 0.2).

  • Server arguments.