27#ifndef _MDCORE_INCLUDE_TFANGLE_H_
28#define _MDCORE_INCLUDE_TFANGLE_H_
30#include <mdcore_config.h>
43 typedef enum AngleFlags {
52 struct ParticleHandle;
60 typedef struct CAPI_EXPORT
Angle {
69 uint64_t creation_time;
77 FPTYPE dissociation_energy;
80 FPTYPE potential_energy;
170 static std::vector<AngleHandle>
items();
182 bool has(
const int32_t &pid);
293 os << h.
str().c_str();
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
HRESULT angle_eval(struct Angle *a, int N, struct engine *e, FPTYPE *epot_out)
Evaluate a list of angleed interactions.
HRESULT angle_evalf(struct Angle *a, int N, struct engine *e, FPTYPE *f, FPTYPE *epot_out)
Evaluate a list of angleed interactions.
HRESULT Angle_DestroyAll()
Destroys all angles in the universe.
std::vector< int32_t > Angle_IdsForParticle(int32_t pid)
HRESULT Angle_Destroy(Angle *a)
Destroys an angle.
struct TissueForge::Angle Angle
A bond concerning an angle.
A handle to an angle bond.
Definition tfAngle.h:137
bool decays()
Tests whether this bond decays.
Potential * getPotential()
HRESULT destroy()
Destroy the angle.
static std::vector< AngleHandle > items()
Gets all angles in the universe.
bool has(ParticleHandle *part)
Angle * get()
Gets the angle of this handle.
void setHalfLife(const FPTYPE &half_life)
bool check()
Check the validity of the handle.
void setStyle(rendering::Style *style)
std::vector< int32_t > getParts()
rendering::Style * getStyle()
FPTYPE getDissociationEnergy()
ParticleList getPartList()
std::string str() const
Get a summary string of the angle.
bool has(const int32_t &pid)
AngleHandle(const int &_id)
Construct a new angle handle from an existing angle id.
void setDissociationEnergy(const FPTYPE &dissociation_energy)
A bond concerning an angle.
Definition tfAngle.h:60
static rendering::Style * styleDef()
Get the default style.
static AngleHandle * create(Potential *potential, struct ParticleHandle *p1, struct ParticleHandle *p2, struct ParticleHandle *p3, uint32_t flags=0)
Creates an angle bond.
FPTYPE half_life
Definition tfAngle.h:74
std::string toString()
Get a JSON string representation.
static Angle * fromString(const std::string &str)
Create from a JSON string representation.
A handle to a particle.
Definition tfParticle.h:313
A special list with convenience methods for working with sets of particles.
Definition tfParticleList.h:52
A Potential object is a compiled interpolation of a given function. The Universe applies potentials t...
Definition tfPotential.h:213
Definition tfEngine.h:164
The Tissue Forge style type.
Definition tfStyle.h:46
int32_t HRESULT
Definition tf_port.h:255