NDDEM
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LiggghtsReader_contacts Class Reference

#include <Reader-Liggghts.h>

+ Inheritance diagram for LiggghtsReader_contacts:

Public Member Functions

 LiggghtsReader_contacts (std::string ppath, Reader *d, std::map< std::string, std::string > columnmap)
 
double * get_data (DataValue datavalue, int dd, std::string name="")
 
int get_num_particles ()
 
- Public Member Functions inherited from LiggghtsReader
 LiggghtsReader (std::string ppath)
 
 ~LiggghtsReader ()
 
int open (string path)
 
int reset ()
 
std::vector< vector< double > > get_bounds ()
 
std::vector< double > get_minmaxradius ()
 
int get_numts ()
 
int read_timestep (int ts)
 
int get_num_contacts ()
 
- Public Member Functions inherited from Reader
virtual int get_dimension ()
 
virtual double * get_data ([[maybe_unused]] DataValue datavalue, [[maybe_unused]] int dd, [[maybe_unused]] std::string name="")
 
virtual int build_index ()
 
virtual int read_timestep ([[maybe_unused]] int ts)
 
virtual void post_init ()
 
void set_default_radiusdensity (double radius, double density)
 
void set_default_radius (double radius)
 
void set_default_density (double density)
 
double get_default_radius ()
 
double get_default_density ()
 
void build_pospqlpq_from_ids (v2d &contactarray, int idx_id1, int idx_id2, int idx_pospq, int idx_lpq, v2d &particlearray, int idx_pos, int idx_r=-1)
 
int clean_contacts (v2d &contactarray, int id1, int id2, int idx_lpq, v2d &particlearray, int idx_r)
 
std::string getpath (int ts)
 

Private Member Functions

int do_post_read ()
 

Private Attributes

LiggghtsReader_particlesdump
 

Additional Inherited Members

- Public Attributes inherited from LiggghtsReader
std::istream * in = nullptr
 
int actualts =0
 
int Nitem
 
std::vector< std::string > fields
 
v2d data
 
v2d tdata
 
v1d dataextra
 
vector< vector< double > > boundaries = vector<vector<double>>(3,vector<double>(3,0))
 
vector< bool > periodicity = vector<bool>(3,false)
 
std::map< std::string, std::string > cfmapping
 
- Public Attributes inherited from Reader
bool is_seekable = false
 
bool is_fullymapped = false
 
std::vector< std::optional< std::streampos > > mapped_ts
 
std::string path
 
int curts =-1
 
struct {
   double   initial = 0
 
   double   delta = 1
 
   int   numts = -1
 
   bool   ismultifile = false
 
filenumbering
 
- Protected Attributes inherited from Reader
std::vector< std::pair< double, streampos > > index
 

Constructor & Destructor Documentation

◆ LiggghtsReader_contacts()

LiggghtsReader_contacts::LiggghtsReader_contacts ( std::string  ppath,
Reader d,
std::map< std::string, std::string >  columnmap 
)
inline

Member Function Documentation

◆ do_post_read()

int LiggghtsReader_contacts::do_post_read ( )
privatevirtual

Reimplemented from LiggghtsReader.

◆ get_data()

double* LiggghtsReader_contacts::get_data ( DataValue  datavalue,
int  dd,
std::string  name = "" 
)
inline

◆ get_num_particles()

int LiggghtsReader_contacts::get_num_particles ( )
inlinevirtual

Reimplemented from LiggghtsReader.

Member Data Documentation

◆ dump

LiggghtsReader_particles* LiggghtsReader_contacts::dump
private

The documentation for this class was generated from the following files: