class rgpot::EAMPot¶
Overview¶
class EAMPot: public rgpot::Potential< EAMPot > {
public:
// structs
struct Impl;
// construction
EAMPot();
EAMPot(const EAMCellConfig&);
EAMPot(const EAMPot&);
~EAMPot();
// methods
EAMPot& operator=(const EAMPot&);
virtual PotCaps caps() const;
virtual uint64_t paramsKey() const;
std::uint64_t listBuilds() const;
std::size_t neighborSlots() const;
bool listReused() const;
std::size_t streamPartners() const;
int threadsUsed() const;
void setNeighbourMode(nlist::Mode mode);
void forceImpl(const ForceInput& in, ForceOut* out) const;
};
Detailed Documentation¶
Methods¶
virtual PotCaps caps() const
Concurrency and evaluation capabilities of this potential.
Multi-threaded callers (NEB images, dimer endpoints) derive their sharing and cloning policy from this instead of hard-coded lists.
virtual uint64_t paramsKey() const
Fingerprint of the potential’s parameter set.
Mixed into the result-cache key so results never cross parameter sets. Implementations hash their config field by field (see ParamHash.hpp) plus a kernel-version salt that changes whenever the numerics change. The default (0) suits parameter-free potentials whose numerics never changed.
std::uint64_t listBuilds() const
Neighbour-list builds. A second call on a geometry inside the Verlet skin does not increment this.
std::size_t neighborSlots() const
Stored neighbour indices after the last build.
bool listReused() const
True when the last force call reused the Verlet list.
std::size_t streamPartners() const
Partner indices kept between EAM stream passes. The density-only stream keeps none.
int threadsUsed() const
Threads used by the most recent force call.
void setNeighbourMode(nlist::Mode mode)
Stored Verlet list or a streaming cell walk. Auto follows the memory available to the process.