class ModelHardShape : public feasst::ModelOneBody, public feasst::ShapedEntity

Create a cavity of a given shape, where the potential energy outside of the shape is infinite.

Public Functions

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.