Skip to content

Commit

Permalink
compare onoffmaps using linexp elements
Browse files Browse the repository at this point in the history
  • Loading branch information
leobrowning92 committed Jul 18, 2018
1 parent dfd33ec commit 603faeb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
7 changes: 6 additions & 1 deletion cnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@

class LinExpTransistor():
def __init__(self,type,onoffmap=0):
# m-s switching from G=1 to G=5e-5
onoffmap0={'ms':0.5,'sm':0.5, 'mm':1e-5,'ss':1e-5,'vs':1e-5,'sv':1e-5,'vm':1e-5,'mv':1e-5}
onoffmappings=[onoffmap0]
# m-s and electrode-s switching from G=1 to G=5e-5
onoffmap1={'ms':0.5,'sm':0.5, 'mm':1e-5,'ss':1e-5,'vs':0.5,'sv':0.5,'vm':1e-5,'mv':1e-5}
# m-s, s-s and electrode-s switching from G=1 to G=5e-5
onoffmap1={'ms':0.5,'sm':0.5, 'mm':1e-5,'ss':0.5,'vs':0.5,'sv':0.5,'vm':1e-5,'mv':1e-5}
onoffmappings=[onoffmap0,onoffmap1,onoffmap2]
self.gate_voltage=0
self.type=type
self.alpha=onoffmappings[onoffmap][type]
Expand Down
Loading

0 comments on commit 603faeb

Please sign in to comment.