diff options
author | Sunil Shetye | 2018-09-17 16:11:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-10-08 11:24:12 +0530 |
commit | f389f174481df676c841ebcc87a7b8b313921bbc (patch) | |
tree | 2551fd05222a78d4441f5883a97980bda1d6b241 /js/Hydraulics/PerteDP.js | |
parent | 4dc055ae23c9e33e459b7b583a67f92b5972a062 (diff) | |
download | sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.gz sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.bz2 sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.zip |
add importset and getContainer to combined.js
Diffstat (limited to 'js/Hydraulics/PerteDP.js')
-rw-r--r-- | js/Hydraulics/PerteDP.js | 11 |
1 files changed, 11 insertions, 0 deletions
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); } } |