-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvacf.h
49 lines (39 loc) · 854 Bytes
/
vacf.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
#ifndef VACF_H
#define VACF_H
#include "complex.h"
#include "fftw3.h"
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "read_data.h"
#include "memory.h"
class VACF {
public:
VACF(int, char **);
~VACF();
ReadVel *vels;
Memory *memory;
private:
int ncount, nlag, sysdim;
int dstep; // (steps[nalg] - steps[0])/nlag
int dlag;
double **sum, *vv0;
double **pdos;
double dt; // MD time step size in unit of ps
int ismear; // smearing method
double tau0, dtau; // smearing parameters, in unit of dt
char *outacf, *outdos;
void read_acf(char *);
void compute_acf(char *);
double smearing(int);
void compute_dos();
int ndos;
double vmin, vmax, dv, vstep;
void write_acf();
void write_dos();
void help();
int count_words(const char *);
void normal_dos();
void normal_acf();
};
#endif