From 44d403c92bf62a8885e2a2cddf2bd4019c5532b9 Mon Sep 17 00:00:00 2001 From: Fahim Date: Mon, 29 Feb 2016 19:59:10 +0530 Subject: Subject: Modified code for transformer model. Modified INSTALL instruction. Description: Modified code for transformer model. Modified INSTALL --- src/kicadtoNgspice/Processing.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/kicadtoNgspice/Processing.py') 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) -- cgit