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
Variantis accepted along with float instances and objects convertible to float. They are internally converted to variants of typeConstantviaConstant(float(a))whereais the float or float convertible object.Attributes that are
Variantobjects can be set via avariant_likeobject. alias ofVariant|float
Modules
Classes