summaryrefslogtreecommitdiff
path: root/js/Hydraulics
diff options
context:
space:
mode:
Diffstat (limited to 'js/Hydraulics')
-rw-r--r--js/Hydraulics/Bache.js12
-rw-r--r--js/Hydraulics/Flowmeter.js3
-rw-r--r--js/Hydraulics/PerteDP.js9
-rw-r--r--js/Hydraulics/PuitsP.js7
-rw-r--r--js/Hydraulics/SourceP.js7
-rw-r--r--js/Hydraulics/VanneReglante.js5
6 files changed, 43 insertions, 0 deletions
diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js
index e96d187f..ca4d4bdb 100644
--- a/js/Hydraulics/Bache.js
+++ b/js/Hydraulics/Bache.js
@@ -38,6 +38,18 @@ function Bache() {
return this.x;
}
Bache.prototype.get = function Bache() {
+ var options = {
+ Patm:["Pression dans le ciel de la bache : Patm (Pa)",this.Patm],
+ A:["Section de la bache : A (m2)",this.A],
+ ze1:["Altitude du piquage d entrée 1: ze1 (m)",this.ze1],
+ ze2:["Altitude du piquage d entrée 2: ze2 (m)",this.ze2],
+ zs1:["Altitude du piquage de sortie 1: zs1 (m)",this.zs1],
+ zs2:["Altitude du piquage de sortie 2: zs2 (m)",this.zs2],
+ z0:["Altitude initiale du fluide : z0 (m)",this.z0],
+ T0:["Température initiale du fluide : T0 (K)",this.T0],
+ p_rho:["Si >0, masse volumique imposée du fluide : p_rho (kg/m3)",this.p_rho],
+ }
+ return options;
}
Bache.prototype.set = function Bache() {
this.Patm = parseFloat((arguments[0]["Patm"]))
diff --git a/js/Hydraulics/Flowmeter.js b/js/Hydraulics/Flowmeter.js
index 0a2d7496..80a54bca 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 options = {
+ }
+ return options;
}
Flowmeter.prototype.set = function Flowmeter() {
this.Qini = parseFloat((arguments[0]["Qini"]))
diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js
index bfb2ac04..8f5b9b40 100644
--- a/js/Hydraulics/PerteDP.js
+++ b/js/Hydraulics/PerteDP.js
@@ -33,6 +33,15 @@ function PerteDP() {
return this.x;
}
PerteDP.prototype.get = function PerteDP() {
+ var options = {
+ L:["Longueur du tube : L (m)",this.L],
+ D:["Diamètre interne du tube : D (m)",this.D],
+ lambda:["Coefficient de perte de charge-frottement(S.U) : lambda",this.lambda],
+ z1:["Altitude entrée tuyauterie : z1 (m)",this.z1],
+ z2:["Altitude sortie tuyauterie : z2 (m)",this.z2],
+ p_rho:["Si >0, masse volumique imposée fu fluide : p_rho (kg/m3)",this.p_rho],
+ }
+ return options;
}
PerteDP.prototype.set = function PerteDP() {
this.L = parseFloat((arguments[0]["L"]))
diff --git a/js/Hydraulics/PuitsP.js b/js/Hydraulics/PuitsP.js
index 57577f11..267c236d 100644
--- a/js/Hydraulics/PuitsP.js
+++ b/js/Hydraulics/PuitsP.js
@@ -26,6 +26,13 @@ function PuitsP() {
return this.x;
}
PuitsP.prototype.get = function PuitsP() {
+ var options = {
+ P0:["Pression de la source : P0 (Pa)",this.P0],
+ T0:["Temperature de la source : T0 (K)",this.T0],
+ H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0],
+ option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature],
+ }
+ return options;
}
PuitsP.prototype.set = function PuitsP() {
this.P0 = parseFloat((arguments[0]["P0"]))
diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js
index d8244a8a..e51873da 100644
--- a/js/Hydraulics/SourceP.js
+++ b/js/Hydraulics/SourceP.js
@@ -28,6 +28,13 @@ function SourceP() {
return this.x;
}
SourceP.prototype.get = function SourceP() {
+ var options = {
+ P0:["Pression de la source : P0 (Pa)",this.P0],
+ T0:["Temperature de la source : T0 (K)",this.T0],
+ H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0],
+ option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature],
+ }
+ return options;
}
SourceP.prototype.set = function SourceP() {
this.P0 = parseFloat((arguments[0]["P0"]))
diff --git a/js/Hydraulics/VanneReglante.js b/js/Hydraulics/VanneReglante.js
index 1822b4bd..f7dd1c71 100644
--- a/js/Hydraulics/VanneReglante.js
+++ b/js/Hydraulics/VanneReglante.js
@@ -29,6 +29,11 @@ function VanneReglante() {
return this.x;
}
VanneReglante.prototype.get = function VanneReglante() {
+ var options = {
+ Cvmax:["Cvmax",this.Cvmax],
+ p_rho:["p_rho",this.p_rho],
+ }
+ return options;
}
VanneReglante.prototype.set = function VanneReglante() {
this.Cvmax = parseFloat((arguments[0]["Cvmax"]))