-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathatom.h
51 lines (40 loc) · 1.02 KB
/
atom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef DUMP_ATOM_H
#define DUMP_ATOM_H
/* -----------------------------------------------------------------------------
* A class which contains one frame of the atom style dump of lammps
* -------------------------------------------------------------------------- */
#include "memory.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include <map>
#include <string>
#include "global.h"
using namespace std;
class DumpAtom {
public:
DumpAtom(FILE *fp, const char *);
~DumpAtom();
char *fname;
int iframe;
int natom, ntype, tstep;
int initialized;
double h[6];
int *attyp; // note: atom IDs go from 1 to natom; type ID from 1 to ntype
double **atpos;
void wrap2ref(DumpAtom *);
void apply_pbc(double *);
private:
double xlo, xhi, ylo, yhi, zlo, zhi;
double lx, ly, lz, h_inv[6];
double xy, xz, yz;
double hx, hy, hz;
double axis[3][3];
Memory *memory;
int cartesian, triclinic;
double **x, **s;
void car2dir();
void dir2car();
int count_words(const char *);
};
#endif