espressopp.integrator.LangevinThermostatOnGroup

Thermalize particles in the ParticleGroup only.

espressopp.integrator.LangevinThermostatOnGroup(system, particle_group)
Parameters:

Example

>>> pg = espressopp.ParticleGroup(system.storage)
>>> for pid in range(10):
>>>     pg.add(pid)
>>> thermostat = espressopp.integrator.LangevinThermostatOnGroup(system, pg)
>>> thermostat.temperature = 1.0
>>> thermostat.gamma = 1.0
>>> integrator.addExtension(thermostat)