simnibs.simulation.tdcs_neumann

simnibs.simulation.tdcs_neumann(mesh, cond, currents, electrode_surface_tags)

Simulates a tDCS electric potential using Neumann boundary conditions on the electrodes.

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

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

  • currents (list or ndarray) – A list of currents going though each electrode

  • electrode_surface_tags (list) – A list of the indices of the surfaces where the dirichlet BC is to be applied

Returns:

potential – Total electric potential

Return type:

simnibs.msh.mesh_io.NodeData