|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfBondHandleHandle |
| Handle to a BondHandle instance. More... | |
| struct | tfAngleHandleHandle |
| Handle to a AngleHandle instance. More... | |
| struct | tfDihedralHandleHandle |
| Handle to a DihedralHandle instance. More... | |
Functions | |
| HRESULT | tfBondHandle_init (struct tfBondHandleHandle *handle, unsigned int id) |
| Construct a new bond handle from an existing bond id. | |
| HRESULT | tfBondHandle_create (struct tfBondHandleHandle *handle, struct tfPotentialHandle *potential, struct tfParticleHandleHandle *i, struct tfParticleHandleHandle *j) |
| Construct a new bond handle and underlying bond. | |
| HRESULT | tfBondHandle_getId (struct tfBondHandleHandle *handle, int *id) |
| Get the id. Returns -1 if the underlying bond is invalid. | |
| HRESULT | tfBondHandle_str (struct tfBondHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a summary string of the bond. | |
| HRESULT | tfBondHandle_check (struct tfBondHandleHandle *handle, bool *flag) |
| Check the validity of the handle. | |
| HRESULT | tfBondHandle_destroy (struct tfBondHandleHandle *handle) |
| Destroy the bond. | |
| HRESULT | tfBondHandle_decays (struct tfBondHandleHandle *handle, bool *flag) |
| Tests whether this bond decays. | |
| HRESULT | tfBondHandle_hasPartId (struct tfBondHandleHandle *handle, int pid, bool *result) |
| Test whether the bond has an id. | |
| HRESULT | tfBondHandle_hasPart (struct tfBondHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result) |
| Test whether the bond has a particle. | |
| HRESULT | tfBondHandle_getEnergy (struct tfBondHandleHandle *handle, tfFloatP_t *value) |
| Get the current energy of the bond. | |
| HRESULT | tfBondHandle_getParts (struct tfBondHandleHandle *handle, int *parti, int *partj) |
| Get the ids of the particles of the bond. | |
| HRESULT | tfBondHandle_getPartList (struct tfBondHandleHandle *handle, struct tfParticleListHandle *plist) |
| Get a list of the particles of the bond. | |
| HRESULT | tfBondHandle_getPotential (struct tfBondHandleHandle *handle, struct tfPotentialHandle *potential) |
| Get the potential of the bond. | |
| HRESULT | tfBondHandle_getDissociationEnergy (struct tfBondHandleHandle *handle, tfFloatP_t *value) |
| Get the dissociation energy. | |
| HRESULT | tfBondHandle_setDissociationEnergy (struct tfBondHandleHandle *handle, tfFloatP_t value) |
| Set the dissociation energy. | |
| HRESULT | tfBondHandle_getHalfLife (struct tfBondHandleHandle *handle, tfFloatP_t *value) |
| Get the half life. | |
| HRESULT | tfBondHandle_setHalfLife (struct tfBondHandleHandle *handle, tfFloatP_t value) |
| Set the half life. | |
| HRESULT | tfBondHandle_setActive (struct tfBondHandleHandle *handle, bool flag) |
| Set whether a bond is active. | |
| HRESULT | tfBondHandle_getStyle (struct tfBondHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Get the bond style. | |
| HRESULT | tfBondHandle_setStyle (struct tfBondHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Set the bond style. | |
| HRESULT | tfBondHandle_getStyleDef (struct tfRenderingStyleHandle *style) |
| Get the default bond style. | |
| HRESULT | tfBondHandle_getAge (struct tfBondHandleHandle *handle, tfFloatP_t *value) |
| Get the age of the bond. | |
| HRESULT | tfBondHandle_toString (struct tfBondHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfBondHandle_fromString (struct tfBondHandleHandle *handle, const char *str) |
| Create from a JSON string representation. | |
| HRESULT | tfBondHandle_lt (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_gt (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_le (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_ge (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_eq (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_ne (struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_init (struct tfAngleHandleHandle *handle, unsigned int id) |
| Construct a new angle handle from an existing angle id. | |
| HRESULT | tfAngleHandle_create (struct tfAngleHandleHandle *handle, struct tfPotentialHandle *potential, struct tfParticleHandleHandle *i, struct tfParticleHandleHandle *j, struct tfParticleHandleHandle *k) |
| Construct a new angle handle and underlying angle. | |
| HRESULT | tfAngleHandle_str (struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a summary string of the angle. | |
| HRESULT | tfAngleHandle_check (struct tfAngleHandleHandle *handle, bool *flag) |
| Check the validity of the handle. | |
| HRESULT | tfAngleHandle_destroy (struct tfAngleHandleHandle *handle) |
| Destroy the angle. | |
| HRESULT | tfAngleHandle_decays (struct tfAngleHandleHandle *handle, bool *flag) |
| Tests whether this angle decays. | |
| HRESULT | tfAngleHandle_hasPartId (struct tfAngleHandleHandle *handle, int pid, bool *result) |
| Test whether the bond has an id. | |
| HRESULT | tfAngleHandle_hasPart (struct tfAngleHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result) |
| Test whether the bond has a particle. | |
| HRESULT | tfAngleHandle_getEnergy (struct tfAngleHandleHandle *handle, tfFloatP_t *value) |
| Get the current energy of the angle. | |
| HRESULT | tfAngleHandle_getParts (struct tfAngleHandleHandle *handle, int *parti, int *partj) |
| Get the ids of the particles of the angle. | |
| HRESULT | tfAngleHandle_getPartList (struct tfAngleHandleHandle *handle, struct tfParticleListHandle *plist) |
| Get a list of the particles of the angle. | |
| HRESULT | tfAngleHandle_getPotential (struct tfAngleHandleHandle *handle, struct tfPotentialHandle *potential) |
| Get the potential of the angle. | |
| HRESULT | tfAngleHandle_getDissociationEnergy (struct tfAngleHandleHandle *handle, tfFloatP_t *value) |
| Get the dissociation energy. | |
| HRESULT | tfAngleHandle_setDissociationEnergy (struct tfAngleHandleHandle *handle, tfFloatP_t value) |
| Set the dissociation energy. | |
| HRESULT | tfAngleHandle_getHalfLife (struct tfAngleHandleHandle *handle, tfFloatP_t *value) |
| Get the half life. | |
| HRESULT | tfAngleHandle_setHalfLife (struct tfAngleHandleHandle *handle, tfFloatP_t value) |
| Set the half life. | |
| HRESULT | tfAngleHandle_setActive (struct tfAngleHandleHandle *handle, bool flag) |
| Set whether a angle is active. | |
| HRESULT | tfAngleHandle_getStyle (struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Get the angle style. | |
| HRESULT | tfAngleHandle_setStyle (struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Set the angle style. | |
| HRESULT | tfAngleHandle_getStyleDef (struct tfRenderingStyleHandle *style) |
| Get the angle style. | |
| HRESULT | tfAngleHandle_getAge (struct tfAngleHandleHandle *handle, tfFloatP_t *value) |
| Get the age of the angle. | |
| HRESULT | tfAngleHandle_toString (struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfAngleHandle_fromString (struct tfAngleHandleHandle *handle, const char *str) |
| Create from a JSON string representation. | |
| HRESULT | tfAngleHandle_lt (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_gt (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_le (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_ge (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_eq (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfAngleHandle_ne (struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_init (struct tfDihedralHandleHandle *handle, unsigned int id) |
| Construct a new dihedral handle from an existing dihedral id. | |
| HRESULT | tfDihedralHandle_create (struct tfDihedralHandleHandle *handle, struct tfPotentialHandle *potential, struct tfParticleHandleHandle *i, struct tfParticleHandleHandle *j, struct tfParticleHandleHandle *k, struct tfParticleHandleHandle *l) |
| Construct a new dihedral handle and underlying dihedral. | |
| HRESULT | tfDihedralHandle_str (struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a summary string of the dihedral. | |
| HRESULT | tfDihedralHandle_check (struct tfDihedralHandleHandle *handle, bool *flag) |
| Check the validity of the handle. | |
| HRESULT | tfDihedralHandle_destroy (struct tfDihedralHandleHandle *handle) |
| Destroy the angle. | |
| HRESULT | tfDihedralHandle_decays (struct tfDihedralHandleHandle *handle, bool *flag) |
| Tests whether this dihedral decays. | |
| HRESULT | tfDihedralHandle_hasPartId (struct tfDihedralHandleHandle *handle, int pid, bool *result) |
| Test whether the bond has an id. | |
| HRESULT | tfDihedralHandle_hasPart (struct tfDihedralHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result) |
| Test whether the bond has a particle. | |
| HRESULT | tfDihedralHandle_getEnergy (struct tfDihedralHandleHandle *handle, tfFloatP_t *value) |
| Get the current energy of the dihedral. | |
| HRESULT | tfDihedralHandle_getParts (struct tfDihedralHandleHandle *handle, int *parti, int *partj) |
| Get the ids of the particles of the dihedral. | |
| HRESULT | tfDihedralHandle_getPartList (struct tfDihedralHandleHandle *handle, struct tfParticleListHandle *plist) |
| Get a list of the particles of the dihedral. | |
| HRESULT | tfDihedralHandle_getPotential (struct tfDihedralHandleHandle *handle, struct tfPotentialHandle *potential) |
| Get the potential of the dihedral. | |
| HRESULT | tfDihedralHandle_getDissociationEnergy (struct tfDihedralHandleHandle *handle, tfFloatP_t *value) |
| Get the dissociation energy. | |
| HRESULT | tfDihedralHandle_setDissociationEnergy (struct tfDihedralHandleHandle *handle, tfFloatP_t value) |
| Set the dissociation energy. | |
| HRESULT | tfDihedralHandle_getHalfLife (struct tfDihedralHandleHandle *handle, tfFloatP_t *value) |
| Get the half life. | |
| HRESULT | tfDihedralHandle_setHalfLife (struct tfDihedralHandleHandle *handle, tfFloatP_t value) |
| Set the half life. | |
| HRESULT | tfDihedralHandle_setActive (struct tfDihedralHandleHandle *handle, bool flag) |
| Set whether a dihedral is active. | |
| HRESULT | tfDihedralHandle_getStyle (struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Get the dihedral style. | |
| HRESULT | tfDihedralHandle_setStyle (struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style) |
| Set the dihedral style. | |
| HRESULT | tfDihedralHandle_getStyleDef (struct tfRenderingStyleHandle *style) |
| Get the dihedral style. | |
| HRESULT | tfDihedralHandle_getAge (struct tfDihedralHandleHandle *handle, tfFloatP_t *value) |
| Get the age of the dihedral. | |
| HRESULT | tfDihedralHandle_toString (struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfDihedralHandle_fromString (struct tfDihedralHandleHandle *handle, const char *str) |
| Create from a JSON string representation. | |
| HRESULT | tfDihedralHandle_lt (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_gt (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_le (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_ge (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_eq (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfDihedralHandle_ne (struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result) |
| HRESULT | tfBondHandle_getAll (struct tfBondHandleHandle **handles, unsigned int *numBonds) |
| Gets all bonds in the universe. | |
| HRESULT | tfBond_pairwise (struct tfPotentialHandle *pot, struct tfParticleListHandle *parts, tfFloatP_t cutoff, struct tfParticleTypeHandle *ppairsA, struct tfParticleTypeHandle *ppairsB, unsigned int numTypePairs, tfFloatP_t *half_life, tfFloatP_t *bond_energy, struct tfBondHandleHandle **bonds, unsigned int *numBonds) |
| Apply bonds to a list of particles. | |
| HRESULT | tfBond_getIdsForParticle (unsigned int pid, unsigned int **bids, unsigned int *numIds) |
| Find all the bonds that interact with the given particle id. | |
| HRESULT | tfBond_destroyAll () |
| Deletes all bonds in the universe. | |
| HRESULT | tfAngleHandle_getAll (struct tfAngleHandleHandle **handles, unsigned int *numBonds) |
| Gets all bonds in the universe. | |
| HRESULT | tfAngle_getIdsForParticle (unsigned int pid, unsigned int **bids, unsigned int *numIds) |
| Find all the bonds that interact with the given particle id. | |
| HRESULT | tfAngle_destroyAll () |
| Deletes all bonds in the universe. | |
| HRESULT | tfDihedralHandle_getAll (struct tfDihedralHandleHandle **handles, unsigned int *numBonds) |
| Gets all bonds in the universe. | |
| HRESULT | tfDihedral_getIdsForParticle (unsigned int pid, unsigned int **bids, unsigned int *numIds) |
| Find all the bonds that interact with the given particle id. | |
| HRESULT | tfDihedral_destroyAll () |
| Deletes all bonds in the universe. | |
| HRESULT tfAngle_destroyAll | ( | ) |
Deletes all bonds in the universe.
Automatically updates when running on a CUDA device.
| HRESULT tfAngle_getIdsForParticle | ( | unsigned int | pid, |
| unsigned int ** | bids, | ||
| unsigned int * | numIds ) |
Find all the bonds that interact with the given particle id.
| pid | particle id |
| bids | bond ids |
| numIds | number of bonds |
| HRESULT tfAngleHandle_check | ( | struct tfAngleHandleHandle * | handle, |
| bool * | flag ) |
Check the validity of the handle.
| handle | populated handle |
| flag | true if OK |
| HRESULT tfAngleHandle_create | ( | struct tfAngleHandleHandle * | handle, |
| struct tfPotentialHandle * | potential, | ||
| struct tfParticleHandleHandle * | i, | ||
| struct tfParticleHandleHandle * | j, | ||
| struct tfParticleHandleHandle * | k ) |
Construct a new angle handle and underlying angle.
| handle | handle to populate |
| potential | angle potential |
| i | ith particle |
| j | jth particle |
| k | kth particle |
| HRESULT tfAngleHandle_decays | ( | struct tfAngleHandleHandle * | handle, |
| bool * | flag ) |
Tests whether this angle decays.
| handle | populated handle |
| flag | true when the angle should decay |
| HRESULT tfAngleHandle_destroy | ( | struct tfAngleHandleHandle * | handle | ) |
Destroy the angle.
| HRESULT tfAngleHandle_eq | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs == rhs
| HRESULT tfAngleHandle_fromString | ( | struct tfAngleHandleHandle * | handle, |
| const char * | str ) |
Create from a JSON string representation.
| HRESULT tfAngleHandle_ge | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs >= rhs
| HRESULT tfAngleHandle_getAge | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the age of the angle.
| handle | populated handle |
| value | angle age |
| HRESULT tfAngleHandle_getAll | ( | struct tfAngleHandleHandle ** | handles, |
| unsigned int * | numBonds ) |
Gets all bonds in the universe.
| handles | |
| numBonds | number of bonds |
| HRESULT tfAngleHandle_getDissociationEnergy | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the dissociation energy.
| handle | populated handle |
| value | dissociation energy; -1 if not defined |
| HRESULT tfAngleHandle_getEnergy | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the current energy of the angle.
| handle | populated handle |
| value | current energy |
| HRESULT tfAngleHandle_getHalfLife | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the half life.
| handle | populated handle |
| value | half life; -1 if not defined |
| HRESULT tfAngleHandle_getPartList | ( | struct tfAngleHandleHandle * | handle, |
| struct tfParticleListHandle * | plist ) |
Get a list of the particles of the angle.
| handle | populated handle |
| plist | handle to populate |
| HRESULT tfAngleHandle_getParts | ( | struct tfAngleHandleHandle * | handle, |
| int * | parti, | ||
| int * | partj ) |
Get the ids of the particles of the angle.
| handle | populated handle |
| parti | ith particle; -1 if no particle |
| partj | jth particle; -1 if no particle |
| HRESULT tfAngleHandle_getPotential | ( | struct tfAngleHandleHandle * | handle, |
| struct tfPotentialHandle * | potential ) |
Get the potential of the angle.
| handle | populated handle |
| potential | angle potential |
| HRESULT tfAngleHandle_getStyle | ( | struct tfAngleHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Get the angle style.
| handle | populated handle |
| style | angle style |
| HRESULT tfAngleHandle_getStyleDef | ( | struct tfRenderingStyleHandle * | style | ) |
Get the angle style.
| style | angle style |
| HRESULT tfAngleHandle_gt | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs > rhs
| HRESULT tfAngleHandle_hasPart | ( | struct tfAngleHandleHandle * | handle, |
| struct tfParticleHandleHandle * | part, | ||
| bool * | result ) |
Test whether the bond has a particle.
| handle | populated handle |
| part | particle to test |
| result | result of test |
| HRESULT tfAngleHandle_hasPartId | ( | struct tfAngleHandleHandle * | handle, |
| int | pid, | ||
| bool * | result ) |
Test whether the bond has an id.
| handle | populated handle |
| pid | id to test |
| result | result of test |
| HRESULT tfAngleHandle_init | ( | struct tfAngleHandleHandle * | handle, |
| unsigned int | id ) |
Construct a new angle handle from an existing angle id.
| handle | handle to populate |
| id | id of existing angle |
| HRESULT tfAngleHandle_le | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs <= rhs
| HRESULT tfAngleHandle_lt | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs < rhs
| HRESULT tfAngleHandle_ne | ( | struct tfAngleHandleHandle * | lhs, |
| struct tfAngleHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs != rhs
| HRESULT tfAngleHandle_setActive | ( | struct tfAngleHandleHandle * | handle, |
| bool | flag ) |
Set whether a angle is active.
| handle | populated handle |
| flag | true when active |
| HRESULT tfAngleHandle_setDissociationEnergy | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the dissociation energy.
| handle | populated handle |
| value | dissociation energy |
| HRESULT tfAngleHandle_setHalfLife | ( | struct tfAngleHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the half life.
| handle | populated handle |
| value | half life |
| HRESULT tfAngleHandle_setStyle | ( | struct tfAngleHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Set the angle style.
| handle | populated handle |
| style | angle style |
| HRESULT tfAngleHandle_str | ( | struct tfAngleHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a summary string of the angle.
| handle | populated handle |
| str | array to populate |
| numChars | number of array characters |
| HRESULT tfAngleHandle_toString | ( | struct tfAngleHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
| handle | populated handle |
| str | string representation |
| numChars | number of characters of string representation |
| HRESULT tfBond_destroyAll | ( | ) |
Deletes all bonds in the universe.
Automatically updates when running on a CUDA device.
| HRESULT tfBond_getIdsForParticle | ( | unsigned int | pid, |
| unsigned int ** | bids, | ||
| unsigned int * | numIds ) |
Find all the bonds that interact with the given particle id.
| pid | particle id |
| bids | bond ids |
| numIds | number of bonds |
| HRESULT tfBond_pairwise | ( | struct tfPotentialHandle * | pot, |
| struct tfParticleListHandle * | parts, | ||
| tfFloatP_t | cutoff, | ||
| struct tfParticleTypeHandle * | ppairsA, | ||
| struct tfParticleTypeHandle * | ppairsB, | ||
| unsigned int | numTypePairs, | ||
| tfFloatP_t * | half_life, | ||
| tfFloatP_t * | bond_energy, | ||
| struct tfBondHandleHandle ** | bonds, | ||
| unsigned int * | numBonds ) |
Apply bonds to a list of particles.
| pot | the potential of the created bonds |
| parts | list of particles |
| cutoff | cutoff distance of particles that are bonded |
| ppairsA | first elements of type pairs that are bonded |
| ppairsB | second elements of type pairs that are bonded |
| numTypePairs | number of type pairs |
| half_life | bond half life, optional |
| bond_energy | bond energy, optional |
| bonds | created bonds |
| numBonds | number of created bonds |
| HRESULT tfBondHandle_check | ( | struct tfBondHandleHandle * | handle, |
| bool * | flag ) |
Check the validity of the handle.
| handle | populated handle |
| flag | true if OK |
| HRESULT tfBondHandle_create | ( | struct tfBondHandleHandle * | handle, |
| struct tfPotentialHandle * | potential, | ||
| struct tfParticleHandleHandle * | i, | ||
| struct tfParticleHandleHandle * | j ) |
Construct a new bond handle and underlying bond.
| handle | handle to populate |
| potential | bond potential |
| i | ith particle |
| j | jth particle |
| HRESULT tfBondHandle_decays | ( | struct tfBondHandleHandle * | handle, |
| bool * | flag ) |
Tests whether this bond decays.
| handle | populated handle |
| flag | true when the bond should decay |
| HRESULT tfBondHandle_destroy | ( | struct tfBondHandleHandle * | handle | ) |
Destroy the bond.
| handle | populated handle |
| HRESULT tfBondHandle_eq | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs == rhs
| HRESULT tfBondHandle_fromString | ( | struct tfBondHandleHandle * | handle, |
| const char * | str ) |
Create from a JSON string representation.
| HRESULT tfBondHandle_ge | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs >= rhs
| HRESULT tfBondHandle_getAge | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the age of the bond.
| handle | populated handle |
| value | bond age |
| HRESULT tfBondHandle_getAll | ( | struct tfBondHandleHandle ** | handles, |
| unsigned int * | numBonds ) |
Gets all bonds in the universe.
| handles | |
| numBonds | number of bonds |
| HRESULT tfBondHandle_getDissociationEnergy | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the dissociation energy.
| handle | populated handle |
| value | dissociation energy; -1 if not defined |
| HRESULT tfBondHandle_getEnergy | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the current energy of the bond.
| handle | populated handle |
| value | current energy |
| HRESULT tfBondHandle_getHalfLife | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the half life.
| handle | populated handle |
| value | half life; -1 if not defined |
| HRESULT tfBondHandle_getId | ( | struct tfBondHandleHandle * | handle, |
| int * | id ) |
Get the id. Returns -1 if the underlying bond is invalid.
| handle | populated handle |
| id | bond id |
| HRESULT tfBondHandle_getPartList | ( | struct tfBondHandleHandle * | handle, |
| struct tfParticleListHandle * | plist ) |
Get a list of the particles of the bond.
| handle | populated handle |
| plist | handle to populate |
| HRESULT tfBondHandle_getParts | ( | struct tfBondHandleHandle * | handle, |
| int * | parti, | ||
| int * | partj ) |
Get the ids of the particles of the bond.
| handle | populated handle |
| parti | ith particle; -1 if no particle |
| partj | jth particle; -1 if no particle |
| HRESULT tfBondHandle_getPotential | ( | struct tfBondHandleHandle * | handle, |
| struct tfPotentialHandle * | potential ) |
Get the potential of the bond.
| handle | populated handle |
| potential | bond potential |
| HRESULT tfBondHandle_getStyle | ( | struct tfBondHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Get the bond style.
| handle | populated handle |
| style | bond style |
| HRESULT tfBondHandle_getStyleDef | ( | struct tfRenderingStyleHandle * | style | ) |
Get the default bond style.
| style | bond style |
| HRESULT tfBondHandle_gt | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs > rhs
| HRESULT tfBondHandle_hasPart | ( | struct tfBondHandleHandle * | handle, |
| struct tfParticleHandleHandle * | part, | ||
| bool * | result ) |
Test whether the bond has a particle.
| handle | populated handle |
| part | particle to test |
| result | result of test |
| HRESULT tfBondHandle_hasPartId | ( | struct tfBondHandleHandle * | handle, |
| int | pid, | ||
| bool * | result ) |
Test whether the bond has an id.
| handle | populated handle |
| pid | id to test |
| result | result of test |
| HRESULT tfBondHandle_init | ( | struct tfBondHandleHandle * | handle, |
| unsigned int | id ) |
Construct a new bond handle from an existing bond id.
| handle | handle to populate |
| id | id of existing bond |
| HRESULT tfBondHandle_le | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs <= rhs
| HRESULT tfBondHandle_lt | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs < rhs
| HRESULT tfBondHandle_ne | ( | struct tfBondHandleHandle * | lhs, |
| struct tfBondHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs != rhs
| HRESULT tfBondHandle_setActive | ( | struct tfBondHandleHandle * | handle, |
| bool | flag ) |
Set whether a bond is active.
| handle | populated handle |
| flag | true when active |
| HRESULT tfBondHandle_setDissociationEnergy | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the dissociation energy.
| handle | populated handle |
| value | dissociation energy |
| HRESULT tfBondHandle_setHalfLife | ( | struct tfBondHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the half life.
| handle | populated handle |
| value | half life |
| HRESULT tfBondHandle_setStyle | ( | struct tfBondHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Set the bond style.
| handle | populated handle |
| style | bond style |
| HRESULT tfBondHandle_str | ( | struct tfBondHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a summary string of the bond.
| handle | populated handle |
| str | array to populate |
| numChars | number of array characters |
| HRESULT tfBondHandle_toString | ( | struct tfBondHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
| handle | populated handle |
| str | string representation |
| numChars | number of characters of string representation |
| HRESULT tfDihedral_destroyAll | ( | ) |
Deletes all bonds in the universe.
Automatically updates when running on a CUDA device.
| HRESULT tfDihedral_getIdsForParticle | ( | unsigned int | pid, |
| unsigned int ** | bids, | ||
| unsigned int * | numIds ) |
Find all the bonds that interact with the given particle id.
| pid | particle id |
| bids | bond ids |
| numIds | number of bonds |
| HRESULT tfDihedralHandle_check | ( | struct tfDihedralHandleHandle * | handle, |
| bool * | flag ) |
Check the validity of the handle.
| handle | populated handle |
| flag | true if OK |
| HRESULT tfDihedralHandle_create | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfPotentialHandle * | potential, | ||
| struct tfParticleHandleHandle * | i, | ||
| struct tfParticleHandleHandle * | j, | ||
| struct tfParticleHandleHandle * | k, | ||
| struct tfParticleHandleHandle * | l ) |
Construct a new dihedral handle and underlying dihedral.
| handle | handle to populate |
| potential | dihedral potential |
| i | ith particle |
| j | jth particle |
| k | kth particle |
| l | lth particle |
| HRESULT tfDihedralHandle_decays | ( | struct tfDihedralHandleHandle * | handle, |
| bool * | flag ) |
Tests whether this dihedral decays.
| handle | populated handle |
| flag | true when the dihedral should decay |
| HRESULT tfDihedralHandle_destroy | ( | struct tfDihedralHandleHandle * | handle | ) |
Destroy the angle.
| HRESULT tfDihedralHandle_eq | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs == rhs
| HRESULT tfDihedralHandle_fromString | ( | struct tfDihedralHandleHandle * | handle, |
| const char * | str ) |
Create from a JSON string representation.
| HRESULT tfDihedralHandle_ge | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs >= rhs
| HRESULT tfDihedralHandle_getAge | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the age of the dihedral.
| handle | populated handle |
| value | dihedral age |
| HRESULT tfDihedralHandle_getAll | ( | struct tfDihedralHandleHandle ** | handles, |
| unsigned int * | numBonds ) |
Gets all bonds in the universe.
| handles | |
| numBonds | number of bonds |
| HRESULT tfDihedralHandle_getDissociationEnergy | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the dissociation energy.
| handle | populated handle |
| value | dissociation energy; -1 if not defined |
| HRESULT tfDihedralHandle_getEnergy | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the current energy of the dihedral.
| handle | populated handle |
| value | current energy |
| HRESULT tfDihedralHandle_getHalfLife | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t * | value ) |
Get the half life.
| handle | populated handle |
| value | half life; -1 if not defined |
| HRESULT tfDihedralHandle_getPartList | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfParticleListHandle * | plist ) |
Get a list of the particles of the dihedral.
| handle | populated handle |
| plist | handle to populate |
| HRESULT tfDihedralHandle_getParts | ( | struct tfDihedralHandleHandle * | handle, |
| int * | parti, | ||
| int * | partj ) |
Get the ids of the particles of the dihedral.
| handle | populated handle |
| parti | ith particle; -1 if no particle |
| partj | jth particle; -1 if no particle |
| HRESULT tfDihedralHandle_getPotential | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfPotentialHandle * | potential ) |
Get the potential of the dihedral.
| handle | populated handle |
| potential | dihedral potential |
| HRESULT tfDihedralHandle_getStyle | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Get the dihedral style.
| handle | populated handle |
| style | dihedral style |
| HRESULT tfDihedralHandle_getStyleDef | ( | struct tfRenderingStyleHandle * | style | ) |
Get the dihedral style.
| style | dihedral style |
| HRESULT tfDihedralHandle_gt | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs > rhs
| HRESULT tfDihedralHandle_hasPart | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfParticleHandleHandle * | part, | ||
| bool * | result ) |
Test whether the bond has a particle.
| handle | populated handle |
| part | particle to test |
| result | result of test |
| HRESULT tfDihedralHandle_hasPartId | ( | struct tfDihedralHandleHandle * | handle, |
| int | pid, | ||
| bool * | result ) |
Test whether the bond has an id.
| handle | populated handle |
| pid | id to test |
| result | result of test |
| HRESULT tfDihedralHandle_init | ( | struct tfDihedralHandleHandle * | handle, |
| unsigned int | id ) |
Construct a new dihedral handle from an existing dihedral id.
| handle | handle to populate |
| id | id of existing dihedral |
| HRESULT tfDihedralHandle_le | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs <= rhs
| HRESULT tfDihedralHandle_lt | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs < rhs
| HRESULT tfDihedralHandle_ne | ( | struct tfDihedralHandleHandle * | lhs, |
| struct tfDihedralHandleHandle * | rhs, | ||
| bool * | result ) |
Test whether lhs != rhs
| HRESULT tfDihedralHandle_setActive | ( | struct tfDihedralHandleHandle * | handle, |
| bool | flag ) |
Set whether a dihedral is active.
| handle | populated handle |
| flag | true when active |
| HRESULT tfDihedralHandle_setDissociationEnergy | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the dissociation energy.
| handle | populated handle |
| value | dissociation energy |
| HRESULT tfDihedralHandle_setHalfLife | ( | struct tfDihedralHandleHandle * | handle, |
| tfFloatP_t | value ) |
Set the half life.
| handle | populated handle |
| value | half life |
| HRESULT tfDihedralHandle_setStyle | ( | struct tfDihedralHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Set the dihedral style.
| handle | populated handle |
| style | dihedral style |
| HRESULT tfDihedralHandle_str | ( | struct tfDihedralHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a summary string of the dihedral.
| handle | populated handle |
| str | array to populate |
| numChars | number of array characters |
| HRESULT tfDihedralHandle_toString | ( | struct tfDihedralHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
| handle | populated handle |
| str | string representation |
| numChars | number of characters of string representation |