cogenda / pyeda Goto Github PK
View Code? Open in Web Editor NEWA python framework for EDA applications.
Home Page: http://www.cogenda.com
A python framework for EDA applications.
Home Page: http://www.cogenda.com
Hi
I have been looking into pyEDA to better understand the Genius code. I am trying to run a modified version of the diode example. The diode provided as an example is a P-N diode ( net doping Nd- Na = C < 0 for x < 0). This example runs well. However, when I change the structure into an N-P diode (C > 0 for x < 0), I get warnings regarding a singular jacobian matrix. The final result is junk.
I think I am missing something trivial. Does anyone have an idea as to what might be happening?
Regards
Arvind Ajoy
Has anyone had problems adapting the 'diode' script to function with heterojunctions? I edited the DDEqns.py file to include more materials.
When I try making a p-Cu2O/n-ZnO junction, the program determines an unrealistically high voltage for the Cu2O.
Here are the two materials that I added to DDEqns.py:
class Cu2OMaterial(object):
def __init__(self):
self.eps = 6.3*Unit.eps0
self.affinity = 3.2*Unit.V
self.Eg = 2.0*Unit.V
kb = 1.3806503e-23
T = 298.18
hbar = 1.054571596e-34
m_e=9.10938188*10**-31 #kg
mh=.58*m_e #"Thin film deposition of Cu2O and application for solar cells"
me=.99*m_e #Biccari thesis
self.Nv=2.*(mh*kb*T/(2.*np.pi*hbar**2))**(3./2. )#m**-3
self.Nc=2.*(me*kb*T/(2.*np.pi*hbar**2))**(3./2.) #m**-3
self.ni = sqrt(self.Nc*self.Nv*exp(-self.Eg/(kb*T/1.602e-19))) * 1./100.**3.*pow(Unit.cm, -3.0)
self.mun = 100*Unit.cm*Unit.cm/Unit.V/Unit.s
self.mup = 90*Unit.cm*Unit.cm/Unit.V/Unit.s
self.tau = 1e-7*Unit.s
class ZnOMaterial(object):
def __init__(self):
self.eps = 9.0*Unit.eps0 #Sze
self.affinity = 4.2*Unit.V
self.Eg = 3.3*Unit.V
kb = 1.3806503e-23
T = 298.18
hbar = 1.054571596e-34
m_e=9.10938188*10**-31 #kg
mh=.59*m_e #"Zinc Oxide Nanostructures: Synthesis and Properties" Zhiyong Fan and Jia G. Lu
me=.27*m_e #Sze
self.Nv=2.*(mh*kb*T/(2.*np.pi*hbar**2))**(3./2. )#m**-3
self.Nc=2.*(me*kb*T/(2.*np.pi*hbar**2))**(3./2.) #m**-3
self.ni = sqrt(self.Nc*self.Nv*exp(-self.Eg/(kb*T/1.602e-19))) * 1./100.**3.*pow(Unit.cm, -3.0)
self.mun = 200*Unit.cm*Unit.cm/Unit.V/Unit.s #"Zinc Oxide Nanostructures: Synthesis and Properties" Zhiyong Fan and Jia G. Lu
self.mup = 30*Unit.cm*Unit.cm/Unit.V/Unit.s #"Zinc Oxide Nanostructures: Synthesis and Properties" Zhiyong Fan and Jia G. Lu
self.tau = 1e-7*Unit.s
Hi
The code example of fitLevel49.py gives an error.
$ python fitLevel49.py
...
File "BSIM3v3.py", line 684, in _DC_Curr
for v in output:
NameError: global name 'output' is not defined
In order to fix this, I added default arguments "output = ('Id', 'Is', 'Isub')" to _DC_Curr (). But I do not know the author's intention. Is this correct?
When I tried to run diode.py, it gave me an error saying importing pyEDA.Device.PhysUnit could not be found. It turns out that Device package was not a part of the install.
To correct this,
I have no idea if all of this is necessary, but it works now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.