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

#include <Reader-interactive.h>

+ Inheritance diagram for InteractiveReader:

Public Member Functions

 InteractiveReader ()
 
int get_numts ()
 
int get_num_particles ()
 
void set_num_particles (int NN)
 
int get_num_contacts ()
 
void set_num_contacts (int NN)
 
double * get_data (DataValue datavalue, int dd, std::string name="")
 
void set_data (DataValue destination, std::vector< std::vector< double >> &orig)
 
void set_data (DataValue destination, std::vector< double > &orig)
 
void add_contact (std::vector< DataValue > dv, std::vector< double > value)
 
void reset_contacts ()
 
- Public Member Functions inherited from Reader
virtual std::vector< std::vector< double > > get_bounds ()
 
virtual std::vector< double > get_minmaxradius ()
 
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)
 

Public Attributes

v2d data
 
- 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
 

Private Attributes

int ts =0
 
int N =0
 
int Nc =0
 
int maxNc =0
 
const int growth =100
 

Additional Inherited Members

- Protected Attributes inherited from Reader
std::vector< std::pair< double, streampos > > index
 

Constructor & Destructor Documentation

◆ InteractiveReader()

InteractiveReader::InteractiveReader ( )
inline

Member Function Documentation

◆ add_contact()

void InteractiveReader::add_contact ( std::vector< DataValue dv,
std::vector< double >  value 
)
inline

◆ get_data()

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

◆ get_num_contacts()

int InteractiveReader::get_num_contacts ( )
inlinevirtual

Reimplemented from Reader.

◆ get_num_particles()

int InteractiveReader::get_num_particles ( )
inlinevirtual

Reimplemented from Reader.

◆ get_numts()

int InteractiveReader::get_numts ( )
inlinevirtual

Reimplemented from Reader.

◆ reset_contacts()

void InteractiveReader::reset_contacts ( )
inline

◆ set_data() [1/2]

void InteractiveReader::set_data ( DataValue  destination,
std::vector< double > &  orig 
)
inline

◆ set_data() [2/2]

void InteractiveReader::set_data ( DataValue  destination,
std::vector< std::vector< double >> &  orig 
)
inline

◆ set_num_contacts()

void InteractiveReader::set_num_contacts ( int  NN)
inline

◆ set_num_particles()

void InteractiveReader::set_num_particles ( int  NN)
inline

Member Data Documentation

◆ data

v2d InteractiveReader::data

◆ growth

const int InteractiveReader::growth =100
private

◆ maxNc

int InteractiveReader::maxNc =0
private

◆ N

int InteractiveReader::N =0
private

◆ Nc

int InteractiveReader::Nc =0
private

◆ ts

int InteractiveReader::ts =0
private

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