summaryrefslogtreecommitdiff
path: root/js/Electrical
diff options
context:
space:
mode:
authorSunil Shetye2018-07-02 22:51:03 +0530
committerSunil Shetye2018-07-02 22:51:03 +0530
commitca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch)
tree6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Electrical
parent5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff)
downloadsci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip
add options block
Diffstat (limited to 'js/Electrical')
-rw-r--r--js/Electrical/CCS.js3
-rw-r--r--js/Electrical/CVS.js3
-rw-r--r--js/Electrical/Capacitor.js5
-rw-r--r--js/Electrical/ConstantVoltage.js3
-rw-r--r--js/Electrical/CurrentSensor.js3
-rw-r--r--js/Electrical/Diode.js7
-rw-r--r--js/Electrical/Ground.js3
-rw-r--r--js/Electrical/Gyrator.js5
-rw-r--r--js/Electrical/IdealTransformer.js4
-rw-r--r--js/Electrical/Inductor.js3
-rw-r--r--js/Electrical/MOTOR.js3
-rw-r--r--js/Electrical/NMOS.js12
-rw-r--r--js/Electrical/NPN.js20
-rw-r--r--js/Electrical/OpAmp.js6
-rw-r--r--js/Electrical/PMOS.js12
-rw-r--r--js/Electrical/PNP.js20
-rw-r--r--js/Electrical/PotentialSensor.js3
-rw-r--r--js/Electrical/Resistor.js3
-rw-r--r--js/Electrical/SineVoltage.js8
-rw-r--r--js/Electrical/Switch.js5
-rw-r--r--js/Electrical/VVsourceAC.js4
-rw-r--r--js/Electrical/VariableResistor.js3
-rw-r--r--js/Electrical/VoltageSensor.js3
-rw-r--r--js/Electrical/VsourceAC.js5
24 files changed, 146 insertions, 0 deletions
diff --git a/js/Electrical/CCS.js b/js/Electrical/CCS.js
index 7617d008..6754b973 100644
--- a/js/Electrical/CCS.js
+++ b/js/Electrical/CCS.js
@@ -53,6 +53,9 @@ function CCS() {
return this.x;
}
CCS.prototype.get = function CCS() {
+ var options = {
+ }
+ return options;
}
CCS.prototype.set = function CCS() {
this.x = arg1;
diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js
index c78c81f5..59ffbd03 100644
--- a/js/Electrical/CVS.js
+++ b/js/Electrical/CVS.js
@@ -53,6 +53,9 @@ function CVS() {
return this.x;
}
CVS.prototype.get = function CVS() {
+ var options = {
+ }
+ return options;
}
CVS.prototype.set = function CVS() {
this.x = arg1;
diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js
index 66bb921b..478d4f5d 100644
--- a/js/Electrical/Capacitor.js
+++ b/js/Electrical/Capacitor.js
@@ -27,6 +27,11 @@ function Capacitor() {
return this.x;
}
Capacitor.prototype.get = function Capacitor() {
+ var options = {
+ C:["C (F)",this.C],
+ v:["Initial Voltage",this.v],
+ }
+ return options;
}
Capacitor.prototype.set = function Capacitor() {
this.C = parseFloat((arguments[0]["C"]))
diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js
index afc8b40d..1d73e05d 100644
--- a/js/Electrical/ConstantVoltage.js
+++ b/js/Electrical/ConstantVoltage.js
@@ -26,6 +26,9 @@ function ConstantVoltage() {
return this.x;
}
ConstantVoltage.prototype.get = function ConstantVoltage() {
+ var options = {
+ }
+ return options;
}
ConstantVoltage.prototype.set = function ConstantVoltage() {
this.V = parseFloat((arguments[0]["V"]))
diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js
index 3e14a6ee..e5beda39 100644
--- a/js/Electrical/CurrentSensor.js
+++ b/js/Electrical/CurrentSensor.js
@@ -23,6 +23,9 @@ function CurrentSensor() {
return this.x;
}
CurrentSensor.prototype.get = function CurrentSensor() {
+ var options = {
+ }
+ return options;
}
CurrentSensor.prototype.set = function CurrentSensor() {
this.x = arg1;
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index d8141b81..645cca15 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -29,6 +29,13 @@ function Diode() {
return this.x;
}
Diode.prototype.get = function Diode() {
+ var options = {
+ Ids:["Saturation cuurent (A)",this.Ids],
+ Vt:["Voltage equivalent to temperature (Volt)",this.Vt],
+ Maxexp:["Max exponent for linear continuation",this.Maxexp],
+ R:["R (ohm)",this.R],
+ }
+ return options;
}
Diode.prototype.set = function Diode() {
this.Ids = parseFloat((arguments[0]["Ids"]))
diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js
index eb0de336..4818f2da 100644
--- a/js/Electrical/Ground.js
+++ b/js/Electrical/Ground.js
@@ -22,6 +22,9 @@ function Ground() {
return this.x;
}
Ground.prototype.get = function Ground() {
+ var options = {
+ }
+ return options;
}
Ground.prototype.set = function Ground() {
this.x = arg1;
diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js
index 05d27e6f..0b0ec7dd 100644
--- a/js/Electrical/Gyrator.js
+++ b/js/Electrical/Gyrator.js
@@ -53,6 +53,11 @@ function Gyrator() {
return this.x;
}
Gyrator.prototype.get = function Gyrator() {
+ var options = {
+ G1:["G1",this.G1],
+ G2:["G2",this.G2],
+ }
+ return options;
}
Gyrator.prototype.set = function Gyrator() {
this.G1 = parseFloat((arguments[0]["G1"]))
diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js
index 4da364af..f74a402d 100644
--- a/js/Electrical/IdealTransformer.js
+++ b/js/Electrical/IdealTransformer.js
@@ -53,6 +53,10 @@ function IdealTransformer() {
return this.x;
}
IdealTransformer.prototype.get = function IdealTransformer() {
+ var options = {
+ N:["N",this.N],
+ }
+ return options;
}
IdealTransformer.prototype.set = function IdealTransformer() {
this.N = parseFloat((arguments[0]["N"]))
diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js
index 052b27ad..98ca66a8 100644
--- a/js/Electrical/Inductor.js
+++ b/js/Electrical/Inductor.js
@@ -26,6 +26,9 @@ function Inductor() {
return this.x;
}
Inductor.prototype.get = function Inductor() {
+ var options = {
+ }
+ return options;
}
Inductor.prototype.set = function Inductor() {
this.L = parseFloat((arguments[0]["L"]))
diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js
index a8c1d4c2..c5b1a2c3 100644
--- a/js/Electrical/MOTOR.js
+++ b/js/Electrical/MOTOR.js
@@ -18,6 +18,9 @@ function MOTOR() {
return this.x;
}
MOTOR.prototype.get = function MOTOR() {
+ var options = {
+ }
+ return options;
}
MOTOR.prototype.set = function MOTOR() {
this.x = arg1;
diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js
index f59e41fb..9d8acf42 100644
--- a/js/Electrical/NMOS.js
+++ b/js/Electrical/NMOS.js
@@ -33,6 +33,18 @@ function NMOS() {
return this.x;
}
NMOS.prototype.get = function NMOS() {
+ var options = {
+ W:["Width [m]",this.W],
+ L:["Length [m]",this.L],
+ Beta:["Transconductance parameter [A/(V*V)]",this.Beta],
+ Vt:["Zero bias threshold voltage [V]",this.Vt],
+ K2:["Bulk threshold parameter",this.K2],
+ K5:["Reduction of pinch-off region",this.K5],
+ dW:["Narrowing of channel [m]",this.dW],
+ dL:["Shortening of channel [m]",this.dL],
+ RDS:["Drain-Source-Resistance [Ohm]",this.RDS],
+ }
+ return options;
}
NMOS.prototype.set = function NMOS() {
this.W = parseFloat((arguments[0]["W"]))
diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js
index a02e0de3..b54740fa 100644
--- a/js/Electrical/NPN.js
+++ b/js/Electrical/NPN.js
@@ -53,6 +53,26 @@ function NPN() {
return this.x;
}
NPN.prototype.get = function NPN() {
+ var options = {
+ Bf:["Bf : Forward beta",this.Bf],
+ Br:["Br : Reverse beta",this.Br],
+ Is:["Is : Transport saturation current",this.Is],
+ Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak],
+ Tauf:["Tauf: Ideal forward transit time",this.Tauf],
+ Taur:["Taur: Ideal reverse transit time",this.Taur],
+ Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs],
+ Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje],
+ Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc],
+ Phie:["Phie: Base-emitter diffusion voltage",this.Phie],
+ Me:["Me : Base-emitter gradation exponent",this.Me],
+ Phic:["Phic: Base-collector diffusion voltage",this.Phic],
+ Mc:["Mc : Base-collector gradation exponent",this.Mc],
+ Gbc:["Gbc : Base-collector conductance",this.Gbc],
+ Gbe:["Gbe : Base-emitter conductance",this.Gbe],
+ Vt:["Vt : Voltage equivalent of temperature",this.Vt],
+ EMinMax:["EMinmax: if x > EMinMax, the exp(x) is linearized",this.EMinMax],
+ }
+ return options;
}
NPN.prototype.set = function NPN() {
this.Bf = parseFloat((arguments[0]["Bf"]))
diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js
index ffe642ac..b056b0b0 100644
--- a/js/Electrical/OpAmp.js
+++ b/js/Electrical/OpAmp.js
@@ -27,6 +27,12 @@ function OpAmp() {
return this.x;
}
OpAmp.prototype.get = function OpAmp() {
+ var options = {
+ OLGain:["Open Loop Gain",this.OLGain],
+ SatH:["Positive saturation voltage",this.SatH],
+ SatL:["Negative saturation voltage",this.SatL],
+ }
+ return options;
}
OpAmp.prototype.set = function OpAmp() {
this.OLGain = parseFloat((arguments[0]["OLGain"]))
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js
index 2f3579cf..103e399d 100644
--- a/js/Electrical/PMOS.js
+++ b/js/Electrical/PMOS.js
@@ -33,6 +33,18 @@ function PMOS() {
return this.x;
}
PMOS.prototype.get = function PMOS() {
+ var options = {
+ W:["Width [m]",this.W],
+ L:["Length [m]",this.L],
+ Beta:["Transconductance parameter [A/(V*V)]",this.Beta],
+ Vt:["Zero bias threshold voltage [V]",this.Vt],
+ K2:["Bulk threshold parameter",this.K2],
+ K5:["Reduction of pinch-off region",this.K5],
+ dW:["Narrowing of channel [m]",this.dW],
+ dL:["Shortening of channel [m]",this.dL],
+ RDS:["Drain-Source-Resistance [Ohm]",this.RDS],
+ }
+ return options;
}
PMOS.prototype.set = function PMOS() {
this.W = parseFloat((arguments[0]["W"]))
diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js
index 3f03ceda..088914ec 100644
--- a/js/Electrical/PNP.js
+++ b/js/Electrical/PNP.js
@@ -53,6 +53,26 @@ function PNP() {
return this.x;
}
PNP.prototype.get = function PNP() {
+ var options = {
+ Bf:["Bf : Forward beta",this.Bf],
+ Br:["Br : Reverse beta",this.Br],
+ Is:["Is : Transport saturation current",this.Is],
+ Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak],
+ Tauf:["Tauf: Ideal forward transit time",this.Tauf],
+ Taur:["Taur: Ideal reverse transit time",this.Taur],
+ Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs],
+ Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje],
+ Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc],
+ Phie:["Phie: Base-emitter diffusion voltage",this.Phie],
+ Me:["Me : Base-emitter gradation exponent",this.Me],
+ Phic:["Phic: Base-collector diffusion voltage",this.Phic],
+ Mc:["Mc : Base-collector gradation exponent",this.Mc],
+ Gbc:["Gbc : Base-collector conductance",this.Gbc],
+ Gbe:["Gbe : Base-emitter conductance",this.Gbe],
+ Vt:["Vt : Voltage equivalent of temperature",this.Vt],
+ EMinMax:["EMinMax: if x > EMinMax, the exp(x) function is linearized",this.EMinMax],
+ }
+ return options;
}
PNP.prototype.set = function PNP() {
this.Bf = parseFloat((arguments[0]["Bf"]))
diff --git a/js/Electrical/PotentialSensor.js b/js/Electrical/PotentialSensor.js
index b2a6dc22..9ef7202b 100644
--- a/js/Electrical/PotentialSensor.js
+++ b/js/Electrical/PotentialSensor.js
@@ -23,6 +23,9 @@ function PotentialSensor() {
return this.x;
}
PotentialSensor.prototype.get = function PotentialSensor() {
+ var options = {
+ }
+ return options;
}
PotentialSensor.prototype.set = function PotentialSensor() {
this.x = arg1;
diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js
index fb284839..7c6147d6 100644
--- a/js/Electrical/Resistor.js
+++ b/js/Electrical/Resistor.js
@@ -26,6 +26,9 @@ function Resistor() {
return this.x;
}
Resistor.prototype.get = function Resistor() {
+ var options = {
+ }
+ return options;
}
Resistor.prototype.set = function Resistor() {
this.R = parseFloat((arguments[0]["R"]))
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index d3997f59..c92aeefc 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -30,6 +30,14 @@ function SineVoltage() {
return this.x;
}
SineVoltage.prototype.get = function SineVoltage() {
+ var options = {
+ V:["Amplitude (Volt)",this.V],
+ ph:["phase (rad)",this.ph],
+ frq:["Frequency (Hz)",this.frq],
+ offset:["Voltageoffset (V)",this.offset],
+ start:["Timeoffset (s)",this.start],
+ }
+ return options;
}
SineVoltage.prototype.set = function SineVoltage() {
this.V = parseFloat((arguments[0]["V"]))
diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js
index ad7ed43d..46e66473 100644
--- a/js/Electrical/Switch.js
+++ b/js/Electrical/Switch.js
@@ -29,6 +29,11 @@ function Switch() {
return this.x;
}
Switch.prototype.get = function Switch() {
+ var options = {
+ Ron:["Resistance in On state (Ohm)",this.Ron],
+ Roff:["Resistance in Off state (Ohm)",this.Roff],
+ }
+ return options;
}
Switch.prototype.set = function Switch() {
this.Ron = parseFloat((arguments[0]["Ron"]))
diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js
index 3c733b2b..8b56a29e 100644
--- a/js/Electrical/VVsourceAC.js
+++ b/js/Electrical/VVsourceAC.js
@@ -27,6 +27,10 @@ function VVsourceAC() {
return this.x;
}
VVsourceAC.prototype.get = function VVsourceAC() {
+ var options = {
+ FR:["Frequency (Hz)",this.FR],
+ }
+ return options;
}
VVsourceAC.prototype.set = function VVsourceAC() {
this.FR = parseFloat((arguments[0]["FR"]))
diff --git a/js/Electrical/VariableResistor.js b/js/Electrical/VariableResistor.js
index f9011e10..2244df08 100644
--- a/js/Electrical/VariableResistor.js
+++ b/js/Electrical/VariableResistor.js
@@ -23,6 +23,9 @@ function VariableResistor() {
return this.x;
}
VariableResistor.prototype.get = function VariableResistor() {
+ var options = {
+ }
+ return options;
}
VariableResistor.prototype.set = function VariableResistor() {
this.x = arg1;
diff --git a/js/Electrical/VoltageSensor.js b/js/Electrical/VoltageSensor.js
index 1d463e44..74af23d8 100644
--- a/js/Electrical/VoltageSensor.js
+++ b/js/Electrical/VoltageSensor.js
@@ -23,6 +23,9 @@ function VoltageSensor() {
return this.x;
}
VoltageSensor.prototype.get = function VoltageSensor() {
+ var options = {
+ }
+ return options;
}
VoltageSensor.prototype.set = function VoltageSensor() {
this.x = arg1;
diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js
index 333da4eb..527a1bfd 100644
--- a/js/Electrical/VsourceAC.js
+++ b/js/Electrical/VsourceAC.js
@@ -27,6 +27,11 @@ function VsourceAC() {
return this.x;
}
VsourceAC.prototype.get = function VsourceAC() {
+ var options = {
+ VA:["Amplitude (Volt)",this.VA],
+ FR:["Frequency (Hz)",this.FR],
+ }
+ return options;
}
VsourceAC.prototype.set = function VsourceAC() {
this.VA = parseFloat((arguments[0]["VA"]))