Kinetic energy density mode

The module computes the complex Fourier modes of the kinetic energy density field,

\rho(\vec k) = \sum_{j=1}^N \frac{m_j \vec v_j^2}{2} \exp(\text{i} \vec k \cdot \vec r_j) \/.

The auxiliary module halmd.observables.utility.wavevector provides suitable wavevectors that are compatible with the reciprocal lattice of the periodic simulation box.

class halmd.observables.kinetic_energy_density_mode(args)

Construct instance of halmd.observables.kinetic_energy_density_mode.

Parameters:
Returns:

instance of kinetic energy density mode sampler

disconnect()

Disconnect sampler from profiler.

wavevector

The wavevector instance passed upon construction.

label

The label of the underlying particle group.

count

The particle count N of the underlying particle group.

class writer(args)

Write time series of kinetic energy modes to file.

Parameters:
  • args (table) – keyword arguments
  • args.file – instance of file writer
  • args.location (string table) – location within file (optional)
  • args.every (number) – sampling interval
Returns:

instance of kinetic energy density mode writer

The argument location specifies a path in a structured file format like H5MD given as a table of strings. It defaults to {"structure", self.label, "kinetic_energy_density_mode"}.

disconnect()

Disconnect density mode writer from observables sampler.