8 #include <mcMd/potentials/special/SpecialFactory.h> 10 #include <mcMd/simulation/System.h> 11 #include <mcMd/mdSimulation/MdSystem.h> 12 #include <mcMd/potentials/special/SpecialPotential.h> 14 #include <mcMd/potentials/special/SpecialExternal.h> 34 { subfactories_.push_back(&subfactory); }
46 ptr = tryMdSubfactories(name, system);
49 if (name ==
"SpecialExternal") {
63 int n = subfactories_.size();
64 for (
int i = 0; i < n && typePtr == 0; ++i) {
65 typePtr = subfactories_[i]->mdFactory(className, system);
Potential for testing purposes.
SpecialFactory()
Constructor.
SpecialPotential * tryMdSubfactories(const std::string &className, System &system) const
Search subfactories for match to SpecialPotential subclass name.
A set of interacting Molecules enclosed by a Boundary.
Classes used by all simpatico molecular simulations.
Specialized potential for an MD simulation.
Utility classes for scientific computation.
virtual SpecialPotential * mdFactory(const std::string &subclass, System &system) const
Return a pointer to a new SpecialPotential, if possible.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Factory for specialized subclasses of SpecialPotential.
void addSubfactory(SpecialFactory &subfactory)
Add a new subfactory to the list.
A System for Molecular Dynamics simulation.