Changes between Version 6 and Version 7 of LanguageChanges


Ignore:
Timestamp:
Jan 12, 2007, 1:10:59 PM (15 years ago)
Author:
Rafael de Pelegrini Soares
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LanguageChanges

    v6 v7  
    157157But some more complex situations cannot be modeled with '''if'''.
    158158
    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.
     159For 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.
    160160This situation cannot be modeled by a simply '''if'''. For this case, a State Transition Network (STN) is needed.
    161161
     
    171171    case "closed":
    172172       flow = 0 * "mol/h";
    173        change to "opened" if P>2*"atm";
     173       change to "opened" if P > 2*"atm";
    174174    case "opened":
    175175       flow = k*sqrt(P - Pout);
    176        change to "closed" if P<1*"atm";
     176       change to "closed" if P < Pout;
    177177    end
    178178    ...