Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfCBond.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
24
25#ifndef _WRAPS_C_TFCBOND_H_
26#define _WRAPS_C_TFCBOND_H_
27
28#include "tf_port_c.h"
29
30#include "tfCParticle.h"
31#include "tfCPotential.h"
32
33// Handles
34
39struct CAPI_EXPORT tfBondHandleHandle {
40 void *tfObj;
41};
42
47struct CAPI_EXPORT tfAngleHandleHandle {
48 void *tfObj;
49};
50
55struct CAPI_EXPORT tfDihedralHandleHandle {
56 void *tfObj;
57};
58
59
61// BondHandle //
63
64
72CAPI_FUNC(HRESULT) tfBondHandle_init(struct tfBondHandleHandle *handle, unsigned int id);
73
83CAPI_FUNC(HRESULT) tfBondHandle_create(
84 struct tfBondHandleHandle *handle,
85 struct tfPotentialHandle *potential,
86 struct tfParticleHandleHandle *i,
88);
89
97CAPI_FUNC(HRESULT) tfBondHandle_getId(struct tfBondHandleHandle *handle, int *id);
98
107CAPI_FUNC(HRESULT) tfBondHandle_str(struct tfBondHandleHandle *handle, char **str, unsigned int *numChars);
108
116CAPI_FUNC(HRESULT) tfBondHandle_check(struct tfBondHandleHandle *handle, bool *flag);
117
124CAPI_FUNC(HRESULT) tfBondHandle_destroy(struct tfBondHandleHandle *handle);
125
133CAPI_FUNC(HRESULT) tfBondHandle_decays(struct tfBondHandleHandle *handle, bool *flag);
134
143CAPI_FUNC(HRESULT) tfBondHandle_hasPartId(struct tfBondHandleHandle *handle, int pid, bool *result);
144
153CAPI_FUNC(HRESULT) tfBondHandle_hasPart(struct tfBondHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result);
154
162CAPI_FUNC(HRESULT) tfBondHandle_getEnergy(struct tfBondHandleHandle *handle, tfFloatP_t *value);
163
172CAPI_FUNC(HRESULT) tfBondHandle_getParts(struct tfBondHandleHandle *handle, int *parti, int *partj);
173
181CAPI_FUNC(HRESULT) tfBondHandle_getPartList(struct tfBondHandleHandle *handle, struct tfParticleListHandle *plist);
182
190CAPI_FUNC(HRESULT) tfBondHandle_getPotential(struct tfBondHandleHandle *handle, struct tfPotentialHandle *potential);
191
199CAPI_FUNC(HRESULT) tfBondHandle_getDissociationEnergy(struct tfBondHandleHandle *handle, tfFloatP_t *value);
200
208CAPI_FUNC(HRESULT) tfBondHandle_setDissociationEnergy(struct tfBondHandleHandle *handle, tfFloatP_t value);
209
217CAPI_FUNC(HRESULT) tfBondHandle_getHalfLife(struct tfBondHandleHandle *handle, tfFloatP_t *value);
218
226CAPI_FUNC(HRESULT) tfBondHandle_setHalfLife(struct tfBondHandleHandle *handle, tfFloatP_t value);
227
235CAPI_FUNC(HRESULT) tfBondHandle_setActive(struct tfBondHandleHandle *handle, bool flag);
236
244CAPI_FUNC(HRESULT) tfBondHandle_getStyle(struct tfBondHandleHandle *handle, struct tfRenderingStyleHandle *style);
245
253CAPI_FUNC(HRESULT) tfBondHandle_setStyle(struct tfBondHandleHandle *handle, struct tfRenderingStyleHandle *style);
254
261CAPI_FUNC(HRESULT) tfBondHandle_getStyleDef(struct tfRenderingStyleHandle *style);
262
270CAPI_FUNC(HRESULT) tfBondHandle_getAge(struct tfBondHandleHandle *handle, tfFloatP_t *value);
271
280CAPI_FUNC(HRESULT) tfBondHandle_toString(struct tfBondHandleHandle *handle, char **str, unsigned int *numChars);
281
287CAPI_FUNC(HRESULT) tfBondHandle_fromString(struct tfBondHandleHandle *handle, const char *str);
288
290CAPI_FUNC(HRESULT) tfBondHandle_lt(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
291
293CAPI_FUNC(HRESULT) tfBondHandle_gt(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
294
296CAPI_FUNC(HRESULT) tfBondHandle_le(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
297
299CAPI_FUNC(HRESULT) tfBondHandle_ge(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
300
302CAPI_FUNC(HRESULT) tfBondHandle_eq(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
303
305CAPI_FUNC(HRESULT) tfBondHandle_ne(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result);
306
307
309// AngleHandle //
311
312
320CAPI_FUNC(HRESULT) tfAngleHandle_init(struct tfAngleHandleHandle *handle, unsigned int id);
321
332CAPI_FUNC(HRESULT) tfAngleHandle_create(
333 struct tfAngleHandleHandle *handle,
334 struct tfPotentialHandle *potential,
335 struct tfParticleHandleHandle *i,
336 struct tfParticleHandleHandle *j,
337 struct tfParticleHandleHandle *k
338);
339
348CAPI_FUNC(HRESULT) tfAngleHandle_str(struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars);
349
350
358CAPI_FUNC(HRESULT) tfAngleHandle_check(struct tfAngleHandleHandle *handle, bool *flag);
359
365CAPI_FUNC(HRESULT) tfAngleHandle_destroy(struct tfAngleHandleHandle *handle);
366
374CAPI_FUNC(HRESULT) tfAngleHandle_decays(struct tfAngleHandleHandle *handle, bool *flag);
375
384CAPI_FUNC(HRESULT) tfAngleHandle_hasPartId(struct tfAngleHandleHandle *handle, int pid, bool *result);
385
394CAPI_FUNC(HRESULT) tfAngleHandle_hasPart(struct tfAngleHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result);
395
403CAPI_FUNC(HRESULT) tfAngleHandle_getEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t *value);
404
413CAPI_FUNC(HRESULT) tfAngleHandle_getParts(struct tfAngleHandleHandle *handle, int *parti, int *partj);
414
422CAPI_FUNC(HRESULT) tfAngleHandle_getPartList(struct tfAngleHandleHandle *handle, struct tfParticleListHandle *plist);
423
431CAPI_FUNC(HRESULT) tfAngleHandle_getPotential(struct tfAngleHandleHandle *handle, struct tfPotentialHandle *potential);
432
440CAPI_FUNC(HRESULT) tfAngleHandle_getDissociationEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t *value);
441
449CAPI_FUNC(HRESULT) tfAngleHandle_setDissociationEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t value);
450
458CAPI_FUNC(HRESULT) tfAngleHandle_getHalfLife(struct tfAngleHandleHandle *handle, tfFloatP_t *value);
459
467CAPI_FUNC(HRESULT) tfAngleHandle_setHalfLife(struct tfAngleHandleHandle *handle, tfFloatP_t value);
468
476CAPI_FUNC(HRESULT) tfAngleHandle_setActive(struct tfAngleHandleHandle *handle, bool flag);
477
485CAPI_FUNC(HRESULT) tfAngleHandle_getStyle(struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style);
486
494CAPI_FUNC(HRESULT) tfAngleHandle_setStyle(struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style);
495
502CAPI_FUNC(HRESULT) tfAngleHandle_getStyleDef(struct tfRenderingStyleHandle *style);
503
511CAPI_FUNC(HRESULT) tfAngleHandle_getAge(struct tfAngleHandleHandle *handle, tfFloatP_t *value);
512
521CAPI_FUNC(HRESULT) tfAngleHandle_toString(struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars);
522
528CAPI_FUNC(HRESULT) tfAngleHandle_fromString(struct tfAngleHandleHandle *handle, const char *str);
529
531CAPI_FUNC(HRESULT) tfAngleHandle_lt(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
532
534CAPI_FUNC(HRESULT) tfAngleHandle_gt(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
535
537CAPI_FUNC(HRESULT) tfAngleHandle_le(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
538
540CAPI_FUNC(HRESULT) tfAngleHandle_ge(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
541
543CAPI_FUNC(HRESULT) tfAngleHandle_eq(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
544
546CAPI_FUNC(HRESULT) tfAngleHandle_ne(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result);
547
548
550// DihedralHandle //
552
553
561CAPI_FUNC(HRESULT) tfDihedralHandle_init(struct tfDihedralHandleHandle *handle, unsigned int id);
562
574CAPI_FUNC(HRESULT) tfDihedralHandle_create(
575 struct tfDihedralHandleHandle *handle,
576 struct tfPotentialHandle *potential,
577 struct tfParticleHandleHandle *i,
578 struct tfParticleHandleHandle *j,
579 struct tfParticleHandleHandle *k,
580 struct tfParticleHandleHandle *l
581);
582
591CAPI_FUNC(HRESULT) tfDihedralHandle_str(struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars);
592
593
601CAPI_FUNC(HRESULT) tfDihedralHandle_check(struct tfDihedralHandleHandle *handle, bool *flag);
602
608CAPI_FUNC(HRESULT) tfDihedralHandle_destroy(struct tfDihedralHandleHandle *handle);
609
617CAPI_FUNC(HRESULT) tfDihedralHandle_decays(struct tfDihedralHandleHandle *handle, bool *flag);
618
627CAPI_FUNC(HRESULT) tfDihedralHandle_hasPartId(struct tfDihedralHandleHandle *handle, int pid, bool *result);
628
637CAPI_FUNC(HRESULT) tfDihedralHandle_hasPart(struct tfDihedralHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result);
638
646CAPI_FUNC(HRESULT) tfDihedralHandle_getEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t *value);
647
656CAPI_FUNC(HRESULT) tfDihedralHandle_getParts(struct tfDihedralHandleHandle *handle, int *parti, int *partj);
657
665CAPI_FUNC(HRESULT) tfDihedralHandle_getPartList(struct tfDihedralHandleHandle *handle, struct tfParticleListHandle *plist);
666
674CAPI_FUNC(HRESULT) tfDihedralHandle_getPotential(struct tfDihedralHandleHandle *handle, struct tfPotentialHandle *potential);
675
683CAPI_FUNC(HRESULT) tfDihedralHandle_getDissociationEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t *value);
684
692CAPI_FUNC(HRESULT) tfDihedralHandle_setDissociationEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t value);
693
701CAPI_FUNC(HRESULT) tfDihedralHandle_getHalfLife(struct tfDihedralHandleHandle *handle, tfFloatP_t *value);
702
710CAPI_FUNC(HRESULT) tfDihedralHandle_setHalfLife(struct tfDihedralHandleHandle *handle, tfFloatP_t value);
711
719CAPI_FUNC(HRESULT) tfDihedralHandle_setActive(struct tfDihedralHandleHandle *handle, bool flag);
720
728CAPI_FUNC(HRESULT) tfDihedralHandle_getStyle(struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style);
729
737CAPI_FUNC(HRESULT) tfDihedralHandle_setStyle(struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style);
738
745CAPI_FUNC(HRESULT) tfDihedralHandle_getStyleDef(struct tfRenderingStyleHandle *style);
746
754CAPI_FUNC(HRESULT) tfDihedralHandle_getAge(struct tfDihedralHandleHandle *handle, tfFloatP_t *value);
755
764CAPI_FUNC(HRESULT) tfDihedralHandle_toString(struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars);
765
771CAPI_FUNC(HRESULT) tfDihedralHandle_fromString(struct tfDihedralHandleHandle *handle, const char *str);
772
774CAPI_FUNC(HRESULT) tfDihedralHandle_lt(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
775
777CAPI_FUNC(HRESULT) tfDihedralHandle_gt(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
778
780CAPI_FUNC(HRESULT) tfDihedralHandle_le(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
781
783CAPI_FUNC(HRESULT) tfDihedralHandle_ge(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
784
786CAPI_FUNC(HRESULT) tfDihedralHandle_eq(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
787
789CAPI_FUNC(HRESULT) tfDihedralHandle_ne(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result);
790
791
793// Module functions //
795
796
804CAPI_FUNC(HRESULT) tfBondHandle_getAll(struct tfBondHandleHandle **handles, unsigned int *numBonds);
805
821CAPI_FUNC(HRESULT) tfBond_pairwise(
822 struct tfPotentialHandle *pot,
823 struct tfParticleListHandle *parts,
824 tfFloatP_t cutoff,
825 struct tfParticleTypeHandle *ppairsA,
826 struct tfParticleTypeHandle *ppairsB,
827 unsigned int numTypePairs,
828 tfFloatP_t *half_life,
829 tfFloatP_t *bond_energy,
830 struct tfBondHandleHandle **bonds,
831 unsigned int *numBonds
832);
833
842CAPI_FUNC(HRESULT) tfBond_getIdsForParticle(unsigned int pid, unsigned int **bids, unsigned int *numIds);
843
851CAPI_FUNC(HRESULT) tfBond_destroyAll();
852
860CAPI_FUNC(HRESULT) tfAngleHandle_getAll(struct tfAngleHandleHandle **handles, unsigned int *numBonds);
861
870CAPI_FUNC(HRESULT) tfAngle_getIdsForParticle(unsigned int pid, unsigned int **bids, unsigned int *numIds);
871
879CAPI_FUNC(HRESULT) tfAngle_destroyAll();
880
888CAPI_FUNC(HRESULT) tfDihedralHandle_getAll(struct tfDihedralHandleHandle **handles, unsigned int *numBonds);
889
898CAPI_FUNC(HRESULT) tfDihedral_getIdsForParticle(unsigned int pid, unsigned int **bids, unsigned int *numIds);
899
907CAPI_FUNC(HRESULT) tfDihedral_destroyAll();
908
909#endif // _WRAPS_C_TFCBOND_H_
Handle to a AngleHandle instance.
Definition tfCBond.h:47
Handle to a BondHandle instance.
Definition tfCBond.h:39
Handle to a DihedralHandle instance.
Definition tfCBond.h:55
Handle to a ParticleHandle instance.
Definition tfCParticle.h:111
Handle to a ParticleList instance.
Definition tfCParticle.h:127
Handle to a ParticleType instance.
Definition tfCParticle.h:119
Handle to a Potential instance.
Definition tfCPotential.h:144
Handle to a rendering::Style instance.
Definition tfCStyle.h:38
HRESULT tfBondHandle_getHalfLife(struct tfBondHandleHandle *handle, tfFloatP_t *value)
Get the half life.
HRESULT tfBondHandle_getPartList(struct tfBondHandleHandle *handle, struct tfParticleListHandle *plist)
Get a list of the particles of the bond.
HRESULT tfDihedralHandle_setHalfLife(struct tfDihedralHandleHandle *handle, tfFloatP_t value)
Set the half life.
HRESULT tfAngleHandle_ne(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_getEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t *value)
Get the current energy of the angle.
HRESULT tfBondHandle_check(struct tfBondHandleHandle *handle, bool *flag)
Check the validity of the handle.
HRESULT tfDihedralHandle_fromString(struct tfDihedralHandleHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfDihedralHandle_hasPart(struct tfDihedralHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the bond has a particle.
HRESULT tfDihedralHandle_destroy(struct tfDihedralHandleHandle *handle)
Destroy the angle.
HRESULT tfDihedralHandle_str(struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars)
Get a summary string of the dihedral.
HRESULT tfAngleHandle_getDissociationEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t *value)
Get the dissociation energy.
HRESULT tfAngleHandle_destroy(struct tfAngleHandleHandle *handle)
Destroy the angle.
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 tfAngleHandle_getParts(struct tfAngleHandleHandle *handle, int *parti, int *partj)
Get the ids of the particles of the angle.
HRESULT tfDihedralHandle_getDissociationEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t *value)
Get the dissociation energy.
HRESULT tfBondHandle_getStyleDef(struct tfRenderingStyleHandle *style)
Get the default bond style.
HRESULT tfAngleHandle_le(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_getStyleDef(struct tfRenderingStyleHandle *style)
Get the angle style.
HRESULT tfBondHandle_eq(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfBondHandle_fromString(struct tfBondHandleHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfDihedralHandle_getHalfLife(struct tfDihedralHandleHandle *handle, tfFloatP_t *value)
Get the half life.
HRESULT tfBondHandle_getPotential(struct tfBondHandleHandle *handle, struct tfPotentialHandle *potential)
Get the potential of the bond.
HRESULT tfDihedralHandle_eq(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfBondHandle_getAge(struct tfBondHandleHandle *handle, tfFloatP_t *value)
Get the age of the bond.
HRESULT tfAngle_getIdsForParticle(unsigned int pid, unsigned int **bids, unsigned int *numIds)
Find all the bonds that interact with the given particle id.
HRESULT tfDihedralHandle_ne(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfBondHandle_toString(struct tfBondHandleHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
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 tfBondHandle_ne(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfDihedralHandle_getPartList(struct tfDihedralHandleHandle *handle, struct tfParticleListHandle *plist)
Get a list of the particles of the dihedral.
HRESULT tfDihedral_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 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 tfAngleHandle_setActive(struct tfAngleHandleHandle *handle, bool flag)
Set whether a angle is active.
HRESULT tfAngleHandle_hasPartId(struct tfAngleHandleHandle *handle, int pid, bool *result)
Test whether the bond has an 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 tfDihedralHandle_lt(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_check(struct tfAngleHandleHandle *handle, bool *flag)
Check the validity of the handle.
HRESULT tfBondHandle_getDissociationEnergy(struct tfBondHandleHandle *handle, tfFloatP_t *value)
Get the dissociation energy.
HRESULT tfBondHandle_getParts(struct tfBondHandleHandle *handle, int *parti, int *partj)
Get the ids of the particles of the bond.
HRESULT tfAngleHandle_getHalfLife(struct tfAngleHandleHandle *handle, tfFloatP_t *value)
Get the half life.
HRESULT tfDihedralHandle_getPotential(struct tfDihedralHandleHandle *handle, struct tfPotentialHandle *potential)
Get the potential of the dihedral.
HRESULT tfDihedralHandle_le(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfBondHandle_hasPartId(struct tfBondHandleHandle *handle, int pid, bool *result)
Test whether the bond has an id.
HRESULT tfDihedralHandle_setStyle(struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style)
Set the dihedral style.
HRESULT tfBondHandle_le(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfDihedralHandle_getStyle(struct tfDihedralHandleHandle *handle, struct tfRenderingStyleHandle *style)
Get the dihedral style.
HRESULT tfDihedralHandle_hasPartId(struct tfDihedralHandleHandle *handle, int pid, bool *result)
Test whether the bond has an id.
HRESULT tfBondHandle_getEnergy(struct tfBondHandleHandle *handle, tfFloatP_t *value)
Get the current energy of the bond.
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 tfAngleHandle_gt(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)
HRESULT tfBondHandle_gt(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfDihedralHandle_getParts(struct tfDihedralHandleHandle *handle, int *parti, int *partj)
Get the ids of the particles of the dihedral.
HRESULT tfBondHandle_lt(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_getStyle(struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style)
Get the angle style.
HRESULT tfBondHandle_decays(struct tfBondHandleHandle *handle, bool *flag)
Tests whether this bond decays.
HRESULT tfDihedralHandle_gt(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_setDissociationEnergy(struct tfAngleHandleHandle *handle, tfFloatP_t value)
Set the dissociation energy.
HRESULT tfBondHandle_setHalfLife(struct tfBondHandleHandle *handle, tfFloatP_t value)
Set the half life.
HRESULT tfAngleHandle_setHalfLife(struct tfAngleHandleHandle *handle, tfFloatP_t value)
Set the half life.
HRESULT tfBondHandle_init(struct tfBondHandleHandle *handle, unsigned int id)
Construct a new bond handle from an existing bond id.
HRESULT tfBond_getIdsForParticle(unsigned int pid, unsigned int **bids, unsigned int *numIds)
Find all the bonds that interact with the given particle id.
HRESULT tfAngleHandle_getAll(struct tfAngleHandleHandle **handles, unsigned int *numBonds)
Gets all bonds in the universe.
HRESULT tfAngleHandle_init(struct tfAngleHandleHandle *handle, unsigned int id)
Construct a new angle handle from an existing angle id.
HRESULT tfAngleHandle_getPartList(struct tfAngleHandleHandle *handle, struct tfParticleListHandle *plist)
Get a list of the particles of the angle.
HRESULT tfAngleHandle_decays(struct tfAngleHandleHandle *handle, bool *flag)
Tests whether this angle decays.
HRESULT tfBondHandle_getId(struct tfBondHandleHandle *handle, int *id)
Get the id. Returns -1 if the underlying bond is invalid.
HRESULT tfAngleHandle_setStyle(struct tfAngleHandleHandle *handle, struct tfRenderingStyleHandle *style)
Set the angle style.
HRESULT tfDihedralHandle_getEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t *value)
Get the current energy of the dihedral.
HRESULT tfBondHandle_str(struct tfBondHandleHandle *handle, char **str, unsigned int *numChars)
Get a summary string of the bond.
HRESULT tfDihedralHandle_ge(struct tfDihedralHandleHandle *lhs, struct tfDihedralHandleHandle *rhs, bool *result)
HRESULT tfDihedral_destroyAll()
Deletes all bonds in the universe.
HRESULT tfDihedralHandle_getStyleDef(struct tfRenderingStyleHandle *style)
Get the dihedral style.
HRESULT tfBondHandle_getAll(struct tfBondHandleHandle **handles, unsigned int *numBonds)
Gets all bonds in the universe.
HRESULT tfAngleHandle_fromString(struct tfAngleHandleHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfDihedralHandle_setActive(struct tfDihedralHandleHandle *handle, bool flag)
Set whether a dihedral is active.
HRESULT tfDihedralHandle_decays(struct tfDihedralHandleHandle *handle, bool *flag)
Tests whether this dihedral decays.
HRESULT tfBondHandle_destroy(struct tfBondHandleHandle *handle)
Destroy the bond.
HRESULT tfDihedralHandle_getAge(struct tfDihedralHandleHandle *handle, tfFloatP_t *value)
Get the age of the dihedral.
HRESULT tfBondHandle_hasPart(struct tfBondHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the bond has a particle.
HRESULT tfAngleHandle_toString(struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfAngleHandle_ge(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)
HRESULT tfAngleHandle_lt(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)
HRESULT tfDihedralHandle_getAll(struct tfDihedralHandleHandle **handles, unsigned int *numBonds)
Gets all bonds in the universe.
HRESULT tfAngleHandle_str(struct tfAngleHandleHandle *handle, char **str, unsigned int *numChars)
Get a summary string of the angle.
HRESULT tfAngle_destroyAll()
Deletes all bonds in the universe.
HRESULT tfDihedralHandle_toString(struct tfDihedralHandleHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfDihedralHandle_setDissociationEnergy(struct tfDihedralHandleHandle *handle, tfFloatP_t value)
Set the dissociation energy.
HRESULT tfAngleHandle_getPotential(struct tfAngleHandleHandle *handle, struct tfPotentialHandle *potential)
Get the potential of the angle.
HRESULT tfBondHandle_ge(struct tfBondHandleHandle *lhs, struct tfBondHandleHandle *rhs, bool *result)
HRESULT tfDihedralHandle_check(struct tfDihedralHandleHandle *handle, bool *flag)
Check the validity of the handle.
HRESULT tfBondHandle_setActive(struct tfBondHandleHandle *handle, bool flag)
Set whether a bond is active.
HRESULT tfAngleHandle_hasPart(struct tfAngleHandleHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the bond has a particle.
HRESULT tfAngleHandle_getAge(struct tfAngleHandleHandle *handle, tfFloatP_t *value)
Get the age of the angle.
HRESULT tfBondHandle_setDissociationEnergy(struct tfBondHandleHandle *handle, tfFloatP_t value)
Set the dissociation energy.
HRESULT tfAngleHandle_eq(struct tfAngleHandleHandle *lhs, struct tfAngleHandleHandle *rhs, bool *result)