Implements the Berendsen barostat for maintaining pressure at a specified set point pressure P through rescaling of the volume every applyEvery turns.
FixPressureBerendsen(state,handle,pressure,period,applyEvery)
Arguments
setParameters(maxDilation)
Arguments
# create a simulation state to which we will apply the fix
state = State()
# make an instance of the fix; specify pressure of 0.5, period of 10, applyEvery 1
fixPressure = FixPressureBerendsen(state,"npt",0.5,10,1)
# call set parameters to change maxDilation to 0.0001
fixPressure.setParameters(0.0001)
# activate the fix
state.activateFix(fixPressure)