/[ascend]/trunk/models/test/ida/singlederiv_wLINK.a4c
ViewVC logotype

Contents of /trunk/models/test/ida/singlederiv_wLINK.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2569 - (show annotations) (download) (as text)
Tue Feb 7 21:01:01 2012 UTC (10 years, 4 months ago) by jpye
File MIME type: text/x-ascend
File size: 872 byte(s)
Working on tests for LINK functionality. More to do.
Adding notes on usage of VIM highlighting.
1 REQUIRE "ivpsystem.a4l";
2
3 MODEL simple_ok1;
4 y IS_A solver_var;
5 dy_dt IS_A solver_var;
6 t IS_A solver_var;
7 dy_dt = -4 * y;
8 METHODS
9 METHOD on_load;
10 INDEPENDENT t;
11 DER(dy_dt,y);
12 END on_load;
13 END simple_ok1;
14
15 (* missing INDEPENDENT *)
16 MODEL simple_fail1;
17 y IS_A solver_var;
18 dy_dt IS_A solver_var;
19 t IS_A solver_var;
20 dy_dt = -4 * y;
21 METHODS
22 METHOD on_load;
23 DER(dy_dt,y);
24 END on_load;
25 END simple_fail1;
26
27 (* derivative of invalid variable *)
28 MODEL simple_fail2;
29 y IS_A solver_var;
30 dy_dt IS_A solver_var;
31 t IS_A solver_var;
32 dy_dt = -4 * y;
33 METHODS
34 METHOD on_load;
35 INDEPENDENT t;
36 DER(dy_dt,y);
37 END on_load;
38 END simple_fail2;
39
40 (* derivative wrt independent variable *)
41 MODEL simple_fail3;
42 y IS_A solver_var;
43 dy_dt IS_A solver_var;
44 t IS_A solver_var;
45 dy_dt = -4 * y;
46 METHODS
47 METHOD on_load;
48 INDEPENDENT t;
49 DER(z, dy_dt);
50 END on_load;
51 END simple_fail3;

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