simnibs.simulation.electric_dipole(mesh, cond, dipole_positions, dipole_moments, solver_options=None)

Electric dipole simulations using the partial integration method

  • mesh (simnibs.mesh_io.Msh) – Mesh file with geometry information

  • cond (simnibs.msh.mesh_io.ElementData) – An ElementData field with conductivity information

  • dipole_positions (Nx3 ndarray) – Positions of the dipoles. Each dipole will be a separate simulation

  • dipole_moments (Nx3 ndarray) – Moment of each dipole

  • solver_options (str (optional)) – Options for the sparse solver. Default: CG + AMG


v – Electric potential caused by each dipole

Return type:

np.ndarray of size