autodoxyclass¶
Input¶
The autodoxyclass directive will insert the docstring of the class:
.. autodoxyclass:: OpenMM::Force
which produces something like
.. :cpp:class:: OpenMM::Force
Force's documentation.
If you want to automatically document members, there is a members option:
.. autodoxyclass:: OpenMM::Force
:members:
which will automatically insert documentation for each of the members.
You can also add content to the directive which will appear after the class docstring but before the methods, like a summary table.
.. autodoxyclass:: OpenMM::Force
:members:
.. rubric:: Methods
.. autodoxysummary::
~OpenMM::Force::getForceGroup
~OpenMM::Force::setForceGroup
~OpenMM::Force::usesPeriodicBoundaryConditions
Output¶
.. autodoxyclass:: OpenMM::Platform
-
class
OpenMM::Platform¶ A
Platformdefines an implementation of all the kernels needed to perform some calculation. More precisely, aPlatformobject acts as a registry for a set of KernelFactory objects which together implement the kernels. ThePlatformclass, in turn, provides a static registry of all availablePlatformobjects.To get a
Platformobject, callPlatform& platform Platform::findPlatform(kernelNames);
passing in the names of all kernels that will be required for the calculation you plan to perform. It will return the fastest available
Platformwhich provides implementations of all the specified kernels. You can then callcreateKernel()to construct particular kernels as needed.
.. autodoxyclass:: OpenMM::Integrator
:members:
-
class
OpenMM::Integrator¶ An
Integratordefines a method for simulating aSystemby integrating the equations of motion. This is an abstract class. Subclasses define particular integration methods.Each
Integratorobject is bound to a particularContextwhich it integrates. This connection is specified by passing theIntegratoras an argument to the constructor of theContext.-
Integrator()¶
-
~Integrator()¶
-
double
getStepSize() const¶ Get the size of each time step, in picoseconds. If this integrator uses variable time steps, the size of the most recent step is returned.
Returns: the step size, measured in ps
-
void
setStepSize(double size)¶ Set the size of each time step, in picoseconds. If this integrator uses variable time steps, the effect of calling this method is undefined, and it may simply be ignored.
Parameters: - size – the step size, measured in ps
-
double
getConstraintTolerance() const¶ Get the distance tolerance within which constraints are maintained, as a fraction of the constrained distance.
-
void
setConstraintTolerance(double tol)¶ Set the distance tolerance within which constraints are maintained, as a fraction of the constrained distance.
-
void
step(int steps) = 0¶ Advance a simulation through time by taking a series of time steps.
Parameters: - steps – the number of time steps to take
-
.. autodoxyclass:: OpenMM::Force
:members:
.. rubric:: Methods
.. autodoxysummary::
~OpenMM::Force::getForceGroup
~OpenMM::Force::setForceGroup
~OpenMM::Force::usesPeriodicBoundaryConditions
-
class
OpenMM::Force¶ Forceobjects apply forces to the particles in aSystem, or alter their behavior in other ways. This is an abstract class. Subclasses define particular forces.More specifically, a
Forceobject can do any or all of the following:- Add a contribution to the force on each particle
- Add a contribution to the potential energy of the
System - Modify the positions and velocities of particles at the start of each time step
- Define parameters which are stored in the
Contextand can be modified by the user - Change the values of parameters defined by other
Forceobjects at the start of each time step
Forces may be organized into “force groups”. This is used for multiple time step integration, and allows subsets of the Forces in a
Systemto be evaluated at different times. By default, all Forces are in group 0. CallsetForceGroup()to change this. SomeForcesubclasses may provide additional methods to further split their computations into multiple groups. Be aware that particular Platforms may place restrictions on the use of force groups, such as requiring all nonbonded forces to be in the same group.Methods
getForceGroupGet the force group this Forcebelongs to.setForceGroupSet the force group this Forcebelongs to.usesPeriodicBoundaryConditionsReturns whether or not this force makes use of periodic boundary conditions. -
Force()¶
-
~Force()¶