summaryrefslogtreecommitdiff
path: root/data_structures/Inductor.js
blob: 7bcca7700417b88cfcc5016c5409071fbac12b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function Inductor () {


	var model = scicos_model();
	model.in = new ScilabDouble([1]);
	model.out = new ScilabDouble([1]);

	var L = 1.d-5;
	model.rpar=new ScilabDouble([L]);
	model.sim = new ScilabString(["Inductor"]);
	model.blocktype = new ScilabString(["c"]);
	model.dep_ut = new ScilabBoolean([true,false]);

	var mo = modelica();
	mo.model = new ScilabString(["Inductor"]);
	mo.inputs = new ScilabString(["p"]);
	mo.outputs = new ScilabString(["n"]);
	mo.parameters=list("L",list(L));
	model.equations=mo;

	var exprs = L.toString();

	var gr_i = [];
	this.x=new standard_define(new ScilabDouble([2,0.9]),model,exprs,list(gr_i,0));
	this.x.graphics.in_implicit = new ScilabString(["I"]);
	this.x.graphics.out_implicit = new ScilabString(["I"]);
}