Changes between Version 19 and Version 20 of LanguageChanges


Ignore:
Timestamp:
Jan 23, 2007, 5:26:28 PM (15 years ago)
Author:
Rafael de Pelegrini Soares
Comment:

Better outer explanation

Legend:

Unmodified
Added
Removed
Modified
  • LanguageChanges

    v19 v20  
    2525end
    2626
    27 FlowSheet MyProcess
     27Model SubProcess
    2828        PARAMETERS
    2929        NComp as Integer(Brief = "Number of chemical components", Lower = 1);
    3030
     31        VARIABLES
     32        FL101 as flash; # flash model here uses the stream model
     33        FL102 as flash;
     34end
     35
     36FlowSheet Flow
    3137        DEVICES
    32         feed as stream;
    33 end
    34 }}}
    35 
    36 Then when '''feed''' is instantiated on the FlowSheet '''feed.NComp''' will be a reference for '''NComp''' on the FlowSheet.
    37 But if the stream is used in a model this model can have a '''NComp''' parameter and this will be referenced.
     38        SUB01 as SubProcess;
     39        SUB02 as SubProcess;
     40
     41        SET
     42        SUB01.NComp = 10;
     43        SUB02.NComp = 3;
     44end
     45}}}
     46
     47Then when '''stream'''s are instantiated on the FlowSheet '''NComp''' will be a reference for '''NComp''' on the SubProcess.
     48Then we can have parameters which are ''global'' inside of a given ''context''.
     49If there is no '''intermediate''' declaration of the '''outer''' parameter, then it will be matched only on the '''FlowSheet''' and will works exactly
     50as it is today.
    3851
    3952||Who || Opinion || Why ||
    4053||Rafael || '''agreed''' || proposed the change ||
    4154||Paula || '''agreed''' || because this change gives more flexibility to the user ||
    42 ||Arge || '''in doubt''' || if two streams are used in a model with different number of '''NComp''', is it possible to set '''stream1.NComp''' and '''stream2.NComp''' to different values in that model? ||
     55||Arge || '''in doubt''' || if two streams are used in a model with different number of '''NComp''', is it possible to set '''stream1.NComp''' and '''stream2.NComp''' to different values in that model? [[Color(red, please check the new explanation - it is not possible to have strems on the same model with different number of NComp using the outer command but it is possible for different models)]]||
    4356
    4457== CalcObject's ==