/[ascend]/trunk/models/when_demo.a4s
ViewVC logotype

Contents of /trunk/models/when_demo.a4s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download)
Fri Oct 29 20:54:12 2004 UTC (15 years, 5 months ago) by aw0a
File size: 2118 byte(s)
Setting up web subdirectory in repository
1 # This file is part of the ASCEND Modeling Library and is released
2 # under the GNU Public License as described at the end of this file.
3 #
4 # This file demonstrates the use of when_demo.a4c
5
6 DELETE TYPES
7 READ FILE "when_demo.a4c";
8
9 COMPILE {t1} OF {test_flowsheet};
10 BROWSE {t1};
11 #
12 # Initial configuration. The values of the boolean
13 # variables as well as the values of the fixed variables
14 # are given by the METHOD values
15 #
16 RUN {t1.reset};
17 RUN {t1.values};
18 SOLVE {t1} WITH QRSlv;
19 PROBE current {t1} {1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0};
20 #
21 # Note that the residuals of the inactive equations are still
22 # equal to the default value since we have not attempted to
23 # solve them
24 #
25 # Change configuration and resolve. Note the change in the
26 # number of active variables, active equations and degrees
27 # of freedom.
28 #
29 RUN {t1.configuration2};
30 SOLVE {t1} WITH QRSlv;
31 #
32 # Third configuration
33 #
34 RUN {t1.configuration3};
35 SOLVE {t1} WITH QRSlv;
36
37 ########## when_demo.a4s ends here ##########
38 #
39 # when_demo.a4s
40 # by Vicente Rico-Ramirez
41 # June 03, 1997
42 # by Arthur W. Westerberg
43 # Part of the ASCEND Library
44 # $Date: 1998/06/17 20:08:51 $
45 # $Revision: 1.7 $
46 # $Author: mthomas $
47 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/models/when_demo.a4s,v $
48 #
49 # This file is part of the ASCEND Modeling Library.
50 #
51 # Copyright (C) 1997 - 1998 Carnegie Mellon University
52 #
53 # The ASCEND Modeling Library is free software. You can redistribute
54 # it and/or modify it under the terms of the GNU General Public
55 # License as published by the Free Software Foundation---either
56 # version 2 of the License, or (at your option) any later version.
57 #
58 # The ASCEND Modeling Library is distributed in hope that it
59 # will be useful, but WITHOUT ANY WARRANTY--without even the implied
60 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
61 # See the GNU General Public License for more details.
62 #
63 # You should have received a copy of the GNU General Public License
64 # along with the program. If not, write to the Free Software
65 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check
66 # the file named COPYING.

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22