The FixNVTRescale permits rescaling of the velocities every applyEvery turn in the simulation for maintaining the temperature at some specified set point T. Temperature set points may be specified as a constant float value, as a list of temperatures with associated time intervals, or as a python function.
An isokinetic thermostat may be instantiated using any of the following constructors:
FixNVTRescale(state,handle,groupHandle,temp,applyEvery)
FixNVTRescale(state,handle,groupHandle,tempFunc,applyEvery)
FixNVTRescale(state,handle,groupHandle,intervals,temps,applyEvery)
Arguments
This Fix contains no python member functions.
# create a simulation state to which we will apply the fix
state = State()
# make an instance of the fix; T = 250.0 K, applyEvery = 7
fixNVT = fixNVTRescale(state,"nvt","all",250.0,7)
# activate the fix
state.activateFix(fixNVT)