- #1
yklee
- 1
- 0
- Homework Statement
- on going
- Relevant Equations
- $$c(t) = \langle A(t'+t) A(t) \rangle - \langle A \rangle^{2} = \frac{1}{t_{max}-t}\sum_{t'=0}^{t_{max}-t} A(t'+t)A(t) - \frac{1}{t_{max}-t}\sum_{t'=0}^{t_{max}-t}A(t'+t) \cdot \frac{1}{t_{max}-t} \sum_{t'=0}^{t_{max}-t}A(t)$$
Dear Mr. and Ms.,
I am trying to measure the autocorrelation functions of 2D ising model based on the equation given by
where A(t) denote a measure. I calculate a c(t) of magnetization. I calculated in this way
However, the results seems not good. Can you discuss the wrong part of my calculation?
I am trying to measure the autocorrelation functions of 2D ising model based on the equation given by
where A(t) denote a measure. I calculate a c(t) of magnetization. I calculated in this way
acf:
data_path = f"../../trajectory/data.txt"
data = np.loadtxt(data_path)
Nsteps = len(data)
acf = np.zeros(Nsteps, float)
acf[0] = 1.000
for t in range(1,Nsteps):
value = np.mean(data[t:Nsteps]*data[:Nsteps-t]) - np.mean(data[t:Nsteps])*np.mean(data[:Nsteps-t])
act[t] = value
However, the results seems not good. Can you discuss the wrong part of my calculation?
Last edited: