1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
|
exec ${MTTPATH}/mtt -cc -cr -i euler -D -optl -ntmpvar 1200 $*
@end verbatim
@end example
which may then be used in place of mtt on the command line,
@example
./call_mtt sys gnuplot view
@end example
@node Utilities, , Options, User interface
@comment node-name, next, previous, up
@section Utilities
@cindex Utilities
@pindex Utilities
|
|
|
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
|
exec ${MTTPATH}/mtt -cc -cr -i euler -D -optl -ntmpvar 1200 $*
@end verbatim
@end example
which may then be used in place of mtt on the command line,
@example
./call_mtt sys odeso gnuplot
@end example
@node Utilities, , Options, User interface
@comment node-name, next, previous, up
@section Utilities
@cindex Utilities
@pindex Utilities
|
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
|
@cindex gnuplot
Simulation plots may be conveniently selected, viewed with
@uref{http://www.gnuplot.org,gnuplot}
and saved to file (in PostScript format) using the command
@example
mtt [options] rc gnuplot view
@end example
This will cause a menu to be displayed, from which states and outputs may be selected for viewing. Clicking on a @emph{parameter name} will, by default, cause the time history of the selected parameter to be displayed.
As with @strong{xMTT} (@pxref{Menu-driven interface}), the Wish Tcl/Tk interpreter must be installed to make use of this feature.
@node Exporting results to SciGraphica, , Viewing results with gnuplot, Simulation output
|
|
|
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
|
@cindex gnuplot
Simulation plots may be conveniently selected, viewed with
@uref{http://www.gnuplot.org,gnuplot}
and saved to file (in PostScript format) using the command
@example
mtt [options] rc odeso gnuplot
@end example
This will cause a menu to be displayed, from which states and outputs may be selected for viewing. Clicking on a @emph{parameter name} will, by default, cause the time history of the selected parameter to be displayed.
As with @strong{xMTT} (@pxref{Menu-driven interface}), the Wish Tcl/Tk interpreter must be installed to make use of this feature.
@node Exporting results to SciGraphica, , Viewing results with gnuplot, Simulation output
|
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
|
# Makefile for representation ident
# File ident_rep.make
#Copyright (C) 2000,2001,2002 by Peter J. Gawthrop
## Model targets
model_reps = ${MTT_SYS}_sympar.m ${MTT_SYS}_simpar.m ${MTT_SYS}_state.m
model_reps += ${MTT_SYS}_numpar.m ${MTT_SYS}_input.m ${MTT_SYS}_ode2odes.m
model_reps += ${MTT_SYS}_def.m
## Prepend s to get the sensitivity targets
sensitivity_reps = ${model_reps:%=s%}
## Model prerequisites
model_pre = ${MTT_SYS}_abg.fig ${MTT_SYS}_lbl.txt
model_pre += ${MTT_SYS}_rdae.r ${MTT_SYS}_numpar.txt
## Prepend s to get the sensitivity targets
sensitivity_pre = ${model_pre:%=s%}
## Simulation targets
sims = ${MTT_SYS}_sim.m s${MTT_SYS}_ssim.m
## m-files needed for ident
ident_m = ${MTT_SYS}_ident.m ${MTT_SYS}_ident_numpar.m
## Targets for the ident simulation
ident_reps = ${ident_m} ${sims} ${model_reps} ${sensitivity_reps}
## ps output files etc
psfiles = ${MTT_SYS}_ident.ps ${MTT_SYS}_ident.comparison.ps
figfiles = ${psfiles:%.ps=%.fig}
gdatfiles = ${psfiles:%.ps=%.gdat}
datfiles = ${psfiles:%.ps=%.dat2}
## LaTeX files etc
latexfiles = ${MTT_SYS}_ident_par.tex
all: ${MTT_SYS}_ident.${MTT_LANG}
echo:
echo "sims: ${sims}"
echo "model_reps: ${model_reps}"
echo "sensitivity_reps: ${sensitivity_reps}"
echo "ident_reps: ${ident_reps}"
${MTT_SYS}_ident.view: ${psfiles}
ident_rep.sh ${MTT_SYS} view
${psfiles}: ${figfiles}
ident_rep.sh ${MTT_SYS} ps
${figfiles}: ${gdatfiles}
ident_rep.sh ${MTT_SYS} fig
${gdatfiles}: ${datfiles}
ident_rep.sh ${MTT_SYS} gdat
${datfiles} ${latexfiles}: ${ident_reps}
ident_rep.sh ${MTT_SYS} dat2
${MTT_SYS}_ident.m:
ident_rep.sh ${MTT_SYS} m
${MTT_SYS}_ident_numpar.m:
ident_rep.sh ${MTT_SYS} numpar.m
## System model reps
## Generic txt files
${MTT_SYS}_%.txt:
mtt ${MTT_OPTS} -q -stdin ${MTT_SYS} $* txt
## Specific m files
${MTT_SYS}_ode2odes.m: ${model_pre}
mtt -q -stdin ${MTT_OPTS} ${MTT_SYS} ode2odes m
${MTT_SYS}_sim.m: ${MTT_SYS}_ode2odes.m
mtt ${MTT_OPTS} -q -stdin ${MTT_SYS} sim m
## Numpar files
${MTT_SYS}_numpar.m:
mtt ${MTT_SYS} numpar m
## Sympar files
${MTT_SYS}_sympar.m:
mtt ${MTT_SYS} sympar m
## Generic txt to m
${MTT_SYS}_%.m: ${MTT_SYS}_%.txt
mtt ${MTT_OPTS} -q -stdin ${MTT_SYS} $* m
## r files
${MTT_SYS}_def.r: ${MTT_SYS}_abg.fig
mtt ${MTT_OPTS} -q -stdin ${MTT_SYS} def r
${MTT_SYS}_rdae.r:
mtt ${MTT_OPTS} -q -stdin ${MTT_SYS} rdae r
## Sensitivity model reps
## Generic txt files
s${MTT_SYS}_%.txt:
mtt ${MTT_OPTS} -q -stdin -s s${MTT_SYS} $* txt
## Specific m files
## Numpar files
s${MTT_SYS}_numpar.m:
mtt -s s${MTT_SYS} numpar m
## Sympar files
s${MTT_SYS}_sympar.m:
mtt -s s${MTT_SYS} sympar m
s${MTT_SYS}_ode2odes.m: ${sensitivity_pre}
mtt -q -stdin ${MTT_OPTS} -s s${MTT_SYS} ode2odes m
s${MTT_SYS}_ssim.m:
mtt -q -stdin ${MTT_OPTS} -s s${MTT_SYS} ssim m
s${MTT_SYS}_def.m:
mtt -q -stdin ${MTT_OPTS} -s s${MTT_SYS} def m
## Generic txt to m
s${MTT_SYS}_%.m: s${MTT_SYS}_%.txt
mtt ${MTT_OPTS} -q -stdin s${MTT_SYS} $* m
## r files
s${MTT_SYS}_rdae.r:
mtt ${MTT_OPTS} -q -stdin -s s${MTT_SYS} rdae r
@end verbatim
@node Shell-script (DIY representations), Documentation (DIY representations), Makefile (DIY representations), New (DIY) representations
@comment node-name, next, previous, up
@subsection Shell-script
@cindex New representations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
|
# Makefile for representation ident
# File ident_rep.make
#Copyright (C) 2000,2001,2002 by Peter J. Gawthrop
## Model targets
model_reps = ${SYS}_sympar.m ${SYS}_simpar.m ${SYS}_state.m
model_reps += ${SYS}_numpar.m ${SYS}_input.m ${SYS}_ode2odes.m
model_reps += ${SYS}_def.m
## Prepend s to get the sensitivity targets
sensitivity_reps = ${model_reps:%=s%}
## Model prerequisites
model_pre = ${SYS}_abg.fig ${SYS}_lbl.txt
model_pre += ${SYS}_rdae.r ${SYS}_numpar.txt
## Prepend s to get the sensitivity targets
sensitivity_pre = ${model_pre:%=s%}
## Simulation targets
sims = ${SYS}_sim.m s${SYS}_ssim.m
## m-files needed for ident
ident_m = ${SYS}_ident.m ${SYS}_ident_numpar.m
## Targets for the ident simulation
ident_reps = ${ident_m} ${sims} ${model_reps} ${sensitivity_reps}
## ps output files etc
psfiles = ${SYS}_ident.ps ${SYS}_ident.comparison.ps
figfiles = ${psfiles:%.ps=%.fig}
gdatfiles = ${psfiles:%.ps=%.gdat}
datfiles = ${psfiles:%.ps=%.dat2}
## LaTeX files etc
latexfiles = ${SYS}_ident_par.tex
all: ${SYS}_ident.${LANG}
echo:
echo "sims: ${sims}"
echo "model_reps: ${model_reps}"
echo "sensitivity_reps: ${sensitivity_reps}"
echo "ident_reps: ${ident_reps}"
${SYS}_ident.view: ${psfiles}
ident_rep.sh ${SYS} view
${psfiles}: ${figfiles}
ident_rep.sh ${SYS} ps
${figfiles}: ${gdatfiles}
ident_rep.sh ${SYS} fig
${gdatfiles}: ${datfiles}
ident_rep.sh ${SYS} gdat
${datfiles} ${latexfiles}: ${ident_reps}
ident_rep.sh ${SYS} dat2
${SYS}_ident.m:
ident_rep.sh ${SYS} m
${SYS}_ident_numpar.m:
ident_rep.sh ${SYS} numpar.m
## System model reps
## Generic txt files
${SYS}_%.txt:
mtt ${OPTS} -q -stdin ${SYS} $* txt
## Specific m files
${SYS}_ode2odes.m: ${model_pre}
mtt -q -stdin ${OPTS} ${SYS} ode2odes m
${SYS}_sim.m: ${SYS}_ode2odes.m
mtt ${OPTS} -q -stdin ${SYS} sim m
## Numpar files
${SYS}_numpar.m:
mtt ${SYS} numpar m
## Sympar files
${SYS}_sympar.m:
mtt ${SYS} sympar m
## Generic txt to m
${SYS}_%.m: ${SYS}_%.txt
mtt ${OPTS} -q -stdin ${SYS} $* m
## r files
${SYS}_def.r: ${SYS}_abg.fig
mtt ${OPTS} -q -stdin ${SYS} def r
${SYS}_rdae.r:
mtt ${OPTS} -q -stdin ${SYS} rdae r
## Sensitivity model reps
## Generic txt files
s${SYS}_%.txt:
mtt ${OPTS} -q -stdin -s s${SYS} $* txt
## Specific m files
## Numpar files
s${SYS}_numpar.m:
mtt -s s${SYS} numpar m
## Sympar files
s${SYS}_sympar.m:
mtt -s s${SYS} sympar m
s${SYS}_ode2odes.m: ${sensitivity_pre}
mtt -q -stdin ${OPTS} -s s${SYS} ode2odes m
s${SYS}_ssim.m:
mtt -q -stdin ${OPTS} -s s${SYS} ssim m
s${SYS}_def.m:
mtt -q -stdin ${OPTS} -s s${SYS} def m
## Generic txt to m
s${SYS}_%.m: s${SYS}_%.txt
mtt ${OPTS} -q -stdin s${SYS} $* m
## r files
s${SYS}_rdae.r:
mtt ${OPTS} -q -stdin -s s${SYS} rdae r
@end verbatim
@node Shell-script (DIY representations), Documentation (DIY representations), Makefile (DIY representations), New (DIY) representations
@comment node-name, next, previous, up
@subsection Shell-script
@cindex New representations
|