9#ifndef IMPISD_REPULSIVE_DISTANCE_PAIR_SCORE_H
10#define IMPISD_REPULSIVE_DISTANCE_PAIR_SCORE_H
12#include <IMP/isd/isd_config.h>
26class IMPISDEXPORT RepulsiveDistancePairScore :
public PairScore {
30 RepulsiveDistancePairScore(
double d0,
double k);
32 double get_rest_length()
const {
return x0_; }
33 double get_stiffness()
const {
return k_; }
A nullptr-initialized pointer to an IMP Object.
Decorator for a sphere-like particle.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
A repulsive potential on the distance between two atoms.
virtual double evaluate_index(Model *m, const ParticleIndexPair &p, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
Compile-time generic restraint and constraint support.
IMP::Vector< IMP::Pointer< RepulsiveDistancePairScore > > RepulsiveDistancePairScores
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_PAIR_SCORE_METHODS(Name)