Overview
Comment: | Generic mtt_rate and mtt_output - allows method independent calls. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/numerical-algebraic-solution | trunk |
Files: | files | file ages | folders |
SHA3-256: |
43a0e0bde2d26b4a041239470557a3fa |
User & Date: | geraint@users.sourceforge.net on 2001-06-25 23:28:29 |
Other Links: | branch diff | manifest | tags |
Context
2001-06-26
| ||
00:55:48 | Writes algebraic equation Jacobian _aej.r (not used yet). check-in: f057909af3 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk | |
2001-06-25
| ||
23:28:29 | Generic mtt_rate and mtt_output - allows method independent calls. check-in: 43a0e0bde2 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk | |
2001-06-05
| ||
03:37:15 | *** empty log message *** check-in: 4c82a03e36 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk | |
Changes
Modified mttroot/mtt/bin/trans/make_ode2odes from [a0a317a4de] to [1f5fcd3601].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | + + + | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.57.2.2 2001/06/05 03:20:40 geraint ## added -ae option to select algebraic equation solution method. ## ## Revision 1.57.2.1 2001/05/04 04:07:24 geraint ## Numerical solution of algebraic equations. ## sys_ae.cc written for unsolved inputs. ## Solution of equations using hybrd from MINPACK (as used by Octave fsolve). ## ## Revision 1.57 2001/04/01 03:38:54 geraint ## Reset row to zero after write to file, ready for subsequent runs. |
︙ | |||
552 553 554 555 556 557 558 | 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 | - - - - + + + + - + | args (0) = octave_value (x); f = feval ("${sys}_state", args, 1); return f(0).${vector_value} (); #endif } inline ColumnVector |
︙ | |||
864 865 866 867 868 869 870 | 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 | - + | { x (i) = x0 (i); } for (register int j = 0, i = 1; i <= ilast; i++) { u = mtt_input (x, y, t, par); |
︙ | |||
888 889 890 891 892 893 894 | 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 | - - - - + + + + - + | t2 = t + ddt; ColumnVector x1 (x), x2 (x), x3 (x); |
︙ |