TxElectricDipole

class emg3d.electrodes.TxElectricDipole(coordinates, strength=1.0, length=1.0)[source]

Bases: emg3d.electrodes.Source, emg3d.electrodes.Dipole

Electric dipole source, two electrodes connected by a wire.

Parameters
coordinatesarray_like

Dipole coordinates. Three formats are accepted:

  • [[x1, y1, z1], [x2, y2, z2]];

  • (x1, x2, y1, y2, z1, z2);

  • (x, y, z, azimuth, elevation); this format takes also the length parameter.

strengthfloat, default: 1.0

Source strength (A).

lengthfloat, default: 1.0

Length of the dipole (m). This parameter is only used if the provided coordinates are in the format (x, y, z, azimuth, elevation).