Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -17,10 +17,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.5 1996/08/10 14:13:47 peter +## Added impulse and frequency response stuff. +## ## Revision 1.4 1996/08/10 09:19:48 peter ## Put in help, info and warranty stuff. ## ## Revision 1.3 1996/08/09 15:13:13 peter ## Generic viewing of any representation via ps files implemented. @@ -104,22 +107,21 @@ ( \ echo "%% Symbolic parameter file ($1_sympar.r)"; \ echo "%% Change the following line to reflect the number of variables"; \ echo "MTTNVar := 0;"; \ echo "IF MTTNVar>0 THEN MATRIX MTTVar(MTTNVar,1);"; \ - echo "%% Add a statement here for each variable"; \ + echo "%% Add an assignment statement here for each variable"; \ + echo "%% For example: MTTVar(1,1) := r"; \ )> $1_sympar.r $1_simp.r: echo Creating $1_simp.r ( \ echo "%% Reduce comands to simplify output ($1_simp.r)"; \ )> $1_simp.r -$1_numpar.m: - echo Creating $1_numpar.m - ( \ - echo "%% Numerical parameter file ($1_numpar.m)"; \ - )> $1_numpar.m +$1_numpar.m: $1_sympar.r + mknumpar $1; matlab_tidy $1_numpar.m; matlab_tidy $1_parconv.m + $1_sspar.r: echo Creating $1_sspar.r echo "%% Reduce steady-state parameter file ($1_sspar.r)" > $1_sspar.r #Raw bond graph: fig file to mfile @@ -233,15 +235,17 @@ $1_tf.tex: $1_def.r $1_tf.r $1_sympar.r $1_simp.r tf_r2tex $1; latex_tidy $1_tf.tex #Time responses -$1_ir.dat: $1_dm.m +$1_ir.dat: $1_dm.m $1_numpar.m dm2ir_m2dat $1 +$1_sr.dat: $1_dm.m $1_numpar.m + dm2sr_m2dat $1 #Frequency responses -$1_fr.dat: $1_dm.m +$1_fr.dat: $1_dm.m $1_numpar.m dm2fr_m2dat $1 #Partially-known system indentification structure matrices $1_pkim.r: $1_tf.r $1_sympar.r tf2pkim_r $1; tidy $1_pki.r @@ -275,23 +279,31 @@ #Create PostScript version of dat file ifeq ('$2','ir') $1_$2.ps: $1_$2.dat dat2ps $1_$2 endif + +ifeq ('$2','sr') +$1_$2.ps: $1_$2.dat + dat2ps $1_$2 +endif + ifeq ('$2','fr') $1_$2.ps: $1_$2.dat dat2ps $1_$2 endif #Generic conversion of dvi to ps ifneq ('$2','abg') ifneq ('$2','cbg') ifneq ('$2','ir') +ifneq ('$2','sr') ifneq ('$2','fr') $1_$2.ps: $1_$2.dvi echo Creating $1_$2.ps dvips -o $1_$2.ps $1_$2.dvi 2> /dev/null +endif endif endif endif endif