amep.thermo.Tconf#
- amep.thermo.Tconf(coords: ndarray, box_boundary: ndarray, drU, dr2U, d=2, rcut: float = 1.122, pbc: bool = True)#
Calculates the configurational temperature averaged over all particles.
Also see Refs. [1], [2] and [3].
References
- Parameters:
coords (np.ndarray of shape (N,3)) – Particle coordinates.
box_boundary (np.ndarray of shape (3,2)) – Boundary of the simulation box in the form of np.array([[xmin, xmax], [ymin, ymax], [zmin, zmax]]).
drU (function) – First derivative of the potential energy function of one particle.
dr2U (function) – Second derivative of the potential energy function of one particle.
d (int, optional) – Spatial dimension. The current version only works for d=2 and d=3. The default is 2.
rcut (float, optional) – Cutoff radius of the interaction potential. The default is 1.122.
pbc (bool, optional) – If True, periodic boundary conditions are applied. The default is True.
- Returns:
temp (float) – Average configurational temperature.
nom (float) – Nominator.
denom (float) – Denominator.