| 1 | model plant
|
|---|
| 2 | /*
|
|---|
| 3 | Author: Ravi Saripalli
|
|---|
| 4 | 9th May 2014
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | /*
|
|---|
| 8 | import ThermoS.Uops.*;
|
|---|
| 9 | import ThermoS.Types.*;
|
|---|
| 10 | import Gas = ThermoS.Media.MyGas;
|
|---|
| 11 |
|
|---|
| 12 | constant Real AirComp[3] = {0.767,0.233,0};
|
|---|
| 13 |
|
|---|
| 14 | Reservoir res1 (redeclare package Medium = Gas, p = 5e5, T = 300, Xi = AirComp); // Reservoir 1
|
|---|
| 15 | Reservoir res3 (redeclare package Medium = Gas, p = 1e5, T = 300, Xi = AirComp); // Reservoir 2
|
|---|
| 16 |
|
|---|
| 17 | HeaterCooler htr(redeclare package Medium = Gas, cf = 1.0e-3,
|
|---|
| 18 | A_wf = 1, h_wf = 150,
|
|---|
| 19 | w_m = 1, w_cp = 420, holdup = 50);
|
|---|
| 20 | */
|
|---|
| 21 |
|
|---|
| 22 | Real x ;
|
|---|
| 23 |
|
|---|
| 24 | equation
|
|---|
| 25 | der(x) = 1.0 ;
|
|---|
| 26 |
|
|---|
| 27 | initial algorithm
|
|---|
| 28 | x := 0 ;
|
|---|
| 29 | end plant;
|
|---|