Overview
Comment:Arguments now passed via $1_args.m file
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ead13b5877f38834ffd7052adc051ba97979bad5c8c3b80cb8115298eaeb69f4
User & Date: gawthrop@users.sourceforge.net on 1996-08-12 20:19:52
Other Links: branch diff | manifest | tags
Context
1996-08-12
20:20:59
Explicit parameters via out put list.
Parameter conversion stuff deleted.
check-in: 74b3d93b6c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:19:52
Arguments now passed via $1_args.m file check-in: ead13b5877 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:19:06
Fiddled about with parameter passing - still not right check-in: e3ec643207 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [93e6262cd8] to [478d2633c6].

15
16
17
18
19
20
21



22
23
24
25
26
27
28
# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$



## Revision 1.6  1996/08/11 10:40:56  peter
## Added new numpar stuff.
## Added step response.
##
## Revision 1.5  1996/08/10 14:13:47  peter
## Added impulse and frequency response stuff.
##







>
>
>







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.7  1996/08/11 19:49:27  peter
## Parameter passing (via $4) added.
##
## Revision 1.6  1996/08/11 10:40:56  peter
## Added new numpar stuff.
## Added step response.
##
## Revision 1.5  1996/08/10 14:13:47  peter
## Added impulse and frequency response stuff.
##
82
83
84
85
86
87
88





89
90
91
92
93
94
95
fi

if [ "$1" = "clean" ] && [$2 = ""]; then
  echo 'Removing log, dvi and ps files'
  rm *.log *.dvi *.ps
  exit
fi






# This is the main mtt programme
 
make  -s -f -  $1_$2.$3 << EOF

#Create acausal bond graph figure using xfig 
$1_abg.fig:







>
>
>
>
>







85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
fi

if [ "$1" = "clean" ] && [$2 = ""]; then
  echo 'Removing log, dvi and ps files'
  rm *.log *.dvi *.ps
  exit
fi

# Save up the argument list in a file.
cat > macmic_args.m <<EOF
$4
EOF

# This is the main mtt programme
 
make  -s -f -  $1_$2.$3 << EOF

#Create acausal bond graph figure using xfig 
$1_abg.fig:
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
        )> $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: $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
$1_rbg.m: $1_abg.fig $1_lbl.txt







|







127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
        )> $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: $1_sympar.r
	mknumpar $1; matlab_tidy $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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
$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_numpar.m
	dm2ir_m2dat $1 '$4'
$1_sr.dat: $1_dm.m $1_numpar.m
	dm2sr_m2dat $1 '$4'

#Frequency responses
$1_fr.dat: $1_dm.m $1_numpar.m
	dm2fr_m2dat $1 '$4'

#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







|

|



|







246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
$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_numpar.m $1_args.m
	dm2ir_m2dat $1 '$4'
$1_sr.dat: $1_dm.m $1_numpar.m $1_args.m
	dm2sr_m2dat $1 '$4'

#Frequency responses
$1_fr.dat: $1_dm.m $1_numpar.m $1_args.m
	dm2fr_m2dat $1 '$4'

#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


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