Power

class hoomd.variant.Power(A, B, power, t_start, t_ramp)

Bases: Variant

An approach from initial to final value following t**power.

Parameters:
  • A (float) – The start value.

  • B (float) – The end value.

  • power (float) – The power of the approach to B.

  • t_start (int) – The start time step.

  • t_ramp (int) – The length of the ramp.

Power holds the value A until time t_start. Then it progresses at \(t^{\mathrm{power}}\) from A to B over t_ramp steps and holds the value B after that.

Example plot of a power variant.

Example:

variant = hoomd.variant.Power(
    A=2, B=8, power=1 / 10, t_start=10, t_ramp=20
)

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 Power:

A

The start value.

Type:

float

B

The end value.

Type:

float

power

The power of the approach to B.

Type:

float

t_start

The start time step.

Type:

int

t_ramp

The length of the ramp.

Type:

int