ESyS-Particle  2.3.4
readSnap.cpp File Reference
#include "readSnap.h"
#include <iterator>
#include <fstream>
#include <set>
#include "Foundation/vec3.h"
Include dependency graph for readSnap.cpp:

Functions

int get_version (const string &infilename)
 
vector< string > get_filenames (const string &infilename, int version)
 
Graph readSnap (const string &infilename, int mintag, int maxtag, int btag)
 
void readSnap (const string &infilename, int mintag, int maxtag, Graph &g, int btag)
 
Graph readGeo (const string &infilename, int mintag, int maxtag, int btag)
 
void readGeo (const string &infilename, int mintag, int maxtag, Graph &g, int btag)
 

Function Documentation

◆ get_filenames()

vector<string> get_filenames ( const string &  infilename,
int  version 
)

Referenced by readSnap().

Here is the caller graph for this function:

◆ get_version()

int get_version ( const string &  infilename)

Get snapshot version.

Parameters
infilenamethe file name of the header file (incl. the _0.txt part)

Referenced by readSnap().

Here is the caller graph for this function:

◆ readGeo() [1/2]

void readGeo ( const string &  infilename,
int  mintag,
int  maxtag,
Graph g,
int  btag 
)

Read geometry file into existing graph

Parameters
infilenamethe name of the geometry file
mintagthe smallest particle tag considered
gthe existing graph
btagif btag!= -1, consider only bonds tagged with btag

References Graph::insert(), esys::lsm::bpu::iter(), Graph::numE(), Graph::numV(), Graph::removeDoubles(), and Graph::setVertexData().

Here is the call graph for this function:

◆ readGeo() [2/2]

Graph readGeo ( const string &  infilename,
int  mintag,
int  maxtag,
int  btag 
)

Read geometry file and create a graph from the data

Parameters
infilenamethe name of the geometry file
mintagthe smallest particle tag considered
btagif btag!= -1, consider only bonds tagged with btag

Referenced by main().

Here is the caller graph for this function:

◆ readSnap() [1/2]

void readSnap ( const string &  infilename,
int  mintag,
int  maxtag,
Graph g,
int  btag 
)

read snapshot into existing graph

Parameters
infilenamethe name of the header file of the snapshot, i.e. *_0.txt
mintagthe smallest particle tag considered
gthe existing graph
btagif btag!= -1, consider only bonds tagged with btag

References get_filenames(), get_version(), Graph::insert(), esys::lsm::bpu::iter(), Graph::numE(), Graph::numV(), Graph::removeDoubles(), and Graph::setVertexData().

Here is the call graph for this function:

◆ readSnap() [2/2]

Graph readSnap ( const string &  infilename,
int  mintag,
int  maxtag,
int  btag 
)

read snapshot and create a graph from the data

Parameters
infilenamethe name of the header file of the snapshot, i.e. *_0.txt
mintagthe smallest particle tag considered
btagif btag!= -1, consider only bonds tagged with btag

References get_filenames(), get_version(), Graph::insert(), esys::lsm::bpu::iter(), Graph::numE(), Graph::numV(), Graph::removeDoubles(), and Graph::setVertexData().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: