Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
TissueForge::Angle Struct Reference

A bond concerning an angle. More...

#include <tfAngle.h>

Collaboration diagram for TissueForge::Angle:

Public Member Functions

void init (Potential *potential, struct ParticleHandle *p1, struct ParticleHandle *p2, struct ParticleHandle *p3, uint32_t flags=0)
 
std::string toString ()
 Get a JSON string representation.
 

Static Public Member Functions

static rendering::StylestyleDef ()
 Get the default style.
 
static AngleHandlecreate (Potential *potential, struct ParticleHandle *p1, struct ParticleHandle *p2, struct ParticleHandle *p3, uint32_t flags=0)
 Creates an angle bond.
 
static AnglefromString (const std::string &str)
 Create from a JSON string representation.
 

Public Attributes

uint32_t flags
 
int i
 
int j
 
int k
 
uint32_t id
 
uint64_t creation_time
 
FPTYPE half_life
 
FPTYPE dissociation_energy
 
FPTYPE potential_energy
 
struct Potentialpotential
 
struct rendering::Stylestyle
 

Detailed Description

A bond concerning an angle.

If you're building a model, you should probably instead be working with a AngleHandle.

Member Function Documentation

◆ create()

static AngleHandle * TissueForge::Angle::create ( Potential * potential,
struct ParticleHandle * p1,
struct ParticleHandle * p2,
struct ParticleHandle * p3,
uint32_t flags = 0 )
static

Creates an angle bond.

Automatically updates when running on a CUDA device.

Parameters
potentialpotential of the bond
p1first outer particle
p2center particle
p3second outer particle
flagsangle flags
Returns
AngleHandle*

◆ fromString()

static Angle * TissueForge::Angle::fromString ( const std::string & str)
static

Create from a JSON string representation.

The returned angle is not automatically registered with the engine.

Parameters
str

Member Data Documentation

◆ half_life

FPTYPE TissueForge::Angle::half_life

half life decay time for this bond.


The documentation for this struct was generated from the following file: