|
ESyS-Particle
2.3.4
|
#include "read.h"#include <vector>#include <fstream>#include <iostream>#include <algorithm>#include <iterator>#include <cmath>#include <map>#include "Foundation/vec3.h"
Functions | |
| int | get_version (const string &infilename) |
| vector< string > | get_filenames (const string &infilename, int version) |
| void | read_and_write_profile_r (const string &infilename, const string &outfilename, double min, double max, int nbin, bool debug_on, bool grad, int dir, int mintag) |
| void | read_and_write_profile_rel (const string &infilename1, const string &infilename2, const string &outfilename, double min, double max, int nbin, bool debug_on, bool grad, int dir) |
| void | write_vtk_header (ofstream &outfile, int nx, int ny, int nz, double x0, double dx, double y0, double dy, double z0, double dz) |
| void | read_and_write_disp_grid (const string &infilename, const string &outfilename, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double cellsize, bool grad, int udim, int gdim) |
| void | read_and_write_poros_grid (const string &infilename, const string &outfilename, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double cellsize) |
| vector<string> get_filenames | ( | const string & | infilename, |
| int | version | ||
| ) |
Referenced by read_and_write_disp_grid(), read_and_write_poros_grid(), read_and_write_profile_r(), and read_and_write_profile_rel().

| int get_version | ( | const string & | infilename | ) |
Get snapshot version.
| infilename | the file name of the header file (incl. the _0.txt part) |
Referenced by read_and_write_disp_grid(), read_and_write_poros_grid(), read_and_write_profile_r(), and read_and_write_profile_rel().

| void read_and_write_disp_grid | ( | const string & | infilename, |
| const string & | outfilename, | ||
| double | xmin, | ||
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| double | cellsize, | ||
| bool | grad, | ||
| int | udim, | ||
| int | gdim | ||
| ) |
read snapshot and write 3D grid VTK file of x-displacement
| infilename | name of the input file (the *_0.txt) |
| outfilename | name of the output file |
| xmin | minimum of the x-range |
| xmax | maximum of the x-range |
| ymin | minimum of the y-range |
| ymax | maximum of the y-range |
| zmin | minimum of the z-range |
| zmax | maximum of the z-range |
| cellsize | the size of a grid cell (1 dimension, cells are cubes) |
| grad | displacement (gdim=false) or strain (grad=true) |
| udim | component of displacement |
| gdim | direction of derivative |
References get_filenames(), get_version(), esys::lsm::bpu::iter(), write_vtk_header(), Vec3::X(), Vec3::Y(), and Vec3::Z().
Referenced by main().


| void read_and_write_poros_grid | ( | const string & | infilename, |
| const string & | outfilename, | ||
| double | xmin, | ||
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| double | cellsize | ||
| ) |
read snapshot and write 3D grid VTK file of porosity
| infilename | name of the input file (the *_0.txt) |
| outfilename | name of the output file |
| xmin | minimum of the x-range |
| xmax | maximum of the x-range |
| ymin | minimum of the y-range |
| ymax | maximum of the y-range |
| zmin | minimum of the z-range |
| zmax | maximum of the z-range |
| cellsize | the size of a grid cell (1 dimension, cells are cubes) |
References get_filenames(), get_version(), esys::lsm::bpu::iter(), write_vtk_header(), Vec3::X(), Vec3::Y(), and Vec3::Z().
Referenced by main().


| void read_and_write_profile_r | ( | const string & | infilename, |
| const string & | outfilename, | ||
| double | min, | ||
| double | max, | ||
| int | nbin, | ||
| bool | debug_on, | ||
| bool | grad, | ||
| int | dir, | ||
| int | mintag | ||
| ) |
read snapshot and write y-profile of x-displacement
| infilename | name of the input file (the *_0.txt) |
| outfilename | name of the output file |
| ymin | minimum of the y-range |
| ymax | maximum of the y-range |
| nbin | number of bins |
| dir | direction of binning : 0->x, 1->y, 2->z |
| mintag | minimum particle tag considered |
References get_filenames(), get_version(), esys::lsm::bpu::iter(), Vec3::X(), Vec3::Y(), and Vec3::Z().
Referenced by main().


| void read_and_write_profile_rel | ( | const string & | infilename1, |
| const string & | infilename2, | ||
| const string & | outfilename, | ||
| double | min, | ||
| double | max, | ||
| int | nbin, | ||
| bool | debug_on, | ||
| bool | grad, | ||
| int | dir | ||
| ) |
read 2 snapshot and write y-profile of x-displacement between snapshots
| infilename1 | name of the 1st input file (the *_0.txt) |
| infilename2 | name of the 2nd input file (the *_0.txt) |
| outfilename | name of the output file |
| ymin | minimum of the y-range |
| ymax | maximum of the y-range |
| nbin | number of bins |
| dir | direction of binning : 0->x, 1->y, 2->z |
References get_filenames(), get_version(), esys::lsm::bpu::iter(), Vec3::X(), Vec3::Y(), and Vec3::Z().
Referenced by main().


| void write_vtk_header | ( | ofstream & | outfile, |
| int | nx, | ||
| int | ny, | ||
| int | nz, | ||
| double | x0, | ||
| double | dx, | ||
| double | y0, | ||
| double | dy, | ||
| double | z0, | ||
| double | dz | ||
| ) |
write VTK header
| outfile | the output file |
| nx | |
| ny | |
| nz | |
| x0 | |
| dx | |
| y0 | |
| dy | |
| z0 | |
| dz |
Referenced by read_and_write_disp_grid(), and read_and_write_poros_grid().
