summaryrefslogtreecommitdiff
path: root/js/Hydraulics
diff options
context:
space:
mode:
authorSunil Shetye2018-08-24 11:46:02 +0530
committerSunil Shetye2018-08-27 16:43:40 +0530
commit3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch)
treedc8b98c70c10cec2c9f3f37b5858e1afd6554698 /js/Hydraulics
parent9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff)
downloadsci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip
remove exprs and gr_i from default global list
Diffstat (limited to 'js/Hydraulics')
-rw-r--r--js/Hydraulics/Bache.js10
-rw-r--r--js/Hydraulics/Bache.pickle20
-rw-r--r--js/Hydraulics/Flowmeter.js12
-rw-r--r--js/Hydraulics/Flowmeter.pickle14
-rw-r--r--js/Hydraulics/PerteDP.js10
-rw-r--r--js/Hydraulics/PerteDP.pickle22
-rw-r--r--js/Hydraulics/PuitsP.js10
-rw-r--r--js/Hydraulics/PuitsP.pickle16
-rw-r--r--js/Hydraulics/SourceP.js10
-rw-r--r--js/Hydraulics/SourceP.pickle16
-rw-r--r--js/Hydraulics/VanneReglante.js10
-rw-r--r--js/Hydraulics/VanneReglante.pickle16
12 files changed, 71 insertions, 95 deletions
diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js
index 493ac9fa..132f80eb 100644
--- a/js/Hydraulics/Bache.js
+++ b/js/Hydraulics/Bache.js
@@ -27,9 +27,9 @@ function Bache() {
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]);
- this.exprs = [[string(this.Patm)],[string(this.A)],[string(this.ze1)],[string(this.ze2)],[string(this.zs1)],[string(this.zs2)],[string(this.z0)],[string(this.T0)],[string(this.p_rho)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0));
+ var exprs = [[string(this.Patm)],[string(this.A)],[string(this.ze1)],[string(this.ze2)],[string(this.zs1)],[string(this.zs2)],[string(this.z0)],[string(this.T0)],[string(this.p_rho)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.in_implicit = [["I"],["I"]];
this.x.graphics.out_implicit = [["I"],["I"],["E"]];
return new BasicBlock(this.x);
@@ -52,7 +52,7 @@ function Bache() {
return options;
}
Bache.prototype.set = function Bache() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.Patm = parseFloat(arguments[0]["Patm"]);
@@ -69,7 +69,7 @@ function Bache() {
}
this.model.rpar = new ScilabDouble([this.Patm],[this.A],[this.ze1],[this.ze2],[this.zs1],[this.zs2],[this.z0],[this.T0],[this.p_rho]);
this.model.equations.parameters[2-1] = list(new ScilabDouble([this.Patm]), new ScilabDouble([this.A]), new ScilabDouble([this.ze1]), new ScilabDouble([this.ze2]), new ScilabDouble([this.zs1]), new ScilabDouble([this.zs2]), new ScilabDouble([this.z0]), new ScilabDouble([this.T0]), new ScilabDouble([this.p_rho]));
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Hydraulics/Bache.pickle b/js/Hydraulics/Bache.pickle
index a30426e7..5d638770 100644
--- a/js/Hydraulics/Bache.pickle
+++ b/js/Hydraulics/Bache.pickle
@@ -14,24 +14,20 @@ aS'T0'
p6
aS'ze2'
p7
-aS'exprs'
-p8
aS'ze1'
-p9
-aS'gr_i'
-p10
+p8
aS'p_rho'
-p11
+p9
aS'graphics'
-p12
+p10
aS'x'
-p13
+p11
aS'model'
-p14
+p12
aS'Patm'
-p15
-atp16
-Rp17
+p13
+atp14
+Rp15
.(dp0
S'arg1'
p1
diff --git a/js/Hydraulics/Flowmeter.js b/js/Hydraulics/Flowmeter.js
index cb848037..76c64588 100644
--- a/js/Hydraulics/Flowmeter.js
+++ b/js/Hydraulics/Flowmeter.js
@@ -36,15 +36,15 @@ function Flowmeter() {
mo.outputs = MO;
this.model.rpar = new ScilabDouble([PrametersValue]);
mo.parameters = list(ParametersName,PrametersValue,zeros(ParametersName));
- this.exprs = "1";
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
+ var exprs = "1";
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([false,true]);
mo.model = ModelName;
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(MI,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(MO,"*"),1)]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([this.exprs]),list(this.gr_i,0));
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([exprs]),list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
return new BasicBlock(this.x);
@@ -59,8 +59,8 @@ function Flowmeter() {
return options;
}
Flowmeter.prototype.set = function Flowmeter() {
- this.exprs = this.graphics.exprs;
- this.exprs = this.x.graphics.exprs;
+ var exprs = this.graphics.exprs;
+ var exprs = this.x.graphics.exprs;
while (false) {
var ok = true;
this.Qini = arguments[0]["Qini"];
@@ -68,7 +68,7 @@ function Flowmeter() {
break;
}
this.x.model.equations.parameters[2-1] = list(this.Qini);
- this.x.graphics.exprs = this.exprs;
+ this.x.graphics.exprs = exprs;
break;
}
return new BasicBlock(this.x);
diff --git a/js/Hydraulics/Flowmeter.pickle b/js/Hydraulics/Flowmeter.pickle
index 17e70da6..4de3df34 100644
--- a/js/Hydraulics/Flowmeter.pickle
+++ b/js/Hydraulics/Flowmeter.pickle
@@ -2,20 +2,16 @@ c__builtin__
set
p0
((lp1
-S'Qini'
+S'x'
p2
-aS'exprs'
+aS'model'
p3
-aS'gr_i'
+aS'Qini'
p4
aS'graphics'
p5
-aS'x'
-p6
-aS'model'
-p7
-atp8
-Rp9
+atp6
+Rp7
.(dp0
S'x.model.equations.parameters[2-1]'
p1
diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js
index fd909028..f7f741bb 100644
--- a/js/Hydraulics/PerteDP.js
+++ b/js/Hydraulics/PerteDP.js
@@ -22,9 +22,9 @@ function PerteDP() {
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]);
- this.exprs = [[string(this.L)],[string(this.D)],[string(this.lambda)],[string(this.z1)],[string(this.z2)],[string(this.p_rho)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,1]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0));
+ var exprs = [[string(this.L)],[string(this.D)],[string(this.lambda)],[string(this.z1)],[string(this.z2)],[string(this.p_rho)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,1]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);
@@ -44,7 +44,7 @@ function PerteDP() {
return options;
}
PerteDP.prototype.set = function PerteDP() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.L = parseFloat(arguments[0]["L"]);
@@ -58,7 +58,7 @@ function PerteDP() {
}
this.model.rpar = new ScilabDouble([this.L],[this.D],[this.lambda],[this.z1],[this.z2],[this.p_rho]);
this.model.equations.parameters[2-1] = list(new ScilabDouble([this.L]), new ScilabDouble([this.D]), new ScilabDouble([this.lambda]), new ScilabDouble([this.z1]), new ScilabDouble([this.z2]), new ScilabDouble([this.p_rho]));
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Hydraulics/PerteDP.pickle b/js/Hydraulics/PerteDP.pickle
index d72e0b98..df7b6740 100644
--- a/js/Hydraulics/PerteDP.pickle
+++ b/js/Hydraulics/PerteDP.pickle
@@ -6,26 +6,22 @@ S'D'
p2
aS'L'
p3
-aS'exprs'
-p4
-aS'gr_i'
-p5
aS'p_rho'
-p6
+p4
aS'graphics'
-p7
+p5
aS'x'
-p8
+p6
aS'model'
-p9
+p7
aS'z1'
-p10
+p8
aS'z2'
-p11
+p9
aS'lambda'
-p12
-atp13
-Rp14
+p10
+atp11
+Rp12
.(dp0
S'arg1'
p1
diff --git a/js/Hydraulics/PuitsP.js b/js/Hydraulics/PuitsP.js
index be1ed897..601c2094 100644
--- a/js/Hydraulics/PuitsP.js
+++ b/js/Hydraulics/PuitsP.js
@@ -16,9 +16,9 @@ function PuitsP() {
mo.parameters = list([["P0"],["T0"],["H0"],["option_temperature"]],[[this.P0],[this.T0],[this.H0],[this.option_temperature]]);
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
- this.exprs = [[string(this.P0)],[string(this.T0)],[string(this.H0)],[string(this.option_temperature)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2.5,2]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0));
+ var exprs = [[string(this.P0)],[string(this.T0)],[string(this.H0)],[string(this.option_temperature)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2.5,2]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
return new BasicBlock(this.x);
}
@@ -35,7 +35,7 @@ function PuitsP() {
return options;
}
PuitsP.prototype.set = function PuitsP() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.P0 = parseFloat(arguments[0]["P0"]);
@@ -47,7 +47,7 @@ function PuitsP() {
}
this.model.rpar = new ScilabDouble([this.P0],[this.T0],[this.H0],[this.option_temperature]);
this.model.equations.parameters[2-1] = list(new ScilabDouble([this.P0]), new ScilabDouble([this.T0]), new ScilabDouble([this.H0]), new ScilabDouble([this.option_temperature]));
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Hydraulics/PuitsP.pickle b/js/Hydraulics/PuitsP.pickle
index 341e98aa..e6ddbda5 100644
--- a/js/Hydraulics/PuitsP.pickle
+++ b/js/Hydraulics/PuitsP.pickle
@@ -8,20 +8,16 @@ aS'H0'
p3
aS'T0'
p4
-aS'exprs'
-p5
-aS'gr_i'
-p6
aS'graphics'
-p7
+p5
aS'x'
-p8
+p6
aS'model'
-p9
+p7
aS'option_temperature'
-p10
-atp11
-Rp12
+p8
+atp9
+Rp10
.(dp0
S'arg1'
p1
diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js
index e1d4badb..fa476a33 100644
--- a/js/Hydraulics/SourceP.js
+++ b/js/Hydraulics/SourceP.js
@@ -18,9 +18,9 @@ function SourceP() {
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]);
- this.exprs = [[string(this.P0)],[string(this.T0)],[string(this.H0)],[string(this.option_temperature)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2.5,2]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0));
+ var exprs = [[string(this.P0)],[string(this.T0)],[string(this.H0)],[string(this.option_temperature)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2.5,2]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);
}
@@ -37,7 +37,7 @@ function SourceP() {
return options;
}
SourceP.prototype.set = function SourceP() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.P0 = parseFloat(arguments[0]["P0"]);
@@ -49,7 +49,7 @@ function SourceP() {
}
this.model.rpar = new ScilabDouble([this.P0],[this.T0],[this.H0],[this.option_temperature]);
this.model.equations.parameters[2-1] = list(new ScilabDouble([this.P0]), new ScilabDouble([this.T0]), new ScilabDouble([this.H0]), new ScilabDouble([this.option_temperature]));
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Hydraulics/SourceP.pickle b/js/Hydraulics/SourceP.pickle
index fe605e44..7d344327 100644
--- a/js/Hydraulics/SourceP.pickle
+++ b/js/Hydraulics/SourceP.pickle
@@ -8,20 +8,16 @@ aS'H0'
p3
aS'T0'
p4
-aS'exprs'
-p5
-aS'gr_i'
-p6
aS'graphics'
-p7
+p5
aS'x'
-p8
+p6
aS'model'
-p9
+p7
aS'option_temperature'
-p10
-atp11
-Rp12
+p8
+atp9
+Rp10
.(dp0
S'arg1'
p1
diff --git a/js/Hydraulics/VanneReglante.js b/js/Hydraulics/VanneReglante.js
index 3ee79187..e17b69b9 100644
--- a/js/Hydraulics/VanneReglante.js
+++ b/js/Hydraulics/VanneReglante.js
@@ -18,9 +18,9 @@ function VanneReglante() {
this.model.equations = new ScilabDouble([mo]);
this.model.in = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]);
- this.exprs = [[string(this.Cvmax)],[string(this.p_rho)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VanneReglante\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0));
+ var exprs = [[string(this.Cvmax)],[string(this.p_rho)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VanneReglante\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.in_implicit = [["I"],["E"]];
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);
@@ -36,7 +36,7 @@ function VanneReglante() {
return options;
}
VanneReglante.prototype.set = function VanneReglante() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.Cvmax = parseFloat(arguments[0]["Cvmax"]);
@@ -46,7 +46,7 @@ function VanneReglante() {
}
this.model.rpar = new ScilabDouble([this.Cvmax],[this.p_rho]);
this.model.equations.parameters[2-1] = list(new ScilabDouble([this.Cvmax]), new ScilabDouble([this.p_rho]));
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Hydraulics/VanneReglante.pickle b/js/Hydraulics/VanneReglante.pickle
index 13a61e27..375f1483 100644
--- a/js/Hydraulics/VanneReglante.pickle
+++ b/js/Hydraulics/VanneReglante.pickle
@@ -2,22 +2,18 @@ c__builtin__
set
p0
((lp1
-S'Cvmax'
+S'x'
p2
-aS'exprs'
+aS'model'
p3
-aS'gr_i'
-p4
aS'p_rho'
+p4
+aS'Cvmax'
p5
aS'graphics'
p6
-aS'x'
-p7
-aS'model'
-p8
-atp9
-Rp10
+atp7
+Rp8
.(dp0
S'arg1'
p1