Binding
- tissue_forge.bind.particles(p, a, b)
Bind a potential to a pair of particles
- Parameters:
p (
Potential) – The potentiala (
Particle) – The first particleb (
Particle) – The second particle
- Return type:
int
- Returns:
HRESULT
- tissue_forge.bind.types(p, a, b, bound=False)
Bind a potential to a pair of particle types.
Automatically updates when running on a CUDA device.
- Parameters:
p (
Potential) – The potentiala (
ParticleType) – The first typeb (
ParticleType) – The second typebound (boolean, optional) – Flag signifying whether this potential exclusively operates on particles of different clusters, optional
- Return type:
int
- Returns:
HRESULT
- tissue_forge.bind.boundary_conditions(p, t)
Bind a potential to a pair of particle type and all boundary conditions.
Automatically updates when running on a CUDA device.
- Parameters:
p (
Potential) – The potentialt (
ParticleType) – The particle type
- Return type:
int
- Returns:
HRESULT
- tissue_forge.bind.boundary_condition(p, bc, t)
Bind a potential to a pair of particle type and a boundary conditions.
Automatically updates when running on a CUDA device.
- Parameters:
p (
Potential) – The potentialbc (
BoundaryCondition) – The boundary conditiont (
ParticleType) – The particle type
- Return type:
int
- Returns:
HRESULT
- tissue_forge.bind.force(*args)
Overload 1:
Bind a force to a particle type
- Parameters:
force (
Force) – The forcea_type (
ParticleType) – The particle type
- Return type:
int
- Returns:
HRESULT
Overload 2:
Bind a force to a particle type with magnitude proportional to a species amount
- Parameters:
force (
Force) – The forcea_type (
ParticleType) – The particle typecoupling_symbol (string) – The symbol of the species
- Return type:
int
- Returns:
HRESULT
- tissue_forge.bind.bonds(potential, particles, cutoff, pairs=None, half_life=None, bond_energy=None, flags=0)