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

Annotation of /trunk/models/johnpye/moody.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 890 - (hide annotations) (download) (as text)
Thu Oct 12 14:06:37 2006 UTC (19 years, 3 months ago) by johnpye
File MIME type: text/x-ascend
File size: 561 byte(s)
Eliminated T1, T2 from dsg.a4c.
Added moody diagram example model (with python script)
Removed some debug output from solverreporter.py and simulation.cpp
1 johnpye 890 REQUIRE "atoms.a4l";
2    
3     IMPORT "dsg";
4     IMPORT "johnpye/extpy/extpy";
5     IMPORT "johnpye/moody";
6    
7     MODEL moody;
8     f IS_A positive_factor;
9     Re IS_A positive_factor;
10     eps_on_D IS_A fraction;
11    
12     friction: dsg_friction_factor(
13     Re, eps_on_D : INPUT;
14     f : OUTPUT
15     );
16    
17     eps IS_A distance;
18     D IS_A distance;
19     eps_on_D = eps / D;
20     METHODS
21     METHOD on_load;
22     RUN reset; RUN values;
23     END on_load;
24     METHOD specify;
25     FIX Re, eps, D;
26     END specify;
27     METHOD values;
28     Re := 20000;
29     eps := 0.007 {mm};
30     D := 25.4 {mm};
31     END values;
32     METHOD plot;
33     EXTERNAL moodyplot(SELF);
34     END plot;
35     END moody;

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