# Add external potential
external_potential = AtomicCompensationCharge([
('doping_0', 0.01),
('doping_1', 0.01)
])
left_electrode.setExternalPotential(external_potential)
# Add external potential
external_potential = AtomicCompensationCharge([
('doping_0', 0.01),
('doping_1', 0.01)
])
right_electrode.setExternalPotential(external_potential)
# Add external potential
external_potential = AtomicCompensationCharge([
('doping_0', 0.01),
('doping_1', 0.01)
])
central_region.setExternalPotential(external_potential)
# Add tags
device_configuration.addTags('doping_0', [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23])
device_configuration.addTags('doping_1', [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71])