summaryrefslogtreecommitdiff
path: root/js/Hydraulics
diff options
context:
space:
mode:
Diffstat (limited to 'js/Hydraulics')
-rw-r--r--js/Hydraulics/Bache.js5
-rw-r--r--js/Hydraulics/Flowmeter.js6
-rw-r--r--js/Hydraulics/PerteDP.js5
-rw-r--r--js/Hydraulics/PuitsP.js5
-rw-r--r--js/Hydraulics/SourceP.js5
-rw-r--r--js/Hydraulics/VanneReglante.js5
6 files changed, 19 insertions, 12 deletions
diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js
index 2fd0be9b..39f3db38 100644
--- a/js/Hydraulics/Bache.js
+++ b/js/Hydraulics/Bache.js
@@ -38,6 +38,8 @@ function Bache() {
return this.x;
}
Bache.prototype.get = function Bache() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Parametres de la bache";
var options = {
Patm:["Pression dans le ciel de la bache : Patm (Pa)",this.Patm],
A:["Section de la bache : A (m2)",this.A],
@@ -78,7 +80,6 @@ function Bache() {
return new BasicBlock(this.x);
}
Bache.prototype.get_popup_title = function Bache() {
- var set_param_popup_title = "Parametres de la bache";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}
diff --git a/js/Hydraulics/Flowmeter.js b/js/Hydraulics/Flowmeter.js
index 465d5682..52f64379 100644
--- a/js/Hydraulics/Flowmeter.js
+++ b/js/Hydraulics/Flowmeter.js
@@ -53,6 +53,9 @@ function Flowmeter() {
return this.x;
}
Flowmeter.prototype.get = function Flowmeter() {
+ var exprs = this.graphics.exprs;
+ var exprs = this.x.graphics.exprs;
+ this.set_param_popup_title = "Set Flowmeter block parameters:";
var options = {
Qini:["Qini",this.Qini],
}
@@ -75,7 +78,6 @@ function Flowmeter() {
return new BasicBlock(this.x);
}
Flowmeter.prototype.get_popup_title = function Flowmeter() {
- var set_param_popup_title = "Set Flowmeter block parameters:";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}
diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js
index 47ea2b33..80939bc5 100644
--- a/js/Hydraulics/PerteDP.js
+++ b/js/Hydraulics/PerteDP.js
@@ -33,6 +33,8 @@ function PerteDP() {
return this.x;
}
PerteDP.prototype.get = function PerteDP() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Parametres du tuyau";
var options = {
L:["Longueur du tube : L (m)",this.L],
D:["Diamètre interne du tube : D (m)",this.D],
@@ -67,7 +69,6 @@ function PerteDP() {
return new BasicBlock(this.x);
}
PerteDP.prototype.get_popup_title = function PerteDP() {
- var set_param_popup_title = "Parametres du tuyau";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}
diff --git a/js/Hydraulics/PuitsP.js b/js/Hydraulics/PuitsP.js
index d1d0538e..eb2937b3 100644
--- a/js/Hydraulics/PuitsP.js
+++ b/js/Hydraulics/PuitsP.js
@@ -26,6 +26,8 @@ function PuitsP() {
return this.x;
}
PuitsP.prototype.get = function PuitsP() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Paramètres du puits";
var options = {
P0:["Pression de la source : P0 (Pa)",this.P0],
T0:["Temperature de la source : T0 (K)",this.T0],
@@ -56,7 +58,6 @@ function PuitsP() {
return new BasicBlock(this.x);
}
PuitsP.prototype.get_popup_title = function PuitsP() {
- var set_param_popup_title = "Paramètres du puits";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}
diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js
index 120c93b0..708ea843 100644
--- a/js/Hydraulics/SourceP.js
+++ b/js/Hydraulics/SourceP.js
@@ -28,6 +28,8 @@ function SourceP() {
return this.x;
}
SourceP.prototype.get = function SourceP() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Paramètres du puits";
var options = {
P0:["Pression de la source : P0 (Pa)",this.P0],
T0:["Temperature de la source : T0 (K)",this.T0],
@@ -58,7 +60,6 @@ function SourceP() {
return new BasicBlock(this.x);
}
SourceP.prototype.get_popup_title = function SourceP() {
- var set_param_popup_title = "Paramètres du puits";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}
diff --git a/js/Hydraulics/VanneReglante.js b/js/Hydraulics/VanneReglante.js
index fef56e7b..a52ab470 100644
--- a/js/Hydraulics/VanneReglante.js
+++ b/js/Hydraulics/VanneReglante.js
@@ -29,6 +29,8 @@ function VanneReglante() {
return this.x;
}
VanneReglante.prototype.get = function VanneReglante() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Paramètres de la vanne reglante";
var options = {
Cvmax:["Cvmax",this.Cvmax],
p_rho:["p_rho",this.p_rho],
@@ -55,7 +57,6 @@ function VanneReglante() {
return new BasicBlock(this.x);
}
VanneReglante.prototype.get_popup_title = function VanneReglante() {
- var set_param_popup_title = "Paramètres de la vanne reglante";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}