return 1 + virialSum/(2*t*N*temperature);We thank Amy Bug for pointing out this error.
gridSize = control.getInt("size");
idealGas.N = control.getInt("number of particles N");
control.setValue("Number of particles N", 40);
public void changeTemperature(double newTemperature) {
temperature = newTemperature;
w[8] = Math.exp(-8.0/temperature);
w[4] = Math.exp(-4.0/temperature);
}
F(E) = -kT ln[g(E)e-βE].
p eβJ e-6βJ = p (1-p)6eβJ e6βJ
Equation of state calculations for fast computing machines,J. Chem. Phys. 21, 1087-1092 (1953). We thank Louis Colonna-Romano for pointing out this error.