Changes between Version 19 and Version 20 of LanguageChanges
- Timestamp:
- Jan 23, 2007, 5:26:28 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LanguageChanges
v19 v20 25 25 end 26 26 27 FlowSheet MyProcess27 Model SubProcess 28 28 PARAMETERS 29 29 NComp as Integer(Brief = "Number of chemical components", Lower = 1); 30 30 31 VARIABLES 32 FL101 as flash; # flash model here uses the stream model 33 FL102 as flash; 34 end 35 36 FlowSheet Flow 31 37 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; 44 end 45 }}} 46 47 Then when '''stream'''s are instantiated on the FlowSheet '''NComp''' will be a reference for '''NComp''' on the SubProcess. 48 Then we can have parameters which are ''global'' inside of a given ''context''. 49 If there is no '''intermediate''' declaration of the '''outer''' parameter, then it will be matched only on the '''FlowSheet''' and will works exactly 50 as it is today. 38 51 39 52 ||Who || Opinion || Why || 40 53 ||Rafael || '''agreed''' || proposed the change || 41 54 ||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)]]|| 43 56 44 57 == CalcObject's ==