#include <density_kernels.hh>
Inherits KernelImpl.
Inherited by ReferenceCalcDensityForceKernel.
|
static std::string | Name () |
|
This kernel is invoked by DensityForce to calculate the forces acting on the system and the energy of the system.
Definition at line 46 of file density_kernels.hh.
virtual void copyParametersToContext |
( |
OpenMM::ContextImpl & |
context, |
|
|
const DensityForce & |
force |
|
) |
| |
|
pure virtual |
virtual double execute |
( |
OpenMM::ContextImpl & |
context, |
|
|
bool |
includeForces, |
|
|
bool |
includeEnergy |
|
) |
| |
|
pure virtual |
Execute the kernel to calculate the forces and/or energy.
- Parameters
-
context | the context in which to execute this kernel |
includeForces | true if forces should be calculated |
includeEnergy | true if the energy should be calculated |
- Returns
- the potential energy due to the force
Implemented in ReferenceCalcDensityForceKernel.
virtual void initialize |
( |
const OpenMM::System & |
system, |
|
|
const DensityForce & |
force |
|
) |
| |
|
pure virtual |
static std::string Name |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: