/[ascend]/trunk/models/johnpye/reynolds.a4c
ViewVC logotype

Contents of /trunk/models/johnpye/reynolds.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1858 - (show annotations) (download) (as text)
Fri Sep 12 02:27:14 2008 UTC (15 years, 9 months ago) by jpye
File MIME type: text/x-ascend
File size: 591 byte(s)
Very simple model for calculating Reynolds number in a round pipe, or v.v. for
calculating flow speed for a specified Reynolds number.
1 REQUIRE "atoms.a4l";
2
3 (*
4 Simple model for working out flow rates that achieve a certain
5 flow rate and vice versa.
6 *)
7 MODEL reynolds;
8 Vdot IS_A volume_rate;
9 mdot IS_A mass_rate;
10 rho IS_A mass_density;
11 mu IS_A viscosity;
12 Vel IS_A speed;
13 A IS_A area;
14
15 circ_area: A = 1{PI} * D^2 / 4.;
16
17 vel_expr: Vel = Vdot / A;
18 D IS_A distance;
19
20 Re_D IS_A factor;
21
22 re_expr: Re_D = rho*Vel*D / mu;
23
24 mdot_expr: mdot = rho * Vdot;
25
26 METHODS
27 METHOD on_load;
28 FIX D;
29 D := 10 {mm};
30 FIX rho;
31 rho := 1000 {kg/m^3};
32 FIX mu;
33 mu := 1.12e-3 {Pa*s};
34 FIX Re_D;
35 Re_D := 1000;
36 END on_load;
37
38 END reynolds;

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