Changes between Version 6 and Version 7 of LanguageChanges
- Timestamp:
- Jan 12, 2007, 1:10:59 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LanguageChanges
v6 v7 157 157 But some more complex situations cannot be modeled with '''if'''. 158 158 159 For example, a safety valve which opens if the pressure is higher than 2 atm but closes only when the pressure is lower than 1 atm.159 For example, a safety valve which opens if the pressure is higher than 2 atm but closes only when the pressure is lower than the outside pressure. 160 160 This situation cannot be modeled by a simply '''if'''. For this case, a State Transition Network (STN) is needed. 161 161 … … 171 171 case "closed": 172 172 flow = 0 * "mol/h"; 173 change to "opened" if P >2*"atm";173 change to "opened" if P > 2*"atm"; 174 174 case "opened": 175 175 flow = k*sqrt(P - Pout); 176 change to "closed" if P <1*"atm";176 change to "closed" if P < Pout; 177 177 end 178 178 ...