diff options
author | Fahim | 2016-03-02 13:42:25 +0530 |
---|---|---|
committer | Fahim | 2016-03-02 13:42:25 +0530 |
commit | 0b0949cb657b07341c9cb17a9bce5c7e1aee09f4 (patch) | |
tree | 85f0adde2d87490f8cda367a9c80957215d83b61 /src/kicadtoNgspice/Convert.py | |
parent | 9347ac2e7c7d7c0693cd85327297b519196dbb90 (diff) | |
download | eSim-0b0949cb657b07341c9cb17a9bce5c7e1aee09f4.tar.gz eSim-0b0949cb657b07341c9cb17a9bce5c7e1aee09f4.tar.bz2 eSim-0b0949cb657b07341c9cb17a9bce5c7e1aee09f4.zip |
Bug fixing for transformer model
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py index c7e03210..0a38b28e 100644 --- a/src/kicadtoNgspice/Convert.py +++ b/src/kicadtoNgspice/Convert.py @@ -225,11 +225,11 @@ class Convert: num_turns2=str(self.obj_track.model_entry_var[start+5].text()) if num_turns2=="": num_turns2="620" addmodelLine=".model "+line[3]+"_primary lcouple (num_turns= "+num_turns+")" - modelParamValue.append([line[0],addmodelLine,line[4]]) + modelParamValue.append([line[0],addmodelLine,"*primary lcouple"]) addmodelLine=".model "+line[3]+"_iron_core core ("+bh_array+" area = "+area+" length ="+length +")" - modelParamValue.append([line[0],addmodelLine,line[4]]) + modelParamValue.append([line[0],addmodelLine,"*iron core"]) addmodelLine=".model "+line[3]+"_secondary lcouple (num_turns ="+num_turns2+ ")" - modelParamValue.append([line[0],addmodelLine,line[4]]) + modelParamValue.append([line[0],addmodelLine,"*secondary lcouple"]) except Exception as e: print "Caught an exception in transfo model ",line[1] print "Exception Message : ",str(e) |