Electric Field Solver

vlapy.core.field.compute_charges(f, dv)

Computes a simple moment of the distribution function along the velocity axis using the trapezoidal rule

Parameters
  • f – distribution function. (numpy array of shape (nx, nv))

  • dv – velocity-axis spacing (float)

Returns

vlapy.core.field.get_total_electric_field(driver_field, f, dv, one_over_kx)

Allows adding a driver field

Parameters
  • driver_field – an electric field (numpy array of shape (nx,))

  • f – distribution function. (numpy array of shape (nx, nv))

  • dv – velocity-axis spacing (float)

  • one_over_kx – one over real-space wavenumber axis (numpy array of shape (nx,))

Returns

vlapy.core.field.solve_for_field(charge_density, one_over_kx)

Solves for the net electric field after subtracting ion charge

Parameters
  • charge_density – charge-density (numpy array of shape (nx,))

  • one_over_kx – one over real-space wavenumber axis (numpy array of shape (nx,))

Returns