/[ascend]/trunk/models/vesselPlain.a4c
ViewVC logotype

Contents of /trunk/models/vesselPlain.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Fri Oct 29 20:54:12 2004 UTC (19 years, 11 months ago) by aw0a
File MIME type: text/x-ascend
File size: 1903 byte(s)
Setting up web subdirectory in repository
1 REQUIRE "atoms.a4l";
2 (* => atoms.a4l, measures.a4l, system.a4l, basemodel.a4l *)
3 PROVIDE "vesselPlain.a4c";
4 (*
5 * This file is part of the ASCEND Modeling Library and is released
6 * under the GNU Public License as described at the end of this file.
7 *)
8
9 MODEL vessel;
10
11 (* variables *)
12 side_area, end_area IS_A area;
13 vessel_vol, wall_vol IS_A volume;
14 wall_thickness, H, D IS_A distance;
15 H_to_D_ratio IS_A factor;
16 metal_density IS_A mass_density;
17 metal_mass IS_A mass;
18
19 (* equations *)
20 FlatEnds: end_area = 1{PI} * D^2 / 4;
21 Sides: side_area = 1{PI} * D * H;
22 Cylinder: vessel_vol = end_area * H;
23 Metal_volume: (side_area + 2 * end_area) * wall_thickness = wall_vol;
24 HD_definition: D * H_to_D_ratio = H;
25 VesselMass: metal_mass = metal_density * wall_vol;
26
27 END vessel;
28
29
30 (*
31 * vesselPlain.a4c
32 * by Arthur W. Westerberg
33 * Part of the ASCEND Library
34 * $Date: 1998/06/17 19:35:05 $
35 * $Revision: 1.2 $
36 * $Author: mthomas $
37 * $Source: /afs/cs.cmu.edu/project/ascend/Repository/models/vesselPlain.a4c,v $
38 *
39 * This file is part of the ASCEND Modeling Library.
40 *
41 * Copyright (C) 1998 Carnegie Mellon University
42 *
43 * The ASCEND Modeling Library is free software; you can redistribute
44 * it and/or modify it under the terms of the GNU General Public
45 * License as published by the Free Software Foundation; either
46 * version 2 of the License, or (at your option) any later version.
47 *
48 * The ASCEND Modeling Library is distributed in hope that it
49 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
50 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
51 * See the GNU General Public License for more details.
52 *
53 * You should have received a copy of the GNU General Public License
54 * along with the program; if not, write to the Free Software
55 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check
56 * the file named COPYING.
57 *)

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