summaryrefslogtreecommitdiff
path: root/js/Electrical/NPN.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-18 17:08:56 +0530
committerSunil Shetye2018-06-18 17:08:56 +0530
commit0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (patch)
tree6ae63f7633d80f9a70be43ebe789eb0c3a3ec364 /js/Electrical/NPN.js
parent8e6e9558ba4963ea71b7a6efc11e0b44e7c9040a (diff)
downloadsci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.gz
sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.bz2
sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.zip
change order of functions
Diffstat (limited to 'js/Electrical/NPN.js')
-rw-r--r--js/Electrical/NPN.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js
index a7598f46..83ad250d 100644
--- a/js/Electrical/NPN.js
+++ b/js/Electrical/NPN.js
@@ -1,24 +1,5 @@
/* autogenerated from "macros/Electrical/NPN.sci" */
function NPN() {
-NPN.prototype.get = function NPN() {
-}
-NPN.prototype.set = function NPN() {
-x=arg1;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-model=arg1.model;
-x=arg1;
-exprs=x.graphics.exprs;
-while (true) {
-[ok,Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax,exprs]=scicos_getvalue(["Set NPN block parameters:",""],["Bf : Forward beta","Br : Reverse beta","Is : Transport saturation current","Vak : Early voltage (inverse), 1/Volt","Tauf: Ideal forward transit time","Taur: Ideal reverse transit time","Ccs : Collector-substrat(ground) cap.","Cje : Base-emitter zero bias depletion cap.","Cjc : Base-coll. zero bias depletion cap.","Phie: Base-emitter diffusion voltage","Me : Base-emitter gradation exponent","Phic: Base-collector diffusion voltage","Mc : Base-collector gradation exponent","Gbc : Base-collector conductance","Gbe : Base-emitter conductance","Vt : Voltage equivalent of temperature","EMinmax: if x > EMinMax, the exp(x) is linearized"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
-if (!ok) {
-break
-}
-x.model.equations.parameters[2-1]=list(Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax);
-x.graphics.exprs=exprs;
-break
-}
-}
NPN.prototype.define = function NPN() {
ModelName="NPN";
PrametersValue=[50,0.1,0,0.02,1.200e-10,5.000e-09,1.000e-12,4.000e-13,5.000e-13,0.8,0.4,0.8,0.333,1.000e-15,1.000e-15,0.02585,40];
@@ -69,4 +50,23 @@ x.graphics.out_implicit=Typeout;
}
NPN.prototype.details = function NPN() {
}
+NPN.prototype.get = function NPN() {
+}
+NPN.prototype.set = function NPN() {
+x=arg1;
+graphics=arg1.graphics;
+exprs=graphics.exprs;
+model=arg1.model;
+x=arg1;
+exprs=x.graphics.exprs;
+while (true) {
+[ok,Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax,exprs]=scicos_getvalue(["Set NPN block parameters:",""],["Bf : Forward beta","Br : Reverse beta","Is : Transport saturation current","Vak : Early voltage (inverse), 1/Volt","Tauf: Ideal forward transit time","Taur: Ideal reverse transit time","Ccs : Collector-substrat(ground) cap.","Cje : Base-emitter zero bias depletion cap.","Cjc : Base-coll. zero bias depletion cap.","Phie: Base-emitter diffusion voltage","Me : Base-emitter gradation exponent","Phic: Base-collector diffusion voltage","Mc : Base-collector gradation exponent","Gbc : Base-collector conductance","Gbe : Base-emitter conductance","Vt : Voltage equivalent of temperature","EMinmax: if x > EMinMax, the exp(x) is linearized"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
+if (!ok) {
+break
+}
+x.model.equations.parameters[2-1]=list(Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax);
+x.graphics.exprs=exprs;
+break
+}
+}
}