summaryrefslogtreecommitdiff
path: root/src/ngspicetoModelica/Mapping.json
diff options
context:
space:
mode:
authorfahim-oscad2016-04-25 15:44:05 +0530
committerfahim-oscad2016-04-25 15:44:05 +0530
commit99001f8ddcfa492c8068b864ec08fe2a85a88106 (patch)
treee4587978aa5dfee1f1f171a4d6ac0492cf81cea1 /src/ngspicetoModelica/Mapping.json
parentbbc4735bafa85adc9d838fc6b8d5a06de735a13f (diff)
downloadeSim-99001f8ddcfa492c8068b864ec08fe2a85a88106.tar.gz
eSim-99001f8ddcfa492c8068b864ec08fe2a85a88106.tar.bz2
eSim-99001f8ddcfa492c8068b864ec08fe2a85a88106.zip
Modified code to include current source
Diffstat (limited to 'src/ngspicetoModelica/Mapping.json')
-rw-r--r--src/ngspicetoModelica/Mapping.json18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/ngspicetoModelica/Mapping.json b/src/ngspicetoModelica/Mapping.json
index ce493eab..22a10f43 100644
--- a/src/ngspicetoModelica/Mapping.json
+++ b/src/ngspicetoModelica/Mapping.json
@@ -12,10 +12,17 @@
},
"Sources":{
- "pulse":"Analog.Sources.TrapezoidVoltage",
- "sine":"Analog.Sources.SineVoltage",
- "pwl" : "Analog.Sources.TableVoltage",
- "dc" : "Analog.Sources.ConstantVoltage"
+ "v":{
+ "pulse":"Analog.Sources.TrapezoidVoltage",
+ "sine":"Analog.Sources.SineVoltage",
+ "pwl" : "Analog.Sources.TableVoltage",
+ "dc" : "Analog.Sources.ConstantVoltage"
+ },
+
+ "i":{
+ "dc":"Analog.Sources.ConstantCurrent"
+ }
+
},
"Devices":{
"d":{
@@ -153,7 +160,8 @@
"m":"e-3",
"meg":"e6",
"n":"e-9",
- "f":"e-15"
+ "f":"e-15",
+ "ma":"e-3"
}