/[ascend]/trunk/doc/howto-model2.lyx
ViewVC logotype

Diff of /trunk/doc/howto-model2.lyx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1368 by jpye, Sat Mar 17 23:48:07 2007 UTC revision 1369 by jpye, Fri Mar 30 01:55:53 2007 UTC
# Line 225  MODEL vessel; Line 225  MODEL vessel;
225  \end_layout  \end_layout
226    
227  \begin_layout LyX-Code  \begin_layout LyX-Code
228  'author'SELF {Arthur W.          'author'SELF {Arthur W.
229   Westerberg}   Westerberg}
230  \end_layout  \end_layout
231    
232  \begin_layout LyX-Code  \begin_layout LyX-Code
233  'creation date' SELF {May, 1998}          'creation date' SELF {May, 1998}
234  \end_layout  \end_layout
235    
236  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 238  MODEL vessel; Line 238  MODEL vessel;
238  \end_layout  \end_layout
239    
240  \begin_layout LyX-Code  \begin_layout LyX-Code
241  (* variables *)      (* variables *)
242  \end_layout  \end_layout
243    
244  \begin_layout LyX-Code  \begin_layout LyX-Code
245  side_area "the area of the cylindrical side wall of the vessel",      side_area "the area of the cylindrical side wall of the vessel",
246  \end_layout  \end_layout
247    
248  \begin_layout LyX-Code  \begin_layout LyX-Code
249  end_area "the area of the flat ends of the vessel"      end_area "the area of the flat ends of the vessel"
250  \end_layout  \end_layout
251    
252  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 254  end_area "the area of the flat ends of t Line 254  end_area "the area of the flat ends of t
254  \end_layout  \end_layout
255    
256  \begin_layout LyX-Code  \begin_layout LyX-Code
257  vessel_vol "the volume contained within the cylindrical vessel",      vessel_vol "the volume contained within the cylindrical vessel",
258  \end_layout  \end_layout
259    
260  \begin_layout LyX-Code  \begin_layout LyX-Code
261  wall_vol "the volume of the walls for the vessel"      wall_vol "the volume of the walls for the vessel"
262  \end_layout  \end_layout
263    
264  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 266  wall_vol "the volume of the walls for th Line 266  wall_vol "the volume of the walls for th
266  \end_layout  \end_layout
267    
268  \begin_layout LyX-Code  \begin_layout LyX-Code
269  wall_thickness "the thickness of all of the vessel walls",      wall_thickness "the thickness of all of the vessel walls",
270  \end_layout  \end_layout
271    
272  \begin_layout LyX-Code  \begin_layout LyX-Code
273  H "the vessel height (of the cylindrical side walls)",      H "the vessel height (of the cylindrical side walls)",
274  \end_layout  \end_layout
275    
276  \begin_layout LyX-Code  \begin_layout LyX-Code
277  D "the vessel diameter"      D "the vessel diameter"
278  \end_layout  \end_layout
279    
280  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 282  D "the vessel diameter" Line 282  D "the vessel diameter"
282  \end_layout  \end_layout
283    
284  \begin_layout LyX-Code  \begin_layout LyX-Code
285  H_to_D_ratio "the ratio of vessel height to diameter"      H_to_D_ratio "the ratio of vessel height to diameter"
286  \end_layout  \end_layout
287    
288  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 290  H_to_D_ratio "the ratio of vessel height Line 290  H_to_D_ratio "the ratio of vessel height
290  \end_layout  \end_layout
291    
292  \begin_layout LyX-Code  \begin_layout LyX-Code
293  metal_density "density of the metal from which the vessel      metal_density "density of the metal from which the vessel
294  \end_layout  \end_layout
295    
296  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 302  metal_density "density of the metal from Line 302  metal_density "density of the metal from
302  \end_layout  \end_layout
303    
304  \begin_layout LyX-Code  \begin_layout LyX-Code
305  metal_mass "the mass of the metal in the walls of the vessel"      metal_mass "the mass of the metal in the walls of the vessel"
306  \end_layout  \end_layout
307    
308  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 310  metal_mass "the mass of the metal in the Line 310  metal_mass "the mass of the metal in the
310  \end_layout  \end_layout
311    
312  \begin_layout LyX-Code  \begin_layout LyX-Code
313  (* equations *)      (* equations *)
314  \end_layout  \end_layout
315    
316  \begin_layout LyX-Code  \begin_layout LyX-Code
317  FlatEnds:end_area = 1{PI} * D^2 / 4;      FlatEnds:end_area = 1{PI} * D^2 / 4;
318  \end_layout  \end_layout
319    
320  \begin_layout LyX-Code  \begin_layout LyX-Code
321  Sides:side_area = 1{PI} * D * H;      Sides:side_area = 1{PI} * D * H;
322  \end_layout  \end_layout
323    
324  \begin_layout LyX-Code  \begin_layout LyX-Code
325  Cylinder:vessel_vol = end_area * H;      Cylinder:vessel_vol = end_area * H;
326  \end_layout  \end_layout
327    
328  \begin_layout LyX-Code  \begin_layout LyX-Code
329  Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;      Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;
330  \end_layout  \end_layout
331    
332  \begin_layout LyX-Code  \begin_layout LyX-Code
333  HD_definition:D * H_to_D_ratio = H;      HD_definition:D * H_to_D_ratio = H;
334  \end_layout  \end_layout
335    
336  \begin_layout LyX-Code  \begin_layout LyX-Code
337  VesselMass:metal_mass = metal_density * wall_vol;      VesselMass:metal_mass = metal_density * wall_vol;
338  \end_layout  \end_layout
339    
340  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 350  ADD NOTES IN vessel; Line 350  ADD NOTES IN vessel;
350  \end_layout  \end_layout
351    
352  \begin_layout LyX-Code  \begin_layout LyX-Code
353  'description' SELF {This model relates the dimensions of a      'description' SELF {This model relates the dimensions of a
354  \end_layout  \end_layout
355    
356  \begin_layout LyX-Code  \begin_layout LyX-Code
357             cylindrical vessel -- e.g., diameter,          cylindrical vessel -- e.g., diameter,
358  \end_layout  \end_layout
359    
360  \begin_layout LyX-Code  \begin_layout LyX-Code
361             height and wall thicknes to the volume of metal          height and wall thicknes to the volume of metal
362  \end_layout  \end_layout
363    
364  \begin_layout LyX-Code  \begin_layout LyX-Code
365             in the walls.          in the walls.
366    It uses a thin wall assumption    It uses a thin wall assumption
367  \end_layout  \end_layout
368    
369  \begin_layout LyX-Code  \begin_layout LyX-Code
370             -- i.e., that the volume of metal is the area of          -- i.e., that the volume of metal is the area of
371  \end_layout  \end_layout
372    
373  \begin_layout LyX-Code  \begin_layout LyX-Code
374             the vessel times the wall thickness.}          the vessel times the wall thickness.}
375  \end_layout  \end_layout
376    
377  \begin_layout LyX-Code  \begin_layout LyX-Code
378  'purpose' SELF {to illustrate the insertion of notes into a model}      'purpose' SELF {to illustrate the insertion of notes into a model}
379  \end_layout  \end_layout
380    
381  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 923  MODEL vessel; Line 923  MODEL vessel;
923  \end_layout  \end_layout
924    
925  \begin_layout LyX-Code  \begin_layout LyX-Code
926  'author' SELF {Arthur W.          'author' SELF {Arthur W.
927   Westerberg}   Westerberg}
928  \end_layout  \end_layout
929    
930  \begin_layout LyX-Code  \begin_layout LyX-Code
931  'creation date' SELF {May, 1998}          'creation date' SELF {May, 1998}
932  \end_layout  \end_layout
933    
934  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 940  MODEL vessel; Line 940  MODEL vessel;
940  \end_layout  \end_layout
941    
942  \begin_layout LyX-Code  \begin_layout LyX-Code
943  (* variables *)      (* variables *)
944  \end_layout  \end_layout
945    
946  \begin_layout LyX-Code  \begin_layout LyX-Code
947  side_area "the area of the cylindrical side wall of the vessel",      side_area "the area of the cylindrical side wall of the vessel",
948  \end_layout  \end_layout
949    
950  \begin_layout LyX-Code  \begin_layout LyX-Code
951  end_area "the area of the flat ends of the vessel"      end_area "the area of the flat ends of the vessel"
952  \end_layout  \end_layout
953    
954  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 956  end_area "the area of the flat ends of t Line 956  end_area "the area of the flat ends of t
956  \end_layout  \end_layout
957    
958  \begin_layout LyX-Code  \begin_layout LyX-Code
959  vessel_vol "the volume contained within the cylindrical vessel",      vessel_vol "the volume contained within the cylindrical vessel",
960  \end_layout  \end_layout
961    
962  \begin_layout LyX-Code  \begin_layout LyX-Code
963  wall_vol "the volume of the walls for the vessel"      wall_vol "the volume of the walls for the vessel"
964  \end_layout  \end_layout
965    
966  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 968  wall_vol "the volume of the walls for th Line 968  wall_vol "the volume of the walls for th
968  \end_layout  \end_layout
969    
970  \begin_layout LyX-Code  \begin_layout LyX-Code
971  wall_thickness "the thickness of all of the vessel walls",      wall_thickness "the thickness of all of the vessel walls",
972  \end_layout  \end_layout
973    
974  \begin_layout LyX-Code  \begin_layout LyX-Code
975  H "the vessel height (of the cylindrical side walls)",      H "the vessel height (of the cylindrical side walls)",
976  \end_layout  \end_layout
977    
978  \begin_layout LyX-Code  \begin_layout LyX-Code
979  D "the vessel diameter"      D "the vessel diameter"
980  \end_layout  \end_layout
981    
982  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 984  D "the vessel diameter" Line 984  D "the vessel diameter"
984  \end_layout  \end_layout
985    
986  \begin_layout LyX-Code  \begin_layout LyX-Code
987  H_to_D_ratio "the ratio of vessel height to diameter"      H_to_D_ratio "the ratio of vessel height to diameter"
988  \end_layout  \end_layout
989    
990  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 992  H_to_D_ratio "the ratio of vessel height Line 992  H_to_D_ratio "the ratio of vessel height
992  \end_layout  \end_layout
993    
994  \begin_layout LyX-Code  \begin_layout LyX-Code
995  metal_density "density of the metal from which the vessel      metal_density "density of the metal from which the vessel
996  \end_layout  \end_layout
997    
998  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1004  metal_density "density of the metal from Line 1004  metal_density "density of the metal from
1004  \end_layout  \end_layout
1005    
1006  \begin_layout LyX-Code  \begin_layout LyX-Code
1007  metal_mass "the mass of the metal in the walls of the vessel"      metal_mass "the mass of the metal in the walls of the vessel"
1008  \end_layout  \end_layout
1009    
1010  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1012  metal_mass "the mass of the metal in the Line 1012  metal_mass "the mass of the metal in the
1012  \end_layout  \end_layout
1013    
1014  \begin_layout LyX-Code  \begin_layout LyX-Code
1015  (* equations *)      (* equations *)
1016  \end_layout  \end_layout
1017    
1018  \begin_layout LyX-Code  \begin_layout LyX-Code
1019  FlatEnds:end_area = 1{PI} * D^2 / 4;      FlatEnds:end_area = 1{PI} * D^2 / 4;
1020  \end_layout  \end_layout
1021    
1022  \begin_layout LyX-Code  \begin_layout LyX-Code
1023  Sides:side_area = 1{PI} * D * H;      Sides:side_area = 1{PI} * D * H;
1024  \end_layout  \end_layout
1025    
1026  \begin_layout LyX-Code  \begin_layout LyX-Code
1027  Cylinder:vessel_vol = end_area * H;      Cylinder:vessel_vol = end_area * H;
1028  \end_layout  \end_layout
1029    
1030  \begin_layout LyX-Code  \begin_layout LyX-Code
1031  Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;      Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;
1032  \end_layout  \end_layout
1033    
1034  \begin_layout LyX-Code  \begin_layout LyX-Code
1035  HD_definition:D * H_to_D_ratio = H;      HD_definition:D * H_to_D_ratio = H;
1036  \end_layout  \end_layout
1037    
1038  \begin_layout LyX-Code  \begin_layout LyX-Code
1039  VesselMass:metal_mass = metal_density * wall_vol;      VesselMass:metal_mass = metal_density * wall_vol;
1040  \end_layout  \end_layout
1041    
1042  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1048  METHODS Line 1048  METHODS
1048  \end_layout  \end_layout
1049    
1050  \begin_layout LyX-Code  \begin_layout LyX-Code
1051  METHOD specify;      METHOD specify;
1052  \end_layout  \end_layout
1053    
1054  \begin_layout LyX-Code  \begin_layout LyX-Code
1055      NOTES          NOTES
1056  \end_layout  \end_layout
1057    
1058  \begin_layout LyX-Code  \begin_layout LyX-Code
1059  'purpose' SELF {to fix four variables and make the problem well-posed}              'purpose' SELF {to fix four variables and make the problem well-pose
1060    d}
1061  \end_layout  \end_layout
1062    
1063  \begin_layout LyX-Code  \begin_layout LyX-Code
1064      END NOTES;          END NOTES;
1065  \end_layout  \end_layout
1066    
1067  \begin_layout LyX-Code  \begin_layout LyX-Code
1068  vessel_vol.fixed:=TRUE;          vessel_vol.fixed:=TRUE;
1069  \end_layout  \end_layout
1070    
1071  \begin_layout LyX-Code  \begin_layout LyX-Code
1072  H_to_D_ratio.fixed:=TRUE;          H_to_D_ratio.fixed:=TRUE;
1073  \end_layout  \end_layout
1074    
1075  \begin_layout LyX-Code  \begin_layout LyX-Code
1076  wall_thickness.fixed  :=TRUE;          wall_thickness.fixed  :=TRUE;
1077  \end_layout  \end_layout
1078    
1079  \begin_layout LyX-Code  \begin_layout LyX-Code
1080  metal_density.fixed:=TRUE;          metal_density.fixed:=TRUE;
1081  \end_layout  \end_layout
1082    
1083  \begin_layout LyX-Code  \begin_layout LyX-Code
1084  END specify;      END specify;
1085  \end_layout  \end_layout
1086    
1087  \begin_layout LyX-Code  \begin_layout LyX-Code
1088  METHOD values;      METHOD values;
1089  \end_layout  \end_layout
1090    
1091  \begin_layout LyX-Code  \begin_layout LyX-Code
1092      NOTES          NOTES
1093  \end_layout  \end_layout
1094    
1095  \begin_layout LyX-Code  \begin_layout LyX-Code
1096  'purpose' SELF {to set the values for the fixed variables}              'purpose' SELF {to set the values for the fixed variables}
1097  \end_layout  \end_layout
1098    
1099  \begin_layout LyX-Code  \begin_layout LyX-Code
1100      END NOTES;          END NOTES;
1101  \end_layout  \end_layout
1102    
1103  \begin_layout LyX-Code  \begin_layout LyX-Code
1104  H_to_D_ratio            :=   2;          H_to_D_ratio            :=   2;
1105  \end_layout  \end_layout
1106    
1107  \begin_layout LyX-Code  \begin_layout LyX-Code
1108  vessel_vol              :=   250 {ft^3};          vessel_vol              :=   250 {ft^3};
1109  \end_layout  \end_layout
1110    
1111  \begin_layout LyX-Code  \begin_layout LyX-Code
1112  wall_thickness          :=      5 {mm};          wall_thickness          :=      5 {mm};
1113  \end_layout  \end_layout
1114    
1115  \begin_layout LyX-Code  \begin_layout LyX-Code
1116  metal_density           :=   5000 {kg/m^3};          metal_density           :=   5000 {kg/m^3};
1117  \end_layout  \end_layout
1118    
1119  \begin_layout LyX-Code  \begin_layout LyX-Code
1120  END values;      END values;
1121  \end_layout  \end_layout
1122    
1123  \begin_layout LyX-Code  \begin_layout LyX-Code
1124  METHOD bound_self;      METHOD bound_self;
1125  \end_layout  \end_layout
1126    
1127  \begin_layout LyX-Code  \begin_layout LyX-Code
1128  END bound_self;      END bound_self;
1129  \end_layout  \end_layout
1130    
1131  \begin_layout LyX-Code  \begin_layout LyX-Code
1132  METHOD scale_self;      METHOD scale_self;
1133  \end_layout  \end_layout
1134    
1135  \begin_layout LyX-Code  \begin_layout LyX-Code
1136  END scale_self;      END scale_self;
1137  \end_layout  \end_layout
1138    
1139  \begin_layout LyX-Code  \begin_layout LyX-Code
1140  METHOD default_self;      METHOD default_self;
1141  \end_layout  \end_layout
1142    
1143  \begin_layout LyX-Code  \begin_layout LyX-Code
1144  D:=1 {m};          D:=1 {m};
1145  \end_layout  \end_layout
1146    
1147  \begin_layout LyX-Code  \begin_layout LyX-Code
1148  H:=1 {m};          H:=1 {m};
1149  \end_layout  \end_layout
1150    
1151  \begin_layout LyX-Code  \begin_layout LyX-Code
1152  H_to_D_ratio            :=1;          H_to_D_ratio            :=1;
1153  \end_layout  \end_layout
1154    
1155  \begin_layout LyX-Code  \begin_layout LyX-Code
1156  vessel_vol              := 1 {m^3};          vessel_vol              := 1 {m^3};
1157  \end_layout  \end_layout
1158    
1159  \begin_layout LyX-Code  \begin_layout LyX-Code
1160  wall_thickness          :=5 {mm};          wall_thickness          :=5 {mm};
1161  \end_layout  \end_layout
1162    
1163  \begin_layout LyX-Code  \begin_layout LyX-Code
1164  metal_density           :=5000 {kg/m^3};          metal_density           :=5000 {kg/m^3};
1165  \end_layout  \end_layout
1166    
1167  \begin_layout LyX-Code  \begin_layout LyX-Code
1168  END default_self;      END default_self;
1169  \end_layout  \end_layout
1170    
1171  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1180  ADD NOTES IN vessel; Line 1181  ADD NOTES IN vessel;
1181  \end_layout  \end_layout
1182    
1183  \begin_layout LyX-Code  \begin_layout LyX-Code
1184  'description' SELF {This model relates the dimensions of a      'description' SELF {This model relates the dimensions of a
1185  \end_layout  \end_layout
1186    
1187  \begin_layout LyX-Code  \begin_layout LyX-Code
1188             cylindrical vessel -- e.g., diameter, height and wall thickness          cylindrical vessel -- e.g., diameter, height and wall thickness
1189  \end_layout  \end_layout
1190    
1191  \begin_layout LyX-Code  \begin_layout LyX-Code
1192             to the volume of metal in the walls.          to the volume of metal in the walls.
1193    It uses a thin wall    It uses a thin wall
1194  \end_layout  \end_layout
1195    
1196  \begin_layout LyX-Code  \begin_layout LyX-Code
1197             assumption -- i.e., that the volume of metal is the area of          assumption -- i.e., that the volume of metal is the area of
1198  \end_layout  \end_layout
1199    
1200  \begin_layout LyX-Code  \begin_layout LyX-Code
1201             the vessel times the wall thickness.}          the vessel times the wall thickness.}
1202  \end_layout  \end_layout
1203    
1204  \begin_layout LyX-Code  \begin_layout LyX-Code
1205  'purpose' SELF {to illustrate the insertion of notes into a model}      'purpose' SELF {to illustrate the insertion of notes into a model}
1206  \end_layout  \end_layout
1207    
1208  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1685  To use instances of our model as parts i Line 1686  To use instances of our model as parts i
1686   it.   it.
1687   We use parameterization to tell a future user that the parameters are objects   We use parameterization to tell a future user that the parameters are objects
1688   he or she is likely to share among many different parts of a model.   he or she is likely to share among many different parts of a model.
1689   We wish to create a table containing different values of H_to_D_ratio vs.   We wish to create a table containing different values of
1690   metal_mass.  \family typewriter
1691    H_to_D_ratio
1692    \family default
1693     vs.
1694    
1695    \family typewriter
1696    metal_mass
1697    \family default
1698    .
1699   We can accomplish this by computing simultaneously several different vessels   We can accomplish this by computing simultaneously several different vessels
1700   having the same vessel_volume, wall_thickness and metal_density.   having the same
1701    \family typewriter
1702    vessel_volume
1703    \family default
1704    ,
1705    \family typewriter
1706    wall_thickness
1707    \family default
1708     and
1709    \family typewriter
1710    metal_density
1711    \family default
1712    .
1713   The objects we want to see and/or share for each instance of a vessel should   The objects we want to see and/or share for each instance of a vessel should
1714   include, therefore: H_to_D_ratio, metal_mass, metal_density, vessel_volume   include, therefore:
1715   and wall_thickness.  \family typewriter
1716    H_to_D_ratio
1717    \family default
1718    ,
1719    \family typewriter
1720    metal_mass
1721    \family default
1722    ,
1723    \family typewriter
1724    metal_density
1725    \family default
1726    ,
1727    \family typewriter
1728    vessel_volume
1729    \family default
1730     and
1731    \family typewriter
1732    wall_thickness
1733    \family default
1734    .
1735  \end_layout  \end_layout
1736    
1737  \begin_layout Standard  \begin_layout Standard
# Line 1721  MODEL vessel( Line 1761  MODEL vessel(
1761  \end_layout  \end_layout
1762    
1763  \begin_layout LyX-Code  \begin_layout LyX-Code
1764  vessel_vol "the volume contained within the cylindrical vessel"      vessel_vol "the volume contained within the cylindrical vessel"
1765  \end_layout  \end_layout
1766    
1767  \begin_layout LyX-Code  \begin_layout LyX-Code
1768  WILL_BE volume;          WILL_BE volume;
1769  \end_layout  \end_layout
1770    
1771  \begin_layout LyX-Code  \begin_layout LyX-Code
1772  wall_thickness "the thickness of all of the vessel walls"      wall_thickness "the thickness of all of the vessel walls"
1773  \end_layout  \end_layout
1774    
1775  \begin_layout LyX-Code  \begin_layout LyX-Code
1776  WILL_BE distance;          WILL_BE distance;
1777  \end_layout  \end_layout
1778    
1779  \begin_layout LyX-Code  \begin_layout LyX-Code
1780  metal_density "density of the metal from which the vessel      metal_density "density of the metal from which the vessel
1781  \end_layout  \end_layout
1782    
1783  \begin_layout LyX-Code  \begin_layout LyX-Code
1784                    is constructed"              is constructed"
1785  \end_layout  \end_layout
1786    
1787  \begin_layout LyX-Code  \begin_layout LyX-Code
1788  WILL_BE mass_density;          WILL_BE mass_density;
1789  \end_layout  \end_layout
1790    
1791  \begin_layout LyX-Code  \begin_layout LyX-Code
1792  H_to_D_ratio "the ratio of vessel height to diameter"      H_to_D_ratio "the ratio of vessel height to diameter"
1793  \end_layout  \end_layout
1794    
1795  \begin_layout LyX-Code  \begin_layout LyX-Code
1796  WILL_BE factor;          WILL_BE factor;
1797  \end_layout  \end_layout
1798    
1799  \begin_layout LyX-Code  \begin_layout LyX-Code
1800  metal_mass "the mass of the metal in the walls of the vessel"      metal_mass "the mass of the metal in the walls of the vessel"
1801  \end_layout  \end_layout
1802    
1803  \begin_layout LyX-Code  \begin_layout LyX-Code
1804  WILL_BE mass;          WILL_BE mass;
1805  \end_layout  \end_layout
1806    
1807  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1773  WILL_BE mass; Line 1813  WILL_BE mass;
1813  \end_layout  \end_layout
1814    
1815  \begin_layout LyX-Code  \begin_layout LyX-Code
1816  'author' SELF {Arthur W.          'author' SELF {Arthur W.
1817   Westerberg}   Westerberg}
1818  \end_layout  \end_layout
1819    
1820  \begin_layout LyX-Code  \begin_layout LyX-Code
1821  'creation date' SELF {May, 1998}          'creation date' SELF {May, 1998}
1822  \end_layout  \end_layout
1823    
1824  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1790  WILL_BE mass; Line 1830  WILL_BE mass;
1830  \end_layout  \end_layout
1831    
1832  \begin_layout LyX-Code  \begin_layout LyX-Code
1833  (* variables *)      (* variables *)
1834  \end_layout  \end_layout
1835    
1836  \begin_layout LyX-Code  \begin_layout LyX-Code
1837  side_area "the area of the cylindrical side wall of the vessel",      side_area "the area of the cylindrical side wall of the vessel",
1838  \end_layout  \end_layout
1839    
1840  \begin_layout LyX-Code  \begin_layout LyX-Code
1841  end_area "the area of the flat ends of the vessel"      end_area "the area of the flat ends of the vessel"
1842  \end_layout  \end_layout
1843    
1844  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1806  end_area "the area of the flat ends of t Line 1846  end_area "the area of the flat ends of t
1846  \end_layout  \end_layout
1847    
1848  \begin_layout LyX-Code  \begin_layout LyX-Code
1849  wall_vol "the volume of the walls for the vessel"      wall_vol "the volume of the walls for the vessel"
1850  \end_layout  \end_layout
1851    
1852  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1814  wall_vol "the volume of the walls for th Line 1854  wall_vol "the volume of the walls for th
1854  \end_layout  \end_layout
1855    
1856  \begin_layout LyX-Code  \begin_layout LyX-Code
1857  H "the vessel height (of the cylindrical side walls)",      H "the vessel height (of the cylindrical side walls)",
1858  \end_layout  \end_layout
1859    
1860  \begin_layout LyX-Code  \begin_layout LyX-Code
1861  D "the vessel diameter"      D "the vessel diameter"
1862  \end_layout  \end_layout
1863    
1864  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1826  D "the vessel diameter" Line 1866  D "the vessel diameter"
1866  \end_layout  \end_layout
1867    
1868  \begin_layout LyX-Code  \begin_layout LyX-Code
1869  (* equations *)      (* equations *)
1870  \end_layout  \end_layout
1871    
1872  \begin_layout LyX-Code  \begin_layout LyX-Code
1873  FlatEnds:end_area = 1{PI} * D^2 / 4;      FlatEnds:end_area = 1{PI} * D^2 / 4;
1874  \end_layout  \end_layout
1875    
1876  \begin_layout LyX-Code  \begin_layout LyX-Code
1877  Sides:side_area = 1{PI} * D * H;      Sides:side_area = 1{PI} * D * H;
1878  \end_layout  \end_layout
1879    
1880  \begin_layout LyX-Code  \begin_layout LyX-Code
1881  Cylinder:vessel_vol = end_area * H;      Cylinder:vessel_vol = end_area * H;
1882  \end_layout  \end_layout
1883    
1884  \begin_layout LyX-Code  \begin_layout LyX-Code
1885  Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;      Metal_volume:(side_area + 2 * end_area) * wall_thickness = wall_vol;
1886  \end_layout  \end_layout
1887    
1888  \begin_layout LyX-Code  \begin_layout LyX-Code
1889  HD_definition:D * H_to_D_ratio = H;      HD_definition:D * H_to_D_ratio = H;
1890  \end_layout  \end_layout
1891    
1892  \begin_layout LyX-Code  \begin_layout LyX-Code
1893  VesselMass:metal_mass = metal_density * wall_vol;      VesselMass:metal_mass = metal_density * wall_vol;
1894  \end_layout  \end_layout
1895    
1896  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1862  METHODS Line 1902  METHODS
1902  \end_layout  \end_layout
1903    
1904  \begin_layout LyX-Code  \begin_layout LyX-Code
1905  METHOD specify;      METHOD specify;
1906  \end_layout  \end_layout
1907    
1908  \begin_layout LyX-Code  \begin_layout LyX-Code
1909      NOTES          NOTES
1910  \end_layout  \end_layout
1911    
1912  \begin_layout LyX-Code  \begin_layout LyX-Code
1913  'purpose' SELF {to fix four variables and make the problem well-posed}              'purpose' SELF {to fix four variables and make the problem well-pose
1914    d}
1915  \end_layout  \end_layout
1916    
1917  \begin_layout LyX-Code  \begin_layout LyX-Code
1918      END NOTES;          END NOTES;
1919  \end_layout  \end_layout
1920    
1921  \begin_layout LyX-Code  \begin_layout LyX-Code
1922  vessel_vol.fixed:=TRUE;          vessel_vol.fixed:=TRUE;
1923  \end_layout  \end_layout
1924    
1925  \begin_layout LyX-Code  \begin_layout LyX-Code
1926  H_to_D_ratio.fixed:=TRUE;          H_to_D_ratio.fixed:=TRUE;
1927  \end_layout  \end_layout
1928    
1929  \begin_layout LyX-Code  \begin_layout LyX-Code
1930  wall_thickness.fixed  :=TRUE;          wall_thickness.fixed  :=TRUE;
1931  \end_layout  \end_layout
1932    
1933  \begin_layout LyX-Code  \begin_layout LyX-Code
1934  metal_density.fixed:=TRUE;          metal_density.fixed:=TRUE;
1935  \end_layout  \end_layout
1936    
1937  \begin_layout LyX-Code  \begin_layout LyX-Code
1938  END specify;      END specify;
1939  \end_layout  \end_layout
1940    
1941  \begin_layout LyX-Code  \begin_layout LyX-Code
1942  METHOD values;      METHOD values;
1943  \end_layout  \end_layout
1944    
1945  \begin_layout LyX-Code  \begin_layout LyX-Code
1946      NOTES          NOTES
1947  \end_layout  \end_layout
1948    
1949  \begin_layout LyX-Code  \begin_layout LyX-Code
1950  'purpose' SELF {to set the values for the fixed variables}             'purpose' SELF {to set the values for the fixed variables}
1951  \end_layout  \end_layout
1952    
1953  \begin_layout LyX-Code  \begin_layout LyX-Code
1954      END NOTES;          END NOTES;
1955  \end_layout  \end_layout
1956    
1957  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 1918  METHOD values; Line 1959  METHOD values;
1959  \end_layout  \end_layout
1960    
1961  \begin_layout LyX-Code  \begin_layout LyX-Code
1962  vessel_vol:=250 {ft^3};          vessel_vol:=250 {ft^3};
1963  \end_layout  \end_layout
1964    
1965  \begin_layout LyX-Code  \begin_layout LyX-Code
1966  wall_thickness:=5 {mm};          wall_thickness:=5 {mm};
1967  \end_layout  \end_layout
1968    
1969  \begin_layout LyX-Code  \begin_layout LyX-Code
1970  metal_density:=5000 {kg/m^3};          metal_density:=5000 {kg/m^3};
1971  \end_layout  \end_layout
1972    
1973  \begin_layout LyX-Code  \begin_layout LyX-Code
1974  END values;      END values;
1975  \end_layout  \end_layout
1976    
1977  \begin_layout LyX-Code  \begin_layout LyX-Code
1978  METHOD bound_self;      METHOD bound_self;
1979  \end_layout  \end_layout
1980    
1981  \begin_layout LyX-Code  \begin_layout LyX-Code
1982  END bound_self;      END bound_self;
1983  \end_layout  \end_layout
1984    
1985  \begin_layout LyX-Code  \begin_layout LyX-Code
1986  METHOD bound_all;      METHOD bound_all;
1987  \end_layout  \end_layout
1988    
1989  \begin_layout LyX-Code  \begin_layout LyX-Code
1990      RUN bound_self;          RUN bound_self;
1991  \end_layout  \end_layout
1992    
1993  \begin_layout LyX-Code  \begin_layout LyX-Code
1994  END bound_all;      END bound_all;
1995  \end_layout  \end_layout
1996    
1997  \begin_layout LyX-Code  \begin_layout LyX-Code
1998  METHOD scale_self;      METHOD scale_self;
1999  \end_layout  \end_layout
2000    
2001  \begin_layout LyX-Code  \begin_layout LyX-Code
2002  END scale_self;      END scale_self;
2003  \end_layout  \end_layout
2004    
2005  \begin_layout LyX-Code  \begin_layout LyX-Code
2006  METHOD scale_all;      METHOD scale_all;
2007  \end_layout  \end_layout
2008    
2009  \begin_layout LyX-Code  \begin_layout LyX-Code
2010      RUN scale_self;          RUN scale_self;
2011  \end_layout  \end_layout
2012    
2013  \begin_layout LyX-Code  \begin_layout LyX-Code
2014  END scale_all;      END scale_all;
2015  \end_layout  \end_layout
2016    
2017  \begin_layout LyX-Code  \begin_layout LyX-Code
2018  METHOD default_self;      METHOD default_self;
2019  \end_layout  \end_layout
2020    
2021  \begin_layout LyX-Code  \begin_layout LyX-Code
2022  D:=1 {m};          D:=1 {m};
2023  \end_layout  \end_layout
2024    
2025  \begin_layout LyX-Code  \begin_layout LyX-Code
2026  H:=1 {m};          H:=1 {m};
2027  \end_layout  \end_layout
2028    
2029  \begin_layout LyX-Code  \begin_layout LyX-Code
2030  END default_self;      END default_self;
2031  \end_layout  \end_layout
2032    
2033  \begin_layout LyX-Code  \begin_layout LyX-Code
2034  METHOD default_all;      METHOD default_all;
2035  \end_layout  \end_layout
2036    
2037  \begin_layout LyX-Code  \begin_layout LyX-Code
2038      RUN default_self;         RUN default_self;
2039  \end_layout  \end_layout
2040    
2041  \begin_layout LyX-Code  \begin_layout LyX-Code
2042  vessel_vol:=1 {m^3};         vessel_vol:=1 {m^3};
2043  \end_layout  \end_layout
2044    
2045  \begin_layout LyX-Code  \begin_layout LyX-Code
2046  wall_thickness:=5 {mm};         wall_thickness:=5 {mm};
2047  \end_layout  \end_layout
2048    
2049  \begin_layout LyX-Code  \begin_layout LyX-Code
2050  metal_density:=5000 {kg/m^3};         metal_density:=5000 {kg/m^3};
2051  \end_layout  \end_layout
2052    
2053  \begin_layout LyX-Code  \begin_layout LyX-Code
2054  H_to_D_ratio:=1;         H_to_D_ratio:=1;
2055  \end_layout  \end_layout
2056    
2057  \begin_layout LyX-Code  \begin_layout LyX-Code
2058  END default_all;      END default_all;
2059  \end_layout  \end_layout
2060    
2061  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 2026  ADD NOTES IN vessel; Line 2067  ADD NOTES IN vessel;
2067  \end_layout  \end_layout
2068    
2069  \begin_layout LyX-Code  \begin_layout LyX-Code
2070  'description' SELF {This model relates the dimensions of a      'description' SELF {This model relates the dimensions of a
2071  \end_layout  \end_layout
2072    
2073  \begin_layout LyX-Code  \begin_layout LyX-Code
2074             cylindrical vessel -- e.g., diameter, height and wall thickness          cylindrical vessel -- e.g., diameter, height and wall thickness
2075  \end_layout  \end_layout
2076    
2077  \begin_layout LyX-Code  \begin_layout LyX-Code
2078             to the volume of metal in the walls.          to the volume of metal in the walls.
2079    It uses a thin wall    It uses a thin wall
2080  \end_layout  \end_layout
2081    
2082  \begin_layout LyX-Code  \begin_layout LyX-Code
2083             assumption -- i.e., that the volume of metal is the area of          assumption -- i.e., that the volume of metal is the area of
2084  \end_layout  \end_layout
2085    
2086  \begin_layout LyX-Code  \begin_layout LyX-Code
2087             the vessel times the wall thickness.}          the vessel times the wall thickness.}
2088  \end_layout  \end_layout
2089    
2090  \begin_layout LyX-Code  \begin_layout LyX-Code
2091  'purpose' SELF {to illustrate the insertion of notes into a model}      'purpose' SELF {to illustrate the insertion of notes into a model}
2092  \end_layout  \end_layout
2093    
2094  \begin_layout LyX-Code  \begin_layout LyX-Code
# Line 2064  The parameterized version of vessel mode Line 2105  The parameterized version of vessel mode
2105    
2106  \end_inset  \end_inset
2107    
2108  vesselParams.a4c)sss  vesselParams.a4c)
2109  \end_layout  \end_layout
2110    
2111  \end_inset  \end_inset
# Line 2104  Note the use of the Line 2145  Note the use of the
2145    
2146  \end_inset  \end_inset
2147    
2148  WILL_BE statement in the parameter list.  
2149    \family typewriter
2150    WILL_BE
2151    \family default
2152     statement in the parameter list.
2153   By declaring that the type of a parameter will be compatible with the types   By declaring that the type of a parameter will be compatible with the types
2154   shown, the compiler can tell immediately if a user of this model is passing   shown, the compiler can tell immediately if a user of this model is passing
2155   the wrong type of object when defining an instance of a vessel.   the wrong type of object when defining an instance of a vessel.
# Line 2723  vesselParam.a4c Line 2768  vesselParam.a4c
2768  vesselTabulated.a4c  vesselTabulated.a4c
2769  \family default  \family default
2770  .  .
2771   Compile an instance of tabulated_vessel_values (call it tvv), run the values   Compile an instance of
2772   and specify methods for it, and then solve it.  \family typewriter
2773   You will discover that the tenth element of the metal_mass array, corresponding  tabulated_vessel_values
2774   to an  \family default
2775     (call it
2776    \family typewriter
2777    tvv
2778    \family default
2779    ), run the values and specify methods for it, and then solve it.
2780     You will discover that the tenth element of the
2781    \family typewriter
2782    metal_mass
2783    \family default
2784     array, corresponding to an
2785  \family typewriter  \family typewriter
2786  H_to_D_ratio  H_to_D_ratio
2787  \family default  \family default
# Line 2756  The last step to make the model reusable Line 2811  The last step to make the model reusable
2811    
2812  \begin_layout Standard  \begin_layout Standard
2813  ASCEND allows one to create such a script using either an editor or the  ASCEND allows one to create such a script using either an editor or the
2814   tools in the Script window.   tools in the
2815    \series bold
2816    Script
2817    \series default
2818     window.
2819  \end_layout  \end_layout
2820    
2821  \begin_layout Standard  \begin_layout Standard
2822  Restart the ASCEND system.  Restart the ASCEND system.
2823   You will have three windows open plus the large one which disappears by   You will have three windows open plus the large one which disappears by
2824   itself in a few seconds: the Script, the Library and the Console windows.   itself in a few seconds: the
2825    \series bold
2826    Script
2827    \series default
2828    , the
2829    \series bold
2830    Library
2831    \series default
2832     and the
2833    \series bold
2834    Console
2835    \series default
2836     windows.
2837  \end_layout  \end_layout
2838    
2839  \begin_layout Standard  \begin_layout Standard
# Line 2771  In the Line 2842  In the
2842  Script  Script
2843  \series default  \series default
2844   window you will see the license agreement information for ASCEND.   window you will see the license agreement information for ASCEND.
2845   First delete the license agreement   First clear the license agreement
2846  \begin_inset LatexCommand \index{license agreement}  \begin_inset LatexCommand \index{license agreement}
2847    
2848  \end_inset  \end_inset
# Line 2780  Script Line 2851  Script
2851  \end_layout  \end_layout
2852    
2853  \begin_layout Itemize  \begin_layout Itemize
2854  Select the Select all tool under the Edit button.  Click
2855    \series bold
2856    Select all
2857    \series default
2858     under the Edit menu.
2859    
2860  \end_layout  \end_layout
2861    
2862  \begin_layout Itemize  \begin_layout Itemize
2863  Then select the Delete statements tool under the same button.  Then click
2864    \series bold
2865    Delete statements
2866    \series default
2867     under the same button.
2868    
2869  \end_layout  \end_layout
2870    
2871  \begin_layout Standard  \begin_layout Standard
2872  With the window  With the
2873    \series bold
2874    Script
2875    \series default
2876     window
2877    \series bold
2878    
2879    \series default
2880    now cleared of text, select
2881  \series bold  \series bold
2882  clear  Record actions
2883  \series default  \series default
2884  , select the tool Record actions under the Edit button to start recording   under the Edit menu to start recording the steps you are about to undertake.
2885   the steps you are about to undertake.   Then,
2886  \end_layout  \end_layout
2887    
2888  \begin_layout Itemize  \begin_layout Itemize
2889  In the Library window, under the Edit button, selec Delete all types.  In the
2890   Hit Delete all on the small window that appears.  \series bold
2891    Library
2892    \series default
2893     window, under the Edit menu, select
2894    \series bold
2895    Delete all types
2896    \series default
2897    .
2898     Hit
2899    \series bold
2900    Delete all
2901    \series default
2902     on the small window that appears.
2903  \end_layout  \end_layout
2904    
2905  \begin_layout Itemize  \begin_layout Itemize
2906  Load the file vesselTabulated.a4c, the file containing the model called tabulated  Load the file
2907  _vessel_values.  \family typewriter
2908   Do this by selecting the Read types from file tool under the File button  vesselTabulated.a4c
2909    \family default
2910    , the file containing the model called
2911    \family typewriter
2912    tabulated_vessel_values
2913    \family default
2914    .
2915     Do this by selecting the Read types from file tool under the File menu
2916   and browsing the file system to find it.   and browsing the file system to find it.
2917   If you have trouble finding it, be sure to set the Files of type window   If you have trouble finding it, be sure to set the
2918   at the bottom of the file browsing window to allow all types of files to  \series bold
2919   be seen.  Files of type
2920    \series default
2921     dropdown at the bottom of the file browsing window to allow all types of
2922     files to be seen.
2923  \end_layout  \end_layout
2924    
2925  \begin_layout Itemize  \begin_layout Itemize
2926  Select the type tabulated_vessel_values in the right Library window and  Select the type
2927   compile an instance of it by selecting the Create simulation tool under  \family typewriter
2928   the Edit button.  tabulated_vessel_value
2929   In the small window that appears, enter the name tvv and hit OK.  \family default
2930    s in the right
2931    \series bold
2932    Library
2933    \series default
2934     window and compile an instance of it by selecting
2935    \series bold
2936    Create simulation
2937    \series default
2938     under the Edit menu.
2939     In the small window that appears, enter the name
2940    \family typewriter
2941    tvv
2942    \family default
2943     and hit OK.
2944  \end_layout  \end_layout
2945    
2946  \begin_layout Itemize  \begin_layout Itemize
2947  Export the instance to the Browser by selecting the Simulation to Browser  Export the instance to the
2948   tool under the Export button.  \series bold
2949    Browser
2950    \series default
2951     by selecting
2952    \series bold
2953    Simulation to Browser
2954    \series default
2955     under the Export menu.
2956  \end_layout  \end_layout
2957    
2958  \begin_layout Itemize  \begin_layout Itemize
2959  Initialize the variable values by running the values method.  Initialize the variable values by running the
2960   Do this by selecting the Run method tool under the Edit button.  \family typewriter
2961   Select the values method and hit OK.  values
2962    \family default
2963     method.
2964     Do this by selecting
2965    \series bold
2966    Run method
2967    \series default
2968     under the Edit menu.
2969     Select the
2970    \family typewriter
2971    values
2972    \family default
2973     method and hit
2974    \series bold
2975    OK
2976    \series default
2977    .
2978  \end_layout  \end_layout
2979    
2980  \begin_layout Itemize  \begin_layout Itemize
2981  Set the fixed flags to get a well-posed problem by repeating the last step  Set the
2982   but this time select the reset method.  \family typewriter
2983    fixed
2984    \family default
2985     flags to get a well-posed problem by repeating the last step but this time
2986     select the
2987    \family typewriter
2988    reset
2989    \family default
2990     method.
2991  \end_layout  \end_layout
2992    
2993  \begin_layout Itemize  \begin_layout Itemize
2994  Export the instance tvv to the Solver by selecting the to Solver tool under  Export the instance
2995   the Export button.  \family typewriter
2996    tvv
2997    \family default
2998     to the Solver by selecting
2999    \series bold
3000    to Solver
3001    \series default
3002     under the Export menu.
3003  \end_layout  \end_layout
3004    
3005  \begin_layout Itemize  \begin_layout Itemize
3006  Solve tvv by selecting the Solve tool under the Execute button in the Solver  Solve
3007    \family typewriter
3008    tvv
3009    \family default
3010     by selecting
3011    \series bold
3012    Solve
3013    \series default
3014     under the Execute menu in the
3015    \series bold
3016    Solver
3017    \series default
3018   window.   window.
3019  \end_layout  \end_layout
3020    
3021  \begin_layout Itemize  \begin_layout Itemize
3022  Return to the Script window and turn off the recording by selecting the  Return to the
3023   Record actions tool under the Edit button.  \series bold
3024    Script
3025    \series default
3026     window and turn off the recording by deselecting the
3027    \series bold
3028    Record actions
3029    \series default
3030     option under the Edit menu.
3031  \end_layout  \end_layout
3032    
3033  \begin_layout Itemize  \begin_layout Itemize
3034  Save the script you have just created by selecting the Save tool under the  Save the script you have just created by selecting
3035   File button of the Script window.  \series bold
3036   Name the file vesselTabulated.a4s (note the 's' ending) to indicate it is  Save
3037   the script to run an example problem for models in the vesselTabulated.a4c  \series default
3038     under the File menu of the
3039    \series bold
3040    Script
3041    \series default
3042     window.
3043     Name the file
3044    \family typewriter
3045    vesselTabulated.a4s
3046    \family default
3047     (note the 's' ending) to indicate it is a script file corresponding to
3048     the model file
3049    \family typewriter
3050    vesselTabulated.a4c
3051    \family default
3052   (note the 'c' ending) file.   (note the 'c' ending) file.
3053  \end_layout  \end_layout
3054    
3055  \begin_layout Itemize  \begin_layout Itemize
3056  Exit ASCEND by selecting the Exit ASCEND tool under the File button on the  Exit by selecting
3057   Script window.  \series bold
3058   The contents of the Script window will be similar to that in Figure  Exit ASCEND
3059    \series default
3060     under the File menu on the
3061    \series bold
3062    Script
3063    \series default
3064     window.
3065     The contents of the
3066    \series bold
3067    Script
3068    \series default
3069     window at this point will be similar to that in Figure
3070  \begin_inset LatexCommand \ref{fig:model2.scriptVesselTabulated}  \begin_inset LatexCommand \ref{fig:model2.scriptVesselTabulated}
3071    
3072  \end_inset  \end_inset
3073    
3074    
3075  \noun off  \noun off
3076   (the path to the file may differ).   (although the path to the file may differ).
3077  \end_layout  \end_layout
3078    
3079  \begin_layout Itemize  \begin_layout Itemize
# Line 2877  Restart ASCEND. Line 3081  Restart ASCEND.
3081  \end_layout  \end_layout
3082    
3083  \begin_layout Itemize  \begin_layout Itemize
3084  Open the script you just created by selecting the Read file tool under the  Open the script you just created by selecting
3085   File button on the Script window.  \series bold
3086   (Be sure you are allowing the system to see files with the ending a4s by  Read file
3087   setting the Files of type window at the bottom of the file browsing window.)  \series default
3088     under the File menu on the
3089    \series bold
3090    Script
3091    \series default
3092     window.
3093     (Be sure you are allowing the system to see files with the ending
3094    \family typewriter
3095    .a4s
3096    \family default
3097     by using the
3098    \series bold
3099    Files of type
3100    \series default
3101     dropdown at the bottom of the file-browsing window.)
3102  \end_layout  \end_layout
3103    
3104  \begin_layout Itemize  \begin_layout Itemize
3105  Highlight all the instructions in this script and then execute the highlighted  Highlight all the instructions in this script and then execute the highlighted
3106   instructions by selecting the Statements selected tool under the Execute   instructions by selecting
3107   button.  \series bold
3108    Statements selected
3109    \series default
3110     under the
3111    \series bold
3112    Execute
3113    \series default
3114     menu.
3115  \end_layout  \end_layout
3116    
3117  \begin_layout Standard  \begin_layout Standard
# Line 2928  SOLVE {tv} WITH QRSlv; Line 3153  SOLVE {tv} WITH QRSlv;
3153  \end_layout  \end_layout
3154    
3155  \begin_layout Caption  \begin_layout Caption
3156  Script to run vesselTabulated.a4c (this is the contents of the file vesselTabulat  Script to run
3157  ed.a4s  \family typewriter
3158    vesselTabulated.a4c
3159    \family default
3160     (this is the contents of the file
3161    \family typewriter
3162    vesselTabulated.a4s
3163    \family default
3164    
3165  \begin_inset LatexCommand \index{vesselTabultated.a4s}  \begin_inset LatexCommand \index{vesselTabultated.a4s}
3166    
3167  \end_inset  \end_inset
# Line 2963  In this chapter we converted the vessel Line 3195  In this chapter we converted the vessel
3195   If this model were in a library, a future user of it would most often simply   If this model were in a library, a future user of it would most often simply
3196   have to understand the parameters to create an instance of this type of   have to understand the parameters to create an instance of this type of
3197   model.   model.
3198   We next added NOTES, a form of active comments, to the model.   We next added
3199    \family typewriter
3200    NOTES
3201    \family default
3202    , a form of active comments, to the model.
3203   We suggest that notes are much more useful than comments as we can provide   We suggest that notes are much more useful than comments as we can provide
3204   tools that can extract them and allow us to search them, for example, to   tools that can extract them and allow us to search them, for example, to
3205   find a model with a given functionality.   find a model with a given functionality.
# Line 2976  In this chapter we converted the vessel Line 3212  In this chapter we converted the vessel
3212    
3213  \begin_layout Standard  \begin_layout Standard
3214  In the next chapter, we look at how we can plot the results we created in  In the next chapter, we look at how we can plot the results we created in
3215   the model vesselTabulated.a4c.   the model
3216    \family typewriter
3217    vesselTabulated.a4c
3218    \family default
3219    .
3220   We will have to reuse a model someone else has put into the library of   We will have to reuse a model someone else has put into the library of
3221   available models.   available models.
3222   In other words, the "shoe is on the other foot," and we quickly experience   In other words, the "shoe is on the other foot," and we quickly experience

Legend:
Removed from v.1368  
changed lines
  Added in v.1369

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