# Ticket #117: sample.mso

File sample.mso, 455 bytes (added by , 14 years ago) |
---|

Line | |
---|---|

1 | |

2 | |

3 | Model device1 |

4 | PARAMETERS |

5 | outer A as Real; |

6 | |

7 | VARIABLES |

8 | X as Real; |

9 | |

10 | EQUATIONS |

11 | X = A(1); # value of position 1 of the outer parameter |

12 | end |

13 | |

14 | Model device2 |

15 | PARAMETERS |

16 | outer A as Real; |

17 | |

18 | VARIABLES |

19 | Y as Real; |

20 | |

21 | EQUATIONS |

22 | Y = A(2); # value of position 2 of the outer parameter |

23 | end |

24 | |

25 | FlowSheet sample |

26 | PARAMETERS |

27 | N as Integer; |

28 | A(N) as Real; |

29 | |

30 | DEVICES |

31 | D1 as device1; |

32 | D2 as device2; |

33 | |

34 | SET |

35 | N = 2; |

36 | A = [0,1]; |

37 | |

38 | OPTIONS |

39 | Dynamic = false; |

40 | end |

41 |