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

#include <tfDihedral.h>

Collaboration diagram for TissueForge::Dihedral:

Public Member Functions

void init (Potential *potential, ParticleHandle *p1, ParticleHandle *p2, ParticleHandle *p3, ParticleHandle *p4)
 
std::string toString ()
 Get a JSON string representation.
 

Static Public Member Functions

static rendering::StylestyleDef ()
 Get the default style.
 
static DihedralHandlecreate (Potential *potential, ParticleHandle *p1, ParticleHandle *p2, ParticleHandle *p3, ParticleHandle *p4)
 Creates a dihedral bond.
 
static DihedralfromString (const std::string &str)
 Create from a JSON string representation.
 

Public Attributes

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

Detailed Description

The dihedral structure

Member Function Documentation

◆ create()

static DihedralHandle * TissueForge::Dihedral::create ( Potential * potential,
ParticleHandle * p1,
ParticleHandle * p2,
ParticleHandle * p3,
ParticleHandle * p4 )
static

Creates a dihedral bond.

Parameters
potentialpotential of the bond
p1first outer particle
p2first center particle
p3second center particle
p4second outer particle
Returns
DihedralHandle*

◆ fromString()

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

Create from a JSON string representation.

The returned dihedral is not automatically registered with the engine.

Parameters
str

Member Data Documentation

◆ half_life

FPTYPE TissueForge::Dihedral::half_life

half life decay time for this bond.


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