qimpy.dft.geometry.thermostat.Berendsen
- class Berendsen(*, dynamics, B0=2.2 GPa, checkpoint_in=(None, ''))
Bases:
TreeNodeBerendsen velocity-rescaling thermostat and/or barostat.
- Parameters:
dynamics (Dynamics)
B0 (UnitOrFloat)
checkpoint_in (CheckpointPath)
- __init__(*, dynamics, B0=2.2 GPa, checkpoint_in=(None, ''))
Specify thermostat parameters.
- Parameters:
B0 (Unit | float) – [Input file] Characteristic bulk modulus for Berendsen barostat. Default value corresponds to water, which should be acceptable for typical liquid simulations, but maybe too small for most solids. Make sure to set correct order of magnitude of B0 in order for pressure to be equilibrated on the expected t_damp_P time scale.
dynamics (Dynamics)
checkpoint_in (CheckpointPath)
- Return type:
None
Methods
Specify thermostat parameters.
add_childConstruct child object self.`attr_name` of type cls.
add_child_one_ofInvoke add_child on one of several child options in args.
Extra velocity-dependent acceleration due to thermostat/barostat.
No optional velocity components for this thermostat method.
No optional gradient terms for this thermostat method.
save_checkpointSave self and all children in hierarchy to cp_path.
No optional velocity components for this thermostat method.
Return velocity after dt, given current velocity and acceleration.
Attributes
dynamicschild_namesNames of attributes with child objects.
variant_nameVersion of children having variants (if any)
- extra_acceleration(velocity)
Extra velocity-dependent acceleration due to thermostat/barostat.
- Parameters:
velocity (Gradient)
- Return type:
Gradient
- get_velocity(velocity)
No optional velocity components for this thermostat method.
- Parameters:
velocity (Gradient)
- Return type:
None
- initialize_gradient(gradient)
No optional gradient terms for this thermostat method.
- Parameters:
gradient (Gradient)
- Return type:
None
- set_velocity(velocity)
No optional velocity components for this thermostat method.
- Parameters:
velocity (Gradient)
- Return type:
None
- step(velocity, acceleration, dt)
Return velocity after dt, given current velocity and acceleration.
- Parameters:
velocity (Gradient)
acceleration (Gradient)
dt (float)
- Return type:
Gradient