def GetPressure(self): """Calculate instantaneous kinetic pressure [Pa] of system.""" gradient.GetPressure(self)
def GetPressure(self): """Calculate instantaneous kinetic pressure [Pa] of system.""" self.virial = gradient.GetVirial(self.g_total, self.atoms) self.pressure = gradient.GetPressure(self.n_atoms, self.temperature, self.virial, self.volume)