#include "mdapi/mdtypes.h"
Go to the source code of this file.
Classes | |
struct | StepParam_t |
Parameters for configuring Step class. More... | |
struct | StepSystem_t |
Provides system data through callback. More... | |
Typedefs | |
typedef enum StepMethod_t | StepMethod |
Available methods. | |
typedef enum StepOption_t | StepOption |
Available options. | |
typedef StepSystem_t | StepSystem |
typedef StepParam_t | StepParam |
Parameters for configuring Step class. | |
typedef Step_t | Step |
Enumerations | |
enum | { STEP_FAILURE = -1, STEP_SUCCESS = 0 } |
Constant values. More... | |
enum | StepMethod_t { STEP_VERLET = 1, STEP_SHADOW, STEP_TEMPBATH, STEP_NHEXP, STEP_DRUDE_NH, STEP_DRUDE_ROUX, STEP_DRUDE_CHEN, STEP_CGMIN, STEP_METHOD_MARKER } |
Available methods. More... | |
enum | StepOption_t { STEP_INITVEL = 0x001, STEP_RESTARTVEL = 0x002, STEP_REMOVECOM = 0x004, STEP_ZEROLINMO = 0x008, STEP_SETTLE = 0x010, STEP_VIRIAL = 0x020, STEP_MOMENTUM = 0x040, STEP_FIXEDATOMS = 0x080, STEP_CONSTRAINTS = 0x100, STEP_OPTION_MARKER = 0x1FF } |
Available options. More... | |
enum | StepShadowIndex_t { STEP_SHADOW_4 = 0, STEP_SHADOW_8, STEP_SHADOW_12, STEP_SHADOW_16, STEP_SHADOW_20, STEP_SHADOW_24, STEP_SHADOW_MAXINDEX } |
For indexing StepSystem_t::shadow_energy . More... | |
Functions | |
Step * | new_Step (void) |
Constructor. | |
void | delete_Step (Step *) |
Destructor. | |
int | step_setup (Step *, StepParam *param, MD_Dvec *pos, MD_Dvec *vel, MD_Dvec *force) |
Setup. | |
int | step_compute (Step *, int32 numsteps) |
Performs the time stepping. | |
const char * | step_errmsg (Step *) |
Error message. | |
void | step_cleanup (Step *) |
Cleanup. |
Step_t
class performs time integration or energy minimization of a system of atoms. Choose between various methods: StepParam_t
structure is setup by the caller to configure the Step_t
class. Three callback functions are required: one providing force evaluation to Step_t
for given positions, one collecting data from Step_t
at the end of a step, and one receiving text output.
The data collection callback receives a StepSystem_t
structure that contains (among other things) current positions, velocities, and energy reductions.
The units are as outlined by the MDAPI documentation:
|
Parameters for configuring Step class. User must provide values where appropriate, depending on selected method. Must provide callbacks. Retains ownership of topology and force field arrays. |
|
Constant values.
|
|
|
Available options.
|
|
For indexing
|
|
Cleanup.
Call this to clean up internal state of |
|
Performs the time stepping.
StepParam_t::compute_force() routine account for the majority of the computational cost.
|
|
Error message.
Provide text error message; call if an error is returned by another |
|
Setup.
Step_t object. Must be called before Step_t::step_compute() . Initial positions must be provided. The other two arrays can be optionally assigned NULL. (If vel is not provided, then the initial velocities are assigned from the initial temperature distribution indicated in StepParam_t , no matter the value of StepParam_t::option .)Caller is responsible for memory management for any provided arrays.
|