diff options
Diffstat (limited to 'js/Hydraulics')
-rw-r--r-- | js/Hydraulics/Bache.js | 14 | ||||
-rw-r--r-- | js/Hydraulics/Flowmeter.js | 6 | ||||
-rw-r--r-- | js/Hydraulics/PerteDP.js | 11 | ||||
-rw-r--r-- | js/Hydraulics/PuitsP.js | 9 | ||||
-rw-r--r-- | js/Hydraulics/SourceP.js | 9 | ||||
-rw-r--r-- | js/Hydraulics/VanneReglante.js | 7 |
6 files changed, 56 insertions, 0 deletions
diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js index 39f3db38..6b678396 100644 --- a/js/Hydraulics/Bache.js +++ b/js/Hydraulics/Bache.js @@ -82,4 +82,18 @@ function Bache() { Bache.prototype.get_popup_title = function Bache() { return this.set_param_popup_title; } + Bache.prototype.importset = function Bache() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Patm = ary[0]; + this.A = ary[1]; + this.ze1 = ary[2]; + this.ze2 = ary[3]; + this.zs1 = ary[4]; + this.zs2 = ary[5]; + this.z0 = ary[6]; + this.T0 = ary[7]; + this.p_rho = ary[8]; + } + Bache.prototype.getContainer = function Bache() { return new BasicBlock(this.x); } } diff --git a/js/Hydraulics/Flowmeter.js b/js/Hydraulics/Flowmeter.js index 52f64379..61846da9 100644 --- a/js/Hydraulics/Flowmeter.js +++ b/js/Hydraulics/Flowmeter.js @@ -80,4 +80,10 @@ function Flowmeter() { Flowmeter.prototype.get_popup_title = function Flowmeter() { return this.set_param_popup_title; } + Flowmeter.prototype.importset = function Flowmeter() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Qini = ary[0]; + } + Flowmeter.prototype.getContainer = function Flowmeter() { return new BasicBlock(this.x); } } diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js index 80939bc5..f0cd6845 100644 --- a/js/Hydraulics/PerteDP.js +++ b/js/Hydraulics/PerteDP.js @@ -71,4 +71,15 @@ function PerteDP() { PerteDP.prototype.get_popup_title = function PerteDP() { return this.set_param_popup_title; } + PerteDP.prototype.importset = function PerteDP() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.L = ary[0]; + this.D = ary[1]; + this.lambda = ary[2]; + this.z1 = ary[3]; + this.z2 = ary[4]; + this.p_rho = ary[5]; + } + PerteDP.prototype.getContainer = function PerteDP() { return new BasicBlock(this.x); } } diff --git a/js/Hydraulics/PuitsP.js b/js/Hydraulics/PuitsP.js index eb2937b3..cce6b1e0 100644 --- a/js/Hydraulics/PuitsP.js +++ b/js/Hydraulics/PuitsP.js @@ -60,4 +60,13 @@ function PuitsP() { PuitsP.prototype.get_popup_title = function PuitsP() { return this.set_param_popup_title; } + PuitsP.prototype.importset = function PuitsP() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.P0 = ary[0]; + this.T0 = ary[1]; + this.H0 = ary[2]; + this.option_temperature = ary[3]; + } + PuitsP.prototype.getContainer = function PuitsP() { return new BasicBlock(this.x); } } diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js index 708ea843..cd102435 100644 --- a/js/Hydraulics/SourceP.js +++ b/js/Hydraulics/SourceP.js @@ -62,4 +62,13 @@ function SourceP() { SourceP.prototype.get_popup_title = function SourceP() { return this.set_param_popup_title; } + SourceP.prototype.importset = function SourceP() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.P0 = ary[0]; + this.T0 = ary[1]; + this.H0 = ary[2]; + this.option_temperature = ary[3]; + } + SourceP.prototype.getContainer = function SourceP() { return new BasicBlock(this.x); } } diff --git a/js/Hydraulics/VanneReglante.js b/js/Hydraulics/VanneReglante.js index a52ab470..bdbc8f1f 100644 --- a/js/Hydraulics/VanneReglante.js +++ b/js/Hydraulics/VanneReglante.js @@ -59,4 +59,11 @@ function VanneReglante() { VanneReglante.prototype.get_popup_title = function VanneReglante() { return this.set_param_popup_title; } + VanneReglante.prototype.importset = function VanneReglante() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Cvmax = ary[0]; + this.p_rho = ary[1]; + } + VanneReglante.prototype.getContainer = function VanneReglante() { return new BasicBlock(this.x); } } |