|
NDDEM
|
Data structure handling point data and contact data. More...
#include <Coarsing.h>
Public Member Functions | |
| Data () | |
| int | random_test (int N, int Ncf, int d, v2d box) |
| Randomly fill the data structure. More... | |
| int | compute_lpq (int d) |
| Compute lpq from contact id's and atom locations. More... | |
| int | periodic_atoms (int d, v2d bounds, int pbc, v1d Delta, bool omegainclude) |
| Copy particles through the periodic boundary conditions. Should call clean_periodic_atoms() after the full coarse-graining computation has been performed to clean the added atoms. More... | |
| int | clean_periodic_atoms () |
| Clean periodic atoms. More... | |
| bool | check_field_availability (string name) |
| int | add_extra_field (int length, std::string name) |
Public Attributes | |
| int | N = 0 |
| Number of particles. More... | |
| double * | radius |
| Particle radius. More... | |
| double * | mass |
| Particle masses. More... | |
| double * | Imom |
| Particle moment of inertia. More... | |
| vector< double * > | pos |
| Particle positions. More... | |
| vector< double * > | vel |
| Particle velocity. More... | |
| vector< double * > | omega |
| Particle angular velocity. More... | |
| vector< double * > | orient |
| Particle orientation (quaternions) More... | |
| vector< double * > | superquadric |
| Superquadrics information. More... | |
| v2d | vel_fluc |
| Fluctuating velocity. Should not be externally provided but calculated, using the function Coarsing::compute_fluc_vel() More... | |
| v2d | rot_fluc |
| Fluctuating angular velocity. Should not be externally provided but calculated, using the function Coarsing::compute_fluc_vel() More... | |
| int | Ncf |
| Number of contacts. More... | |
| double * | id1 |
| Index of first particle in contact. More... | |
| double * | id2 |
| Index of the second particle in contact. More... | |
| vector< double * > | pospq |
| Location of contact point. More... | |
| vector< double * > | lpq |
| Branch vector of the contact, use compute_lpq() to populate this. More... | |
| vector< double * > | fpq |
| Force at contact. More... | |
| vector< double * > | mpq |
| Moment of particle 1 on 2. More... | |
| vector< double * > | mqp |
| Moment of particle 2 on 1. More... | |
| vector< double * > | extra |
| vector< std::tuple< std::string, int, int > > | extrafields |
| int | Nnonper =-1 |
| Used if additional particles are added as images through the periodic boundary conditions. More... | |
Data structure handling point data and contact data.