blob: 2244df08431119c9458f442f7efd4f9ef3b5a386 (
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
28
29
30
31
32
33
34
|
/* autogenerated from "macros/Electrical/VariableResistor.sci" */
function VariableResistor() {
VariableResistor.prototype.define = function VariableResistor() {
model = scicos_model();
model.sim = "VariableResistor";
model.blocktype = "c";
model.dep_ut = [true,false];
mo = modelica();
mo.model = "VariableResistor";
mo.inputs = ["p","R"];
mo.outputs = "n";
model.equations = mo;
model.in1 = ones(size(mo.inputs,"*"),1);
model.out = ones(size(mo.outputs,"*"),1);
exprs = [];
gr_i = [];
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I","E"];
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);
}
VariableResistor.prototype.details = function VariableResistor() {
return this.x;
}
VariableResistor.prototype.get = function VariableResistor() {
var options = {
}
return options;
}
VariableResistor.prototype.set = function VariableResistor() {
this.x = arg1;
return new BasicBlock(this.x);
}
}
|