Overview
Comment: | Added desc.tex and abg.tex descriptions. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
78dddad28cd42f0fa950bac95ee61079 |
User & Date: | gawthrop@users.sourceforge.net on 1997-05-19 11:29:37 |
Other Links: | branch diff | manifest | tags |
Context
1997-05-19
| ||
13:17:50 | Explicit inclusion of mtt.sty in .doc files -- latex2html prefers this check-in: c26e387d77 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
11:29:37 | Added desc.tex and abg.tex descriptions. check-in: 78dddad28c user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1997-05-16
| ||
07:33:45 |
Now checks to see if sub system is a simple component before recursion. 0 --> zero 1 --> one check-in: f0fed5ab50 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [0be3390064] to [d7871cc309].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ # Revision 1.75 1997/05/15 09:15:54 peterg # Included switch.c in dependancy list for _input.c (when -s switch set) # # Revision 1.74 1997/05/13 16:58:02 peterg # Added -s switch to get mtt to search for (Bond Graph) switches # ## Revision 1.73 1997/05/09 09:18:45 peterg | > > > | 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, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ # Revision 1.76 1997/05/15 09:43:46 peterg # New version of _input.txt for -s option # # Revision 1.75 1997/05/15 09:15:54 peterg # Included switch.c in dependancy list for _input.c (when -s switch set) # # Revision 1.74 1997/05/13 16:58:02 peterg # Added -s switch to get mtt to search for (Bond Graph) switches # ## Revision 1.73 1997/05/09 09:18:45 peterg |
︙ | ︙ | |||
264 265 266 267 268 269 270 271 272 273 274 275 276 277 | ## Revision 1.2 1996/08/05 19:50:55 peter ## Put in fig.fig target. ## ## Revision 1.1 1996/08/04 17:29:42 peter ## Initial revision ## ############################################################### # MTT recursion level is zero unless explicitly set level=0 #Computation mode is octave by default computation=octave | > > > | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | ## Revision 1.2 1996/08/05 19:50:55 peter ## Put in fig.fig target. ## ## Revision 1.1 1996/08/04 17:29:42 peter ## Initial revision ## ############################################################### #Useful strings bs='\0134' # MTT recursion level is zero unless explicitly set level=0 #Computation mode is octave by default computation=octave |
︙ | ︙ | |||
666 667 668 669 670 671 672 | echo "%% Reduce comands to simplify output for system $1 ($1_simp.r)"; \ cat $MTTPATH/trans/m/rcs_header.txt; \ echo 'END;'; \ )> $1_simp.r #SUMMARY numpar numerical parameter declaration (txt) -- default $1_numpar.txt: | | | 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 | echo "%% Reduce comands to simplify output for system $1 ($1_simp.r)"; \ cat $MTTPATH/trans/m/rcs_header.txt; \ echo 'END;'; \ )> $1_simp.r #SUMMARY numpar numerical parameter declaration (txt) -- default $1_numpar.txt: mtt -q $1 sympar txt; mtt -q $1 struc txt; sympar2numpar_txt2txt $1 #SUMMARY numpar numerical parameter declaration (m) $1_numpar.m: $1_numpar.txt $1_sympar.txt numpar_txt2m $1 #SUMMARY numpar numerical parameter declaration (c) $1_numpar.c: $1_numpar.txt $1_sympar.c |
︙ | ︙ | |||
702 703 704 705 706 707 708 | ifeq ($switches,1) $1_switch.c: $1_struc.txt struc2switch_txt2c $1 $1_input.c: $1_input.txt $1_sympar.c $1_switch.c input_txt2c -s $1 endif | | > > > > > > > > > | | | | 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 | ifeq ($switches,1) $1_switch.c: $1_struc.txt struc2switch_txt2c $1 $1_input.c: $1_input.txt $1_sympar.c $1_switch.c input_txt2c -s $1 endif #SUMMARY desc Verbal description of system (tex) $1_desc.tex: echo Creating $1_desc.tex ( \ echo "%% Verbal description file for system $1 ($1_desc.tex)" ;\ echo "The acausal bond graph of system $bs""textbf{$1} is" ;\ echo "displayed in Figure $bs""Ref{$1_abg} and its label" ;\ echo "file is listed in Section $bs""Ref{sec:$1_lbl}." ;\ echo "The subsystems are listed in Section $bs""Ref{sec:$1""_sub}." ;\ ) > $1_desc.tex #SUMMARY odes ODE simulation header file (h) $1_odes.h: echo Creating $1_odes.h ( \ echo '/*'; \ echo "%% Parameter file for system $1 ($1_odes.h)"; \ echo "%% This file provides the params for simulation:";\ echo '*/'; \ echo '#define DT 0.1 /* Time step (for printing) */'; \ echo '#define LAST 10.0 /* Last time */'; \ echo '#define STEPFACTOR 1000 /* Integration steps per time step */'; \ )> $1_odes.h #SUMMARY smss SM simulation header file (h) $1_sms.h: echo Creating $1_sms.h ( \ echo '/*'; \ echo "%% Parameter file for system $1 ($1_sms.h)"; \ echo "%% This file provides the params for simulation:";\ echo '*/'; \ echo '#define DT 0.1 /* Time step (for printing) */'; \ echo '#define LAST 10.0 /* Last time */'; \ echo '#define STEPFACTOR 1 /* Integration steps per time step */'; \ )> $1_sms.h #SUMMARY params symbolic parameter setting (r) $1_params.r: echo Creating $1_params.r ( \ echo "%% Parameter file for system $1 ($1_params.r)"; \ echo "%% This file provides symbolic parameters for simplification";\ |
︙ | ︙ | |||
778 779 780 781 782 783 784 785 786 787 | #SUMMARY sabg stripped acausal bond graph (fig) #SUMMARY sabg stripped acausal bond graph (ps) #SUMMARY sabg stripped acausal bond graph (view) $1_sabg.fig: $1_rbg.m #Subsystem creation commands $1_sub.sh: $1_cmp.m cmp2sub_m2sh $1 | > > > > > | | 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 | #SUMMARY sabg stripped acausal bond graph (fig) #SUMMARY sabg stripped acausal bond graph (ps) #SUMMARY sabg stripped acausal bond graph (view) $1_sabg.fig: $1_rbg.m #Subsystem creation commands #SUMMARY sub Executable subsystem list (sh) $1_sub.sh: $1_cmp.m cmp2sub_m2sh $1 #SUMMARY sub LaTeX subsystem list (tex) $1_sub.tex: $1_sub.sh sub_sh2tex -l $1 #SUMMARY abg acausal bond graph (m) #Raw bond graph to acausal bond graph: mfile $1_abg.m: $1_rbg.m $1_sub.sh sh $1_sub.sh "mtt -q -l $level+1 " ' abg m' rbg2abg_m $1 #SUMMARY cbg causal bond graph (m) |
︙ | ︙ | |||
1120 1121 1122 1123 1124 1125 1126 | pkim_r2tex $1; latex_tidy $1_pkim.tex #Generic conversion of data files from m to dat format $1_$2.dat: $1_$2.m m2dat $1_$2 #Generic conversion of data files from dat to (gplot) gdat format | | | > > > | | 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 | pkim_r2tex $1; latex_tidy $1_pkim.tex #Generic conversion of data files from m to dat format $1_$2.dat: $1_$2.m m2dat $1_$2 #Generic conversion of data files from dat to (gplot) gdat format $1_$2.gdat: $1_$2.dat $1_args.m dat2gdat $1_$2 #Generic conversion of Latex to latex document mtt.sty: echo Copying mtt.sty to here cp $MTTPATH/trans/mtt.sty . $1_$2.doc: $1_$2.tex mtt.sty makedoc $1 $2 #Generic conversion of LaTeX doc to dvi $1_$2.dvi: $1_$2.doc echo Creating $1_$2.dvi latex $1_$2.doc > /dev/null; latex $1_$2.doc > /dev/null |
︙ | ︙ | |||
1187 1188 1189 1190 1191 1192 1193 | echo Creating view of $1_$2 multi_command $PSVIEW $1 $2.ps | sh #View a gdat file $1_$2.dview: $1_$2.gdat echo Creating view of $1_$2 gdat2view $1_$2 '$ARGS'& | | | > > > | 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 | echo Creating view of $1_$2 multi_command $PSVIEW $1 $2.ps | sh #View a gdat file $1_$2.dview: $1_$2.gdat echo Creating view of $1_$2 gdat2view $1_$2 '$ARGS'& #View a tex file $1_$2.tview: $1_$2.dvi echo Creating view of $1_$2 $DVIVIEW $1_$2.dvi& #Report generation $1_rep.make: $1_rep.txt $1_args.m rep_txt2make $1 $1_rep.tex: $1_rep.make cat $1_rep.make | sh rep_txt2tex $1; #SUMMARY abg Acausal bond graph report (tex) $1_abg.tex: $1_sub.sh abg2tex $1 # Version control system - uses RCS RCS: echo Creating RCS mkdir RCS $1_$2.vc: RCS echo Version control on $1_$2.$VCext |
︙ | ︙ |