GithubHelp home page GithubHelp logo

pyeda's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyeda's Issues

Convergence issue with modified diode example

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

heterojunctions

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

The code example of fitLevel49.py gives an error

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?

importing pyEDA.Device.PhysUnit error

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,

  1. I added "args.append("--add-package=pyEDA/Device")" to pydoctor file.
  2. I added Device to the setup.py files so that it now reads "packages=['pyEDA', 'pyEDA.Circuit', 'pyEDA.Compact', 'pyEDA.FVMEqn', 'pyEDA.Mesh', 'pyEDA.PDE', 'pyEDA.Device'],)"
  3. I added Device to the init.py file so that it now reads "all=['Circuit', 'Compact', 'FVMEqn', 'Mesh', 'PDE', 'Device']"

I have no idea if all of this is necessary, but it works now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.