25#ifndef _WRAPS_C_TFCFORCE_H_
26#define _WRAPS_C_TFCFORCE_H_
39 unsigned int FORCE_FORCE;
40 unsigned int FORCE_BERENDSEN;
41 unsigned int FORCE_GAUSSIAN;
42 unsigned int FORCE_FRICTION;
43 unsigned int FORCE_SUM;
44 unsigned int FORCE_CUSTOM;
Handle to a Berendsen instance.
Definition tfCForce.h:83
Handle to a CustomForce instance.
Definition tfCForce.h:75
Handle to a FORCE_TYPE instance.
Definition tfCForce.h:38
Handle to a Force instance.
Definition tfCForce.h:59
Handle to a ForceSum instance.
Definition tfCForce.h:67
Handle to a Friction instance.
Definition tfCForce.h:99
Handle to a Gaussian instance.
Definition tfCForce.h:91
Handle to a ParticleType instance.
Definition tfCParticle.h:119
Handle to a UserForceFuncType instance.
Definition tfCForce.h:51
HRESULT tfForce_toString(struct tfForceHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfBerendsen_init(struct tfBerendsenHandle *handle, tfFloatP_t tau)
Creates a Berendsen thermostat.
HRESULT tfForce_getType(struct tfForceHandle *handle, unsigned int *te)
Get the force type.
HRESULT tfForce_EvalFcn_init(struct tfUserForceFuncTypeHandle *handle, tfUserForceFuncTypeHandleFcn *fcn)
Initialize an instance.
HRESULT tfForce_bind_species(struct tfForceHandle *handle, struct tfParticleTypeHandle *a_type, const char *coupling_symbol)
Bind a force to a species.
HRESULT tfForce_fromString(struct tfForceHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfCustomForce_setPeriod(struct tfCustomForceHandle *handle, tfFloatP_t period)
Set force period.
HRESULT tfCustomForce_getPeriod(struct tfCustomForceHandle *handle, tfFloatP_t *period)
Get force period.
HRESULT tfCustomForce_setValue(struct tfCustomForceHandle *handle, tfFloatP_t *force)
Set current force value.
HRESULT tfFriction_fromBase(struct tfForceHandle *baseHandle, struct tfFrictionHandle *handle)
Cast from base force. Fails if instance is not of this type.
HRESULT tfCustomForce_setFunction(struct tfCustomForceHandle *handle, struct tfUserForceFuncTypeHandle *fcn)
Set force function.
HRESULT tfForce_EvalFcn_destroy(struct tfUserForceFuncTypeHandle *handle)
Destroy an instance.
HRESULT tfCustomForce_checkType(struct tfForceHandle *handle, bool *isType)
Check whether a base handle is of this force type.
HRESULT tfCustomForce_init(struct tfCustomForceHandle *handle, struct tfUserForceFuncTypeHandle *func, tfFloatP_t period)
Create a custom force with a force function.
HRESULT tfGaussian_setMean(struct tfGaussianHandle *handle, tfFloatP_t mean)
Set the magnitude mean.
HRESULT tfBerendsen_getTimeConstant(struct tfBerendsenHandle *handle, tfFloatP_t *tau)
Get the time constant.
HRESULT tfGaussian_toBase(struct tfGaussianHandle *handle, struct tfForceHandle *baseHandle)
Cast to base force.
HRESULT tfFriction_toBase(struct tfFrictionHandle *handle, struct tfForceHandle *baseHandle)
Cast to base force.
HRESULT tfFORCE_TYPE_init(struct tfFORCE_TYPEHandle *handle)
Initialize an instance.
HRESULT tfCustomForce_toBase(struct tfCustomForceHandle *handle, struct tfForceHandle *baseHandle)
Cast to base force.
HRESULT tfGaussian_init(struct tfGaussianHandle *handle, tfFloatP_t std, tfFloatP_t mean, tfFloatP_t duration)
Creates a random force.
HRESULT tfFriction_getCoef(struct tfFrictionHandle *handle, tfFloatP_t *coef)
Get the friction coefficient.
HRESULT tfForce_destroy(struct tfForceHandle *handle)
Destroy an instance.
HRESULT tfBerendsen_fromBase(struct tfForceHandle *baseHandle, struct tfBerendsenHandle *handle)
Cast from base force. Fails if instance is not of this type.
HRESULT tfForceSum_checkType(struct tfForceHandle *handle, bool *isType)
Check whether a base handle is of this force type.
HRESULT tfGaussian_getStd(struct tfGaussianHandle *handle, tfFloatP_t *std)
Get the magnitude standard deviation.
HRESULT tfGaussian_setStd(struct tfGaussianHandle *handle, tfFloatP_t std)
Set the magnitude standard deviation.
HRESULT tfCustomForce_fromBase(struct tfForceHandle *baseHandle, struct tfCustomForceHandle *handle)
Cast from base force. Fails if instance is not of this type.
HRESULT tfFriction_checkType(struct tfForceHandle *handle, bool *isType)
Check whether a base handle is of this force type.
HRESULT tfGaussian_getDuration(struct tfGaussianHandle *handle, tfFloatP_t *duration)
Get the magnitude duration.
HRESULT tfCustomForce_getValue(struct tfCustomForceHandle *handle, tfFloatP_t **force)
Get current force value.
HRESULT tfGaussian_checkType(struct tfForceHandle *handle, bool *isType)
Check whether a base handle is of this force type.
HRESULT tfGaussian_setDuration(struct tfGaussianHandle *handle, tfFloatP_t duration)
Set the magnitude duration.
HRESULT tfFriction_init(struct tfFrictionHandle *handle, tfFloatP_t coeff)
Creates a friction force.
HRESULT tfFriction_setCoef(struct tfFrictionHandle *handle, tfFloatP_t coef)
Set the friction coefficient.
HRESULT tfForceSum_toBase(struct tfForceSumHandle *handle, struct tfForceHandle *baseHandle)
Cast to base force.
HRESULT tfForceSum_getConstituents(struct tfForceSumHandle *handle, struct tfForceHandle *f1, struct tfForceHandle *f2)
Get the constituent forces.
HRESULT tfGaussian_fromBase(struct tfForceHandle *baseHandle, struct tfGaussianHandle *handle)
Cast from base force. Fails if instance is not of this type.
HRESULT tfBerendsen_setTimeConstant(struct tfBerendsenHandle *handle, tfFloatP_t tau)
Set the time constant.
HRESULT tfBerendsen_toBase(struct tfBerendsenHandle *handle, struct tfForceHandle *baseHandle)
Cast to base force.
HRESULT tfCustomForce_getLastUpdate(struct tfCustomForceHandle *handle, tfFloatP_t *lastUpdate)
Get time of last force update.
HRESULT tfGaussian_getMean(struct tfGaussianHandle *handle, tfFloatP_t *mean)
Get the magnitude mean.
HRESULT tfForceSum_fromBase(struct tfForceHandle *baseHandle, struct tfForceSumHandle *handle)
Cast from base force. Fails if instance is not of this type.
HRESULT tfForce_add(struct tfForceHandle *f1, struct tfForceHandle *f2, struct tfForceSumHandle *fSum)
Add two forces.
HRESULT tfBerendsen_checkType(struct tfForceHandle *handle, bool *isType)
Check whether a base handle is of this force type.