InverseVolumeRamp¶
- class hoomd.variant.box.InverseVolumeRamp(initial_box, final_volume, t_start, t_ramp)¶
Bases:
BoxVariant
Produce box arrays whose inverse volume changes linearly.
- Parameters:
initial_box (hoomd.box.box_like) – The initial box.
final_volume (float) – The final volume of the box.
t_start (int) – The time step at the start of the ramp.
t_ramp (int) – The length of the ramp.
InverseVolumeRamp
produces box arrays that correspond to a box whose inverse volume (i.e., number density for a constant number of particles) varies linearly. The shape of the box remains constant, that is, the ratios of the lengths of the box vectors ( and ) and the tilt factors (, , ) remain constant. Forinitial_box
with volume andfinal_volume
,InverseVolumeRamp
returns arrays corresponding to boxes with volume :where .
Members inherited from
BoxVariant
:- __call__()¶
Evaluate the function.
Read more...
Members defined in
InverseVolumeRamp
:- __reduce__()¶
Reduce values to picklable format.