Constant

class hoomd.variant.Constant(value)

Bases: Variant

A constant value.

Parameters:

value (float) – The value.

Constant returns value at all time steps.

Example:

variant = hoomd.variant.Constant(1.0)

Members inherited from Variant:

__call__()

Evaluate the function. Read more...

property max

Maximum value of the variant. Read more...

property min

Minimum value of the variant. Read more...


Members defined in Constant:

value

The value.

Type:

float