Differences From Artifact [93e6262cd8]:

To Artifact [478d2633c6]:


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.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
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
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; matlab_tidy $1_parconv.m
	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
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_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_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_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 ]