#include "mdapi/mdtypes.h"
#include "force/fparam.h"
Go to the source code of this file.
Classes | |
struct | ForceSelect_t |
Atom and bond selection object. More... | |
Typedefs | |
typedef ForceSelect_t | ForceSelect |
Atom and bond selection object. | |
Enumerations | |
enum | ForceSelectFlags_t { FORCE_SELECT_ALL = -1, FORCE_SELECT_NONE = 0, FORCE_SELECT_BOND = 0x001, FORCE_SELECT_ANGLE = 0x002, FORCE_SELECT_DIHED = 0x004, FORCE_SELECT_IMPR = 0x008, FORCE_SELECT_ASET = 0x010, FORCE_SELECT_BSET = 0x020, FORCE_SELECT_BRES = 0x040, FORCE_SELECT_MASK = 0x07f } |
Functions | |
ForceSelect * | force_select_create (ForceParam *fprm, int32 *bond_sel, int32 bond_sel_len, int32 *angle_sel, int32 angle_sel_len, int32 *dihed_sel, int32 dihed_sel_len, int32 *impr_sel, int32 impr_sel_len, int32 *aset_sel, int32 aset_sel_len, int32 *bset_sel, int32 bset_sel_len, int32 *bres_sel, int32 bres_sel_len) |
Constructor. | |
void | force_select_destroy (ForceSelect *) |
Destructor. | |
int | force_select_initialize (ForceSelect *, ForceParam *fprm, int32 *bond_sel, int32 bond_sel_len, int32 *angle_sel, int32 angle_sel_len, int32 *dihed_sel, int32 dihed_sel_len, int32 *impr_sel, int32 impr_sel_len, int32 *aset_sel, int32 aset_sel_len, int32 *bset_sel, int32 bset_sel_len, int32 *bres_sel, int32 bres_sel_len) |
Alternative constructor. | |
void | force_select_cleanup (ForceSelect *) |
Alternative destructor. | |
void | force_select_reset_force (MD_Dvec f[], const int32 sel[], int32 len) |
Reset selected components of a force array (type MD_Dvec ). | |
void | force_select_reset_potential (double e[], const int32 sel[], int32 len) |
Reset selected components of a potential array (type double ). |
ForceSelect_t
class selects which atom and bond terms to compute during force evaluation. Use of this class is optional. The default selection (i.e. this class is not used) is all atoms and bonds evaluated for force computation, as designated by the ForceParam_t
flags.
|
Atom and bond selection object.
The bonded interaction arrays are given per bond, not per atom. The |
|
|
|
Alternative destructor.
Use this to destroy a preallocated |
|
Constructor.
ForceSelect_t object used to select atom and bond terms for computation. Each integer array provides a set of indices into a corresponding array of bonds for bonded interactions or of atoms for pairwise interactions and boundary restraints. These arrays must persist until the ForceSelect_t object is destroyed. Choose the entire set of indices by passing NULL with FORCE_SELECT_ALL for array and length, respectively, or choose no indices by passing NULL with FORCE_SELECT_NONE .
The atom selection for pairwise interactions allows the computation of forces and potentials between two nonempty, disjoint subsets of atoms. This computes the forces and potentials of a subset A of atoms acting on a subset B of atoms (and vice versa). This computation is enabled by passing the first set of atom selection indices as
The determination of which force and energy terms are computed is specified by
|
|
Destructor.
Clears memory and destroys the dynamically allocated |
|
Alternative constructor.
Use this to construct a preallocated
|