Interpolate¶
- class hoomd.variant.box.Interpolate(initial_box, final_box, variant)¶
Bases:
BoxVariant
Interpolate between two boxes linearly.
- Parameters:
initial_box (hoomd.box.box_like) – The initial box.
final_box (hoomd.box.box_like) – The final box.
variant (hoomd.variant.variant_like) – A variant used to interpolate between the two boxes.
Interpolate
returns arrays corresponding to a linear interpolation between the initial and final boxes where the minimum of the variant givesinitial_box
and the maximum givesfinal_box
:Where
initial_box
is ,final_box
is , , is the timestep, and is given byvariant
.
Members inherited from
BoxVariant
:- __call__()¶
Evaluate the function.
Read more...
Members defined in
Interpolate
:- variant¶
A variant used to interpolate between the two boxes.
- Type:
- __reduce__()¶
Reduce values to picklable format.