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

Diff of /trunk/models/johnpye/pendulum.a4c

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

revision 911 by johnpye, Sun Sep 17 07:34:20 2006 UTC revision 912 by johnpye, Fri Oct 27 07:18:21 2006 UTC
# Line 1  Line 1 
1  REQUIRE "ivpsystem.a4l";  REQUIRE "ivpsystem.a4l";
2  REQUIRE "atoms.a4l";  REQUIRE "atoms.a4l";
3    IMPORT "johnpye/extpy/extpy";
4    IMPORT "johnpye/solve";
5    
6  MODEL pendulum;  MODEL pendulum;
7      x IS_A delta_distance; y IS_A delta_distance;      x IS_A delta_distance; y IS_A delta_distance;
# Line 27  MODEL pendulum; Line 29  MODEL pendulum;
29  METHODS  METHODS
30  METHOD specify;  METHOD specify;
31      FIX r, m, g, x, t;      FIX r, m, g, x, t;
32        FIX v_x;
33  END specify;  END specify;
34    
35  METHOD default_self;  METHOD default_self;
# Line 71  METHOD on_load; Line 74  METHOD on_load;
74      RUN default_self;      RUN default_self;
75      RUN reset;      RUN reset;
76      RUN specify;      RUN specify;
77        EXTERNAL solve(SELF);
78        EXTERNAL solve(SELF);
79      RUN set_obs;      RUN set_obs;
80      RUN set_ode;      RUN set_ode;
81  END on_load;  END on_load;

Legend:
Removed from v.911  
changed lines
  Added in v.912

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