diff options
author | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
commit | 0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (patch) | |
tree | 6ae63f7633d80f9a70be43ebe789eb0c3a3ec364 /js/Hydraulics/SourceP.js | |
parent | 8e6e9558ba4963ea71b7a6efc11e0b44e7c9040a (diff) | |
download | sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.gz sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.bz2 sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.zip |
change order of functions
Diffstat (limited to 'js/Hydraulics/SourceP.js')
-rw-r--r-- | js/Hydraulics/SourceP.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js index 882d3183..34997c0a 100644 --- a/js/Hydraulics/SourceP.js +++ b/js/Hydraulics/SourceP.js @@ -1,25 +1,5 @@ /* autogenerated from "macros/Hydraulics/SourceP.sci" */ function SourceP() { -SourceP.prototype.get = function SourceP() { -} -SourceP.prototype.set = function SourceP() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (true) { -[ok,P0,T0,H0,option_temperature,exprs]=scicos_getvalue("Paramètres du puits",["Pression de la source : P0 (Pa)","Temperature de la source : T0 (K)","Enthalpie spécifique de la source : H0 (J/kg)","1:température fixée - 2:enthalpie fixée : option_temperature"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1),exprs); -if (!ok) { -break -} -model.rpar=[P0,T0,H0,option_temperature]; -model.equations.parameters[2-1]=list(P0,T0,H0,option_temperature); -graphics.exprs=exprs; -x.graphics=graphics; -x.model=model; -break -} -} SourceP.prototype.define = function SourceP() { model=scicos_model(); P0=300000; @@ -45,4 +25,24 @@ x.graphics.out_implicit=["I"]; } SourceP.prototype.details = function SourceP() { } +SourceP.prototype.get = function SourceP() { +} +SourceP.prototype.set = function SourceP() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +model=arg1.model; +while (true) { +[ok,P0,T0,H0,option_temperature,exprs]=scicos_getvalue("Paramètres du puits",["Pression de la source : P0 (Pa)","Temperature de la source : T0 (K)","Enthalpie spécifique de la source : H0 (J/kg)","1:température fixée - 2:enthalpie fixée : option_temperature"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1),exprs); +if (!ok) { +break +} +model.rpar=[P0,T0,H0,option_temperature]; +model.equations.parameters[2-1]=list(P0,T0,H0,option_temperature); +graphics.exprs=exprs; +x.graphics=graphics; +x.model=model; +break +} +} } |