19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
-
+
-
+
|
echo "% Steady-state parameter file ($1_sspar.r)" > $1_sspar.r
echo "% Generated by MTT at `date`" >> $1_sspar.r
cat $MTTPATH/trans/rcs_header.m >> $1_sspar.r
echo >> $1_sspar.r
echo "% Steady-state states" >> $1_sspar.r
awk '{
gawk '{
if ($1=="state")
print "MTTX" $2 " := \t0; % " $4 " (" $3 ")"
}' \
$1_struc.txt >> $1_sspar.r
echo "% Steady-state inputs" >> $1_sspar.r
awk '{
gawk '{
if ($1=="input")
print "MTTU" $2 " := \t0; % " $4 " (" $3 ")"
}' \
$1_struc.txt >> $1_sspar.r
echo ";;END;" >> $1_sspar.r
|