25#ifndef _SOURCE_TF_METRICS_H_
26#define _SOURCE_TF_METRICS_H_
28#include "TissueForge_private.h"
71 const std::set<short int> &typeIds,
130 const std::set<short int> *typeIds,
Definition tfMatrix3.h:35
Definition tfMatrix4.h:35
Definition tfVector4.h:33
Tissue Forge simulation metrics.
Definition tf_metrics.h:34
FVector3 eigenVals(const FMatrix3 &mat, const bool &symmetric=false)
Compute the eigenvalues of a 3x3 matrix.
HRESULT calculateVirial(FloatP_t *origin, FloatP_t radius, const std::set< short int > &typeIds, FloatP_t *tensor)
HRESULT particlesRadiusOfGyration(int32_t *parts, uint16_t nr_parts, FloatP_t *result)
HRESULT particleNeighbors(struct Particle *part, FloatP_t radius, const std::set< short int > *typeIds, uint16_t *nr_parts, int32_t **parts)
HRESULT particlesCenterOfGeometry(int32_t *parts, uint16_t nr_parts, FloatP_t *result)
HRESULT particlesVirial(int32_t *parts, uint16_t nr_parts, uint32_t flags, FloatP_t *tensor)
HRESULT particlesCenterOfMass(int32_t *parts, uint16_t nr_parts, FloatP_t *result)
ParticleList neighborhoodParticles(const FVector3 &position, const FloatP_t &dist, const bool &comp_bc=true)
std::vector< std::vector< std::vector< ParticleList > > > particleGrid(const iVector3 &shape)
FVector3 relativePosition(const FVector3 &pos, const FVector3 &origin, const bool &comp_bc=true)
Computes the relative position with respect to an origin while optionally account for boundary condit...
std::pair< FVector3 FMatrix3 > eigenVecsVals(const FMatrix3 &mat, const bool &symmetric=false)
Compute the eigenvectors and eigenvalues of a 3x3 matrix.
HRESULT particlesMomentOfInertia(int32_t *parts, uint16_t nr_parts, FloatP_t *result)
FVector3 cartesianToSpherical(const FVector3 &postion, const FVector3 &origin)
Definition tfParticle.h:101
A special list with convenience methods for working with sets of particles.
Definition tfParticleList.h:52
int32_t HRESULT
Definition tf_port.h:255