variant¶
A Variant
object represents a function of the time step. Some
operations accept Variant
values for certain parameters, such as the
kT
parameter to hoomd.md.methods.thermostats.Bussi
.
See Variant
for details on creating user-defined variants or use one of the
provided subclasses.
- hoomd.variant.variant_like¶
Objects that are like a variant.
Any subclass of
Variant
is accepted along with float instances and objects convertible to float. They are internally converted to variants of typeConstant
viaConstant(float(a))
wherea
is the float or float convertible object.Attributes that are
Variant
objects can be set via avariant_like
object. alias ofVariant
|float
Modules
Classes