-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAtomClass.h
More file actions
34 lines (24 loc) · 815 Bytes
/
AtomClass.h
File metadata and controls
34 lines (24 loc) · 815 Bytes
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
#ifndef GUARD_AtomClass_h
#define GUARD_AtomClass_h
class AtomClass{
// Values extracted from the data file
public:
AtomClass();
~AtomClass();
void readAtomValues(int, std::string*, std::string*);
void writeAtomData();
long int id; // atom #
unsigned short int type; //atom type expressed as integers like 1, 2 etc.
double xpos, ypos, zpos; // x, y and z coordinates
// atomic volume, centro symetric parameter, potential energy per atom
double vol, csym, pe;
// Atomic stress tensors - virial stressi.e. sxx, syy, szz, sxy, syz, szx, sii and Svm
double *sij;
// difference between this and the reference state
double *delSij;
private:
void setZeros();
double vonMisses(double, double, double, double, double, double);
double meanStress(double, double, double);
};
#endif