|
ESyS-Particle
2.3.4
|
#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>
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 vector<float> FloatVec |
| typedef vector<int> IntVec |
| vector<string> getFilenames | ( | const string & | infilename, |
| int | version | ||
| ) |
Referenced by readParticles(), and readParticlesSliced().

| int getVersion | ( | const string & | infilename | ) |
Referenced by readParticles(), and readParticlesSliced().

| DBfile* openSiloFile | ( | const string & | filename | ) |
References NULL.
Referenced by saveSiloSnap(), saveSiloSnapSliced(), ScalarParticleFieldMaster::writeAsSILO(), VectorParticleFieldMaster::writeAsSILO(), and VectorWallFieldMaster::writeAsSILO().

| 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().


| 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().

| 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().


| 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().


| 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().

