ModelTableCart1DHard
-
class ModelTableCart1DHard : public feasst::ModelOneBody
A tabular potential for a hard surface based on x,y cartesian coordinates. Assumes symmetry along the x plane and that the Domain has no tilt.
Public Functions
-
void compute_table(Shape *shape, Domain *domain, Random *random, argtype args = argtype(), const int site_type = 0)
Generate the table by finding where the point is inside the shape and the nearest distance to the surface is half of the diameter. The initial bounds are [0, L/2] inclusive, assuming a plane (or line) of symmetry at origin perpendicular to y axis.
args:
diameter: diameter of the sphere (default: 1)
-
double energy(const Position &wrapped_site, const Site &site, const Configuration &config, const ModelParams &model_params)
Return the energy given the wrapped coordinates, site, config and params.
-
void serialize(std::ostream &ostr) const
Output a serialized version of the existing model.
-
void compute_table(Shape *shape, Domain *domain, Random *random, argtype args = argtype(), const int site_type = 0)