maxwelllink.tools.harmonic_oscillator_helper module¶
Harmonic oscillator helper functions for MD simulations.
- class maxwelllink.tools.harmonic_oscillator_helper.DummyInitializer[source]¶
Bases:
objectA dummy initializer that returns zero momenta and positions.
- class maxwelllink.tools.harmonic_oscillator_helper.DummyThermostat[source]¶
Bases:
objectA dummy thermostat that does nothing.
- class maxwelllink.tools.harmonic_oscillator_helper.LangevinThermostat[source]¶
Bases:
objectLangevin thermostat implementation for the cavity mode.
- __init__(temperature_au, dt_au, tau_au, random_seed=114514)[source]¶
- Parameters:
temperature_au (float) – Temperature in atomic units. k_B is set to 1 in atomic units, so temperature_au is effectively the thermal energy. Must be positive.
dt_au (float) – Time step in atomic units. Must be positive.
tau_au (float) – Relaxation time in atomic units. Must be positive.
random_seed (int, optional) – Random seed for reproducible results.
- class maxwelllink.tools.harmonic_oscillator_helper.MaxwellBoltzmannInitializer[source]¶
Bases:
objectA class to initialize particle velocities based on the Maxwell-Boltzmann distribution at the given temperature.