Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfC_bind.h File Reference
#include "tf_port_c.h"
#include "tfCBond.h"
#include "tfCBoundaryConditions.h"
#include "tfCForce.h"
#include "tfCParticle.h"
#include "tfCPotential.h"
Include dependency graph for tfC_bind.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT tfBindParticles (struct tfPotentialHandle *p, struct tfParticleHandleHandle *a, struct tfParticleHandleHandle *b)
 Bind a potential to a pair of particles.
 
HRESULT tfBindTypes (struct tfPotentialHandle *p, struct tfParticleTypeHandle *a, struct tfParticleTypeHandle *b, bool bound)
 Bind a potential to a pair of particle types.
 
HRESULT tfBindBoundaryConditions (struct tfPotentialHandle *p, struct tfParticleTypeHandle *t)
 Bind a potential to a pair of particle type and all boundary conditions.
 
HRESULT tfBindBoundaryCondition (struct tfPotentialHandle *p, struct tfBoundaryConditionHandle *bc, struct tfParticleTypeHandle *t)
 Bind a potential to a pair of particle type and a boundary conditions.
 
HRESULT tfBindForce (struct tfForceHandle *force, struct tfParticleTypeHandle *a_type)
 Bind a force to a particle type.
 
HRESULT tfBindForceS (struct tfForceHandle *force, struct tfParticleTypeHandle *a_type, const char *coupling_symbol)
 Bind a force to a particle type with magnitude proportional to a species amount.
 
HRESULT tfBindBonds (struct tfPotentialHandle *potential, struct tfParticleListHandle *particles, tfFloatP_t cutoff, struct tfParticleTypeHandle **ppairsA, struct tfParticleTypeHandle **ppairsB, unsigned int numTypes, tfFloatP_t *half_life, tfFloatP_t *bond_energy, struct tfBondHandleHandle **out, unsigned int *numOut)
 Create bonds for a set of pairs of particles.
 

Function Documentation

◆ tfBindBonds()

HRESULT tfBindBonds ( struct tfPotentialHandle * potential,
struct tfParticleListHandle * particles,
tfFloatP_t cutoff,
struct tfParticleTypeHandle ** ppairsA,
struct tfParticleTypeHandle ** ppairsB,
unsigned int numTypes,
tfFloatP_t * half_life,
tfFloatP_t * bond_energy,
struct tfBondHandleHandle ** out,
unsigned int * numOut )

Create bonds for a set of pairs of particles.

Parameters
potentialThe bond potential
particlesThe list of particles
cutoffInteraction cutoff
ppairsAfirst elements of type pairs that are bonded, optional
ppairsBsecond elements of type pairs that are bonded, optional
numTypesnumber of passed type pairs
half_lifeBond half life, optional
bond_energyBond dissociation energy, optional
outList of created bonds, optional
numOutNumber of created bonds, optional
Returns
S_OK on success

◆ tfBindBoundaryCondition()

HRESULT tfBindBoundaryCondition ( struct tfPotentialHandle * p,
struct tfBoundaryConditionHandle * bc,
struct tfParticleTypeHandle * t )

Bind a potential to a pair of particle type and a boundary conditions.

Parameters
pThe potential
bcThe boundary condition
tThe particle type
Returns
S_OK on success

◆ tfBindBoundaryConditions()

HRESULT tfBindBoundaryConditions ( struct tfPotentialHandle * p,
struct tfParticleTypeHandle * t )

Bind a potential to a pair of particle type and all boundary conditions.

Parameters
pThe potential
tThe particle type
Returns
S_OK on success

◆ tfBindForce()

HRESULT tfBindForce ( struct tfForceHandle * force,
struct tfParticleTypeHandle * a_type )

Bind a force to a particle type.

Parameters
forceThe force
a_typeThe particle type
Returns
S_OK on success

◆ tfBindForceS()

HRESULT tfBindForceS ( struct tfForceHandle * force,
struct tfParticleTypeHandle * a_type,
const char * coupling_symbol )

Bind a force to a particle type with magnitude proportional to a species amount.

Parameters
forceThe force
a_typeThe particle type
coupling_symbolThe symbol of the species
Returns
S_OK on success

◆ tfBindParticles()

HRESULT tfBindParticles ( struct tfPotentialHandle * p,
struct tfParticleHandleHandle * a,
struct tfParticleHandleHandle * b )

Bind a potential to a pair of particles.

Parameters
pThe potential
aThe first particle
bThe second particle
Returns
S_OK on success

◆ tfBindTypes()

HRESULT tfBindTypes ( struct tfPotentialHandle * p,
struct tfParticleTypeHandle * a,
struct tfParticleTypeHandle * b,
bool bound )

Bind a potential to a pair of particle types.

Parameters
pThe potential
aThe first type
bThe second type
boundFlag signifying whether this potential exclusively operates on particles of different clusters
Returns
S_OK on success