mstk.ommhelper.force.electric_field

mstk.ommhelper.force.electric_field(system, particles, strength)

Apply external electric field to selected particles in a system.

The unit of electric field strength is V/nm.

Parameters:
  • system (mm.System) –

  • particles (list of int) –

  • strength (list of float) – Strength of electric field in x, y and z directions, in unit of volt/nm

Returns:

force

Return type:

mm.CustomExternalForce