simnibs.simulation.tdcs

simnibs.simulation.tdcs(mesh, cond, currents, electrode_surface_tags, n_workers=1, units='mm', solver_options=None)

Simulates a tDCS electric potential.

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