I want to apply a bias to the gate in the gmsh_mos2d.py example.
I added one line (line 76), which results in a “…Convergence Failure”.
set_parameter(device=device, name='gate_bias', value=5)
How do I fix this?
### Set up contacts
contacts = get_contact_list(device=device)
for i in contacts:
tmp = get_region_list(device=device, contact=i)
r = tmp[0]
#print("%s %s" % (r, i))
CreateSiliconPotentialOnlyContact(device, r, i)
print(GetContactBiasName(i))
set_parameter(device=device, name=GetContactBiasName(i), value=0.0)
**set_parameter(device=device, name='gate_bias', value=5)**