Changeset 180 for branches/newlanguage
- Timestamp:
- Mar 5, 2007, 11:42:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/miscellaneous/sample_switcher.mso
r145 r180 9 9 PARAMETERS 10 10 ValveMode as Switcher(Valid = ["closed", "opened"], Default = "closed"); 11 R as Real(Unit= "J/(K*mol)", Default=8.314472);11 R as Real(Unit='J/(K*mol)', Default=8.314472); 12 12 V as volume; 13 13 T as temperature; … … 31 31 switch ValveMode 32 32 case "closed": 33 flow_out = 0 * "mol/h";34 when P > 2* "atm"switchto "opened";33 flow_out = 0 * 'mol/h'; 34 when P > 2*'atm' switchto "opened"; 35 35 36 36 case "opened": … … 45 45 46 46 SET 47 ball.V = 1 * "l";48 ball.T = 300 * "K";49 ball.Pout = 1 * "atm";47 ball.V = 1 * 'l'; 48 ball.T = 300 * 'K'; 49 ball.Pout = 1 * 'atm'; 50 50 ball.ValveMode = "opened"; 51 51 52 52 SPECIFY 53 ball.flow_in = 50 * "mol/h";53 ball.flow_in = 50 * 'mol/h'; 54 54 55 55 INITIAL 56 ball.P = 1.2 * "atm";56 ball.P = 1.2 * 'atm'; 57 57 58 58 OPTIONS
Note: See TracChangeset
for help on using the changeset viewer.