ESyS-Particle  2.3.4
frame_silo.cpp File Reference
#include "frame_silo.h"
#include "vec3.h"
#include <silo.h>
#include <vector>
#include <string>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <map>
#include <utility>
#include <sstream>
Include dependency graph for frame_silo.cpp:

Classes

struct  Arr3
 
struct  nr_part
 
struct  ParticleData
 

Typedefs

typedef vector< float > FloatVec
 
typedef vector< int > IntVec
 

Functions

DBfile * openSiloFile (const string &filename)
 
void writeBonds (DBfile *dbfile, const ParticleData &data, const vector< pair< int, int > > &bonds, map< int, int > &id2idx)
 
int getVersion (const string &infilename)
 
vector< string > getFilenames (const string &infilename, int version)
 
void readParticles (ParticleData &data, vector< pair< int, int > > &bonds, const string &infilename, bool rot)
 
void readParticlesSliced (ParticleData &data, vector< pair< int, int > > &bonds, const string &infilename, bool rot, double minZ, double maxZ)
 
void saveSiloSnap (const string &infilename, const string &outfilename, int iframe, bool with_list, const string &listfilename, bool rot)
 
void saveSiloSnapSliced (const string &infilename, const string &outfilename, int iframe, bool with_list, const string &listfilename, double slz_min, double slz_max)
 

Typedef Documentation

◆ FloatVec

typedef vector<float> FloatVec

◆ IntVec

typedef vector<int> IntVec

Function Documentation

◆ getFilenames()

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

Referenced by readParticles(), and readParticlesSliced().

Here is the caller graph for this function:

◆ getVersion()

int getVersion ( const string &  infilename)

Referenced by readParticles(), and readParticlesSliced().

Here is the caller graph for this function:

◆ openSiloFile()

DBfile* openSiloFile ( const string &  filename)

◆ readParticles()

void readParticles ( ParticleData data,
vector< pair< int, int > > &  bonds,
const string &  infilename,
bool  rot 
)

References ParticleData::append(), getFilenames(), getVersion(), esys::lsm::bpu::iter(), and ParticleData::reserve().

Referenced by saveSiloSnap(), and saveSiloSnapSliced().

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

◆ readParticlesSliced()

void readParticlesSliced ( ParticleData data,
vector< pair< int, int > > &  bonds,
const string &  infilename,
bool  rot,
double  minZ,
double  maxZ 
)

References ParticleData::append(), getFilenames(), getVersion(), esys::lsm::bpu::iter(), ParticleData::reserve(), and Vec3::Z().

Here is the call graph for this function:

◆ saveSiloSnap()

void saveSiloSnap ( const string &  infilename,
const string &  outfilename,
int  iframe,
bool  with_list,
const string &  listfilename,
bool  rot 
)

References ParticleData::angvel, ParticleData::id, esys::lsm::bpu::iter(), NULL, openSiloFile(), ParticleData::pos, ParticleData::rad, readParticles(), ParticleData::tag, ParticleData::vel, writeBonds(), Arr3::x, Arr3::y, and Arr3::z.

Referenced by main().

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

◆ saveSiloSnapSliced()

void saveSiloSnapSliced ( const string &  infilename,
const string &  outfilename,
int  iframe,
bool  with_list,
const string &  listfilename,
double  slz_min,
double  slz_max 
)

writes a slice, doesn't write bonds

References ParticleData::angvel, ParticleData::id, esys::lsm::bpu::iter(), NULL, openSiloFile(), ParticleData::pos, ParticleData::rad, readParticles(), ParticleData::tag, ParticleData::vel, Arr3::x, Arr3::y, and Arr3::z.

Referenced by main().

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

◆ writeBonds()

void writeBonds ( DBfile *  dbfile,
const ParticleData data,
const vector< pair< int, int > > &  bonds,
map< int, int > &  id2idx 
)

References esys::lsm::bpu::iter(), NULL, ParticleData::pos, ParticleData::rad, Arr3::x, Arr3::y, and Arr3::z.

Referenced by saveSiloSnap().

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