diff options
author | Fahim | 2016-02-29 19:59:10 +0530 |
---|---|---|
committer | Fahim | 2016-02-29 19:59:10 +0530 |
commit | 44d403c92bf62a8885e2a2cddf2bd4019c5532b9 (patch) | |
tree | 6b10c243f58f1b6a4c0679c1981d1d543cf47443 /src/kicadtoNgspice/Processing.py | |
parent | 9fec585d1fb1e0673b52e6d6d41c4c7ea88ad234 (diff) | |
download | eSim-44d403c92bf62a8885e2a2cddf2bd4019c5532b9.tar.gz eSim-44d403c92bf62a8885e2a2cddf2bd4019c5532b9.tar.bz2 eSim-44d403c92bf62a8885e2a2cddf2bd4019c5532b9.zip |
Subject: Modified code for transformer model. Modified INSTALL
instruction.
Description: Modified code for transformer model. Modified INSTALL
Diffstat (limited to 'src/kicadtoNgspice/Processing.py')
-rw-r--r-- | src/kicadtoNgspice/Processing.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/kicadtoNgspice/Processing.py b/src/kicadtoNgspice/Processing.py index 587cfcec..55c7b702 100644 --- a/src/kicadtoNgspice/Processing.py +++ b/src/kicadtoNgspice/Processing.py @@ -179,7 +179,7 @@ class PrcocessNetlist: print "Words",words print "compName",compName #Looking if model file is present - if compType != "port" and compType != "ic" and compType not in plotList: + if compType != "port" and compType != "ic" and compType not in plotList and compType != 'transfo': xmlfile = compType+".xml" #XML Model File count = 0 #Check if model of same name is present modelPath = [] @@ -331,6 +331,20 @@ class PrcocessNetlist: words = compline.split() plotText.append("plot phase("+words[1]+")") + elif compType == 'transfo': + schematicInfo.insert(index,"* "+compline) + modelname = "transfo" + comment = "* "+compline + title = "Transformer details for model "+compName + type = "NA" #It is model but do not load from xml and lib file + paramDict['primary_turns'] = "Enter the primary number of turns " + paramDict['h1_array'] = "Enter the H1 array " + paramDict['b1_array'] = "Enter the B1 array " + paramDict['area'] = "Enter iron core area " + paramDict['length'] = "Enter iron core length" + paramDict['secondar_turns'] = "Enter the secondary number of turns" + modelList.append([index,compline,modelname,compName,comment,title,type,paramDict]) + else: schematicInfo.insert(index,"* "+compline) |