Overview
Comment: | *** empty log message *** |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7c2e142b43e83c50f57ffe35c29d4d72 |
User & Date: | gawthrop@users.sourceforge.net on 2000-12-28 12:31:15.000 |
Other Links: | branch diff | manifest | tags |
Context
2000-12-28
| ||
12:48:53 | Put under RCS check-in: 5ca7145984 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:31:15 | *** empty log message *** check-in: 7c2e142b43 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:29:52 | Initial revision check-in: 9928b68158 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/abg2cbg_m
from [021928d3b8]
to [592fbd67e0].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | + + + | # Acausal bond graph to causal bond graph: mfile format ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.13 1998/07/27 20:30:12 peterg ## *** empty log message *** ## ## Revision 1.12 1998/07/10 08:43:46 peterg ## Added -I switch ## ## Revision 1.11 1998/01/23 13:29:54 peterg ## $RMATRIX --> $MATRIX ## # Revision 1.10 1996/12/04 21:51:02 peterg |
︙ | |||
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | + + + - + - + | # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. # P.J.Gawthrop May 1996 # Copyright (c) P.J.Gawthrop, 1996. derivative=0;blurb=integral while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -I ) info=info;; -derivative ) derivative=1; blurb=derivative;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done infofile='mtt_info.txt' errorfile='mtt_error.txt' typefile="$1_type.sh" # Remove the old log file rm -f abg2cbg_m.log rm -f $1_cbg.m rm -f $typefile rm -f $infofile #Inform user |
Modified mttroot/mtt/bin/trans/can_r2tex
from [b135c10fbf]
to [5939f4edfe].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | - + - - + + - - - - - - - - - - + - + - + - - + + - - + + + + - - - - - + - - - + + + - + + + - + - - - - - + + + + + + - - - - - - + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + - + - - - + + + - - - - - + + + + + - + + + + - - - - + + + + + + + + + + + + + + + + + + + + - + - - - + + - - + - - - - + + + - - - - + + + + + + + + + + + + + + + + - + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - + | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### |
Modified mttroot/mtt/bin/trans/cbg_m2fig
from [1fcb6fbad5]
to [b85a89ba68].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | + + + | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.10 2000/09/14 12:04:48 peterg ## New 2 parameter version ## ## Revision 1.9 1998/01/23 13:31:23 peterg ## $RMATRIX --> $MATRIX ## ## Revision 1.8 1996/12/07 19:23:07 peterg ## Registered agian. ## # Revision 1.7 1996/11/09 19:04:34 peterg |
︙ | |||
63 64 65 66 67 68 69 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - + | # Copy the unchaging part of the figure file cp $1_fig.fig $2_cbg.fig #Inform user echo Creating $2_cbg.fig -- component type $1 # Use matrix manipulation to accomplish the transformation |
︙ |
Modified mttroot/mtt/bin/trans/cse2scse_r
from [73797dbbb0]
to [f23aba8df6].
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - + - + + + + + + - - - - + + + + + + + + + + + + | # Arguments system=$1; system_def=$1_def.r system_cse=$1_cse.r system_scse=$1_scse.r # Parameters |
︙ |
Modified mttroot/mtt/bin/trans/dae2cse_r
from [a8a0f34d9e]
to [14e2313fd2].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + + + | # Copyright (c) P.J.Gawthrop 1991, 1992, 1994. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.13 2000/10/11 08:52:46 peterg ## Creates csex (cse with dxe only) rep. ## ## Revision 1.12 2000/10/10 21:00:58 peterg ## New code genration ## ## Revision 1.11 1998/11/26 09:18:55 peterg ## Incluse subs.r ## ## Revision 1.10 1998/11/18 13:50:29 peterg |
︙ | |||
93 94 95 96 97 98 99 100 101 102 103 104 105 106 | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | + + + | echo "Creating $1_csex.r" echo "Creating $1_cseo.r" # Remove the old log file rm -f dae2cse_r.log # Remove some files rm -f $1_cse.r? $1_cseo.r? # Use reduce to accomplish the transformation $SYMBOLIC >dae2cse_r.log << EOF %Read the formatting function in "$MTTPATH/trans/reduce_matrix.r"; OFF Echo; |
︙ | |||
279 280 281 282 283 284 285 | 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | + + - - - + + + + | write "MATRIX MTTE(", MTTNx, ",", MTTNx, ")$"; SHUT "$1_cse.r1"; OUT "$1_csex.r1"; write "MATRIX MTTEdx(", MTTNx, ",", 1, ")$"; SHUT "$1_csex.r1"; IF MTTNy>0 THEN BEGIN |
︙ | |||
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | + + + + + - - - + + + | OUT "$1_csex.r2"; write "%File: $1_cse.r"; in ("$1_csex_write.r"); write "END;"; SHUT "$1_csex.r2"; %Write out the output equations IF MTTNy>0 THEN BEGIN OUT "$1_cseo.r2"; write "%File: $1_cseo.r"; in ("$1_cseo_write.r"); write "END;"; SHUT "$1_cseo.r2"; END; quit; EOF touch $1_cseo.r1 touch $1_cseo.r2 |
︙ |
Modified mttroot/mtt/bin/trans/dir2rep
from [c51343aef8]
to [2f10632b5f].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + + + - + | # Copyright (c) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.2 1998/03/11 10:32:11 peterg ## Now uses dir2paths transformation ## ## Revision 1.1 1998/02/05 13:31:25 peterg ## Initial revision ## ############################################################### dotdot=$2 # Set to ../ if we are in MTT_work # Inform user echo "Creating $1_rep.txt (Directory version)" # Headings echo "% Verbal description for directory $1 ($1_rep.txt)"> $1_rep.txt echo "% Generated by MTT on" `date`. >> $1_rep.txt # Create paths for all valid examples - ie dir name is system name |
Modified mttroot/mtt/bin/trans/dm_r2m
from [c980f7fdc8]
to [dc94c23287].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993,1994. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.7 1998/04/13 11:01:55 peterg ## Now uses generic header : matlab_header ## # Revision 1.6 1997/04/16 13:43:29 peterg # Added matrix dimenensions # # Revision 1.5 1997/02/24 14:44:28 peterg # Ignores numerical parameters in global list. # ## Revision 1.4 1996/08/24 14:16:25 peter |
︙ | |||
104 105 106 107 108 109 110 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | - + | SHUT "$1_dm.1"; EOF # Header |
︙ |
Modified mttroot/mtt/bin/trans/examples_txt2tk
from [357d77bc30]
to [1100679dcb].
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + + - + - + | oldN=split(OLDPATH,oldpath,"/"); # Find last example path same=1; menu=basemenu; while ((path[same]==oldpath[same])&&(same<=N)){ menu=menu"."tolower(path[same]) same++ } oldmenu=menu |
Modified mttroot/mtt/bin/trans/lang_matrix.r
from [4e699aa2c6]
to [f4b204b20b].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + + + + + | % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % % Revision 1.7 2000/08/29 17:33:59 peterg % % After much fiddling about .. % % now does global optimisation (over all elements of matrix / vector) % % still fails for _sm.m % % % % Revision 1.6 2000/08/25 09:23:40 peterg % % Made both names the same! % % % % Revision 1.5 2000/08/24 17:12:01 peterg % % Now optimises using SCOPE % % % % Revision 1.4 1998/07/27 17:34:59 peterg |
︙ | |||
33 34 35 36 37 38 39 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + | % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PROCEDURE Lang_Matrix(); BEGIN %INAME(mtt_o); % Set temp name GENTRAN mtt_matrix :=: mtt_matrix; |
Modified mttroot/mtt/bin/trans/latex_tidy
from [af802e64a1]
to [e0750229d8].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop, 1990, 1994 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.16 2000/10/10 21:03:20 peterg ## *** empty log message *** ## ## Revision 1.15 1998/04/07 08:44:11 peterg ## zapped eta - it messes up theta ## ## Revision 1.14 1998/02/25 22:12:07 peterg ## Added , to regexp for subscripts ## ## Revision 1.13 1998/02/18 09:06:07 peterg |
︙ | |||
69 70 71 72 73 74 75 76 77 78 79 80 81 82 | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + + | sed \ -e "s/_\([a-z0-9,]*\)/_{\1}/g" \ -e "s/\// \\\over /g" \ -e "s/[0-9a-z_]*mtty/mtty/g" \ -e "s/[0-9a-z_]*mttu/mttu/g" \ -e "s/mttx\([0-9]*\)/x_{\1}/g" \ -e "s/mttex\([0-9]*\)/\\\chi_{\1}/g" \ -e "s/mttddui\([0-9]*\)/\\\ddot{v}_{\1}/g" \ -e "s/mttdui\([0-9]*\)/\\\dot{v}_{\1}/g" \ -e "s/mttui\([0-9]*\)/v_{\1}/g" \ -e "s/mttu\([0-9]*\)/u_{\1}/g" \ -e "s/mtty\([0-9]*\)/y_{\1}/g" \ -e "s/mttz\([0-9]*\)/z_{\1}/g" \ -e "s/mttdx0/\\\dot x_0/g" \ -e "s/mttdx/\\\dot x/g" \ -e "s/mttdz/\\\dot z_/g" \ |
︙ |