Skip to content

electrode_array.m

Calvin Eiber edited this page Jun 30, 2021 · 1 revision

This can be used to generate a pre-specified array, but this can also parse an input structure to generate an electrode array pattern spec which can be digested by mesh.insert_gmsh_electrodes. The output of this module can be visualised using plots.preview_layout

The following fields will be generated if not present at input:

  • DomainSize (±) [x y z]
  • ElectrodePositions [x y z], where y is normal to the planar array and the nerve lies along the x-axis
  • ElectrodeDimensions [x (width) y_inset z (height)]
  • ElectrodeTypeIndex [id], for multiple rows of e.ElectrodeDimensions, what size/shape is the nth electrode?

The following fields will be digested if present:

  • BipolarWithinPairSpacing
  • BipolarBetweenPairSpacing, BetweenElectrodeSpacing
  • n_ElectrodePairs, n_Bipoles (generates bipolar electrodes)
  • n_Tripoles
  • n_Electrodes (generates equispaced monopolar electrodes)
  • ElectrodeSize (alias for ElectrodeDimensions)

Missing dimensions for ElectrodeDimensions and ElectrodePositions are expanded: if only one dimension is used, assume that dimension was the X dimension. If two dims were used, assume they were X and Z.

If a non-standard array is generated, plots.preview_layout will be called to make sure what you've generated is what you wanted.

models.electrode_array is part of package +models.

Default electrode array:

plots_preview_layout

Clone this wiki locally