summaryrefslogtreecommitdiff
path: root/js/Hydraulics/Bache.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Hydraulics/Bache.js')
-rw-r--r--js/Hydraulics/Bache.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js
index 114846c1..82ed4cb1 100644
--- a/js/Hydraulics/Bache.js
+++ b/js/Hydraulics/Bache.js
@@ -1,8 +1,8 @@
/* autogenerated from "macros/Hydraulics/Bache.sci" */
function Bache() {
Bache.prototype.define = function Bache() {
- in1 = 2;
- out = 3;
+ var in1 = 2;
+ var out = 3;
this.model = scicos_model();
this.model.in1 = [-transpose([1:in1])];
this.model.out = [-transpose([1:out])];
@@ -19,7 +19,7 @@ function Bache() {
this.model.sim = new ScilabString(["Bache"]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
- mo = modelica();
+ var mo = modelica();
mo.model = "Bache";
mo.inputs = ["Ce1","Ce2"];
mo.outputs = ["Cs1","Cs2","yNiveau"];
@@ -27,8 +27,8 @@ function Bache() {
this.model.equations = new ScilabDouble([mo]);
this.model.in1 = new ScilabDouble([ones(size(mo.inputs,"*"),1)]);
this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]);
- 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)]];
- gr_i = [];
+ 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 = [];
this.x = standard_define([2,2],this.model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = [["I"],["I"]];
this.x.graphics.out_implicit = [["I"],["I"],["E"]];
@@ -62,8 +62,8 @@ function Bache() {
this.T0 = parseFloat(arguments[0]["T0"])
this.p_rho = parseFloat(arguments[0]["p_rho"])
this.x = arg1;
- graphics = arg1.graphics;
- exprs = graphics.exprs;
+ var graphics = arg1.graphics;
+ var exprs = graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.Patm,this.A,this.ze1,this.ze2,this.zs1,this.zs2,this.z0,this.T0,this.p_rho,exprs] = scicos_getvalue("Parametres de la bache",["Pression dans le ciel de la bache : Patm (Pa)","Section de la bache : A (m2)","Altitude du piquage d entrée 1: ze1 (m)","Altitude du piquage d entrée 2: ze2 (m)","Altitude du piquage de sortie 1: zs1 (m)","Altitude du piquage de sortie 2: zs2 (m)","Altitude initiale du fluide : z0 (m)","Température initiale du fluide : T0 (K)","Si >0, masse volumique imposée du fluide : p_rho (kg/m3)"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1),exprs);