Overview
Comment:Added new numpar stuff.
Added step response.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ae56da63d4511edc3ab21e7d0ef617413f1b3cbc037af7164493a7b3c94f73a8
User & Date: gawthrop@users.sourceforge.net on 1996-08-11 10:40:56
Other Links: branch diff | manifest | tags
Context
1996-08-11
10:41:52
Fixed various bugs. check-in: 374eddf0e0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:40:56
Added new numpar stuff.
Added step response.
check-in: ae56da63d4 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:40:00
Now handles e and NaN numbers. check-in: 64cba155ab user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [3f4b8b2a53] to [a7d3571403].

15
16
17
18
19
20
21



22
23
24
25
26
27
28
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31







+
+
+







# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## 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.
##
## Revision 1.2  1996/08/05 19:50:55  peter
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
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







-
+
+






-
-
-
+
+
+
-
-







$1_sympar.r:
	echo Creating $1_sympar.r
	( \
	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
	( \
$1_numpar.m: $1_sympar.r
	mknumpar $1; matlab_tidy $1_numpar.m; matlab_tidy $1_parconv.m

	echo "%% Numerical parameter file ($1_numpar.m)"; \
        )> $1_numpar.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
$1_rbg.m: $1_abg.fig $1_lbl.txt
	rbg_fig2m $1
231
232
233
234
235
236
237
238

239


240
241
242

243
244
245
246
247
248
249
233
234
235
236
237
238
239

240
241
242
243
244
245

246
247
248
249
250
251
252
253







-
+

+
+


-
+







$1_tf.m: $1_def.r $1_tf.r
	tf_r2m $1; matlab_tidy $1_tf.m
$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
$1_pkim.tex: $1_def.r $1_pkim.r $1_sympar.r
	pkim_r2tex $1; latex_tidy $1_pkim.tex
273
274
275
276
277
278
279






280
281
282
283
284
285
286
287
288

289
290
291
292

293
294
295
296
297
298
299
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311







+
+
+
+
+
+









+




+







endif

#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

#View a ps file
$1_$2.view: $1_$2.ps


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]