Overview
Comment:$RMATRIX --> $MATRIX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 04a03b6cfd4cc3423360434e2f5b2629859b179b55898171612ed9ab752cb083
User & Date: gawthrop@users.sourceforge.net on 1998-01-23 13:31:23
Other Links: branch diff | manifest | tags
Context
1998-01-23
13:33:47
Removed OCTAVE_PATH
Removed RMATRIX
check-in: 0798b8ec98 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:31:23
$RMATRIX --> $MATRIX check-in: 04a03b6cfd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:27:13
Added state-feedback control representations:
smc,smo,ssk,ssl
check-in: 17b2d86760 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/abg2cbg_m from [96dba78e8a] to [9d1ac8f9b2].

9
10
11
12
13
14
15




16
17
18
19
20
21
22
# Acausal bond graph to causal bond graph: mfile format

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$




# Revision 1.9  1996/11/06  15:49:33  peterg
# Cahged $MATRIX to $RMATRIX
#
# Revision 1.8  1996/08/25  09:31:49  peter
# More error handling.
#
## Revision 1.7  1996/08/25 09:22:55  peter







>
>
>
>







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Acausal bond graph to causal bond graph: mfile format

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.10  1996/12/04  21:51:02  peterg
# Now uses filenum instead of line name.
# Uses fopen
#
# Revision 1.9  1996/11/06  15:49:33  peterg
# Cahged $MATRIX to $RMATRIX
#
# Revision 1.8  1996/08/25  09:31:49  peter
# More error handling.
#
## Revision 1.7  1996/08/25 09:22:55  peter
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125

126
127
128
129
130
131
132
133
134
135
136


#Inform user
echo Creating $1_cbg.m
echo Creating $1_type.sh

# Use matrix manipulation to accomplish the transformation
$RMATRIX  >abg2cbg_m.log  2>mtt_error.txt << EOF

  infofile= '$infofile';
  typefile = '$typefile';
  infofilenum = fopen(infofile,'w');
  typefilenum = fopen(typefile,'w');

  %Convert from acausal to causal bond graph in m-file form.
  system_name='$1'

  port_bonds = [];

  [cbonds,status] = abg2cbg(system_name, '', '', port_bonds, ...
      typefilenum, infofile);

EOF

cat mtt_info.txt

# cp $1_$1_cbg.m $1_cbg.m 2>> mtt_error.txt 

# Print errors, if any.
mtt_error mtt_error.txt







|







|


>
|
|









112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141


#Inform user
echo Creating $1_cbg.m
echo Creating $1_type.sh

# Use matrix manipulation to accomplish the transformation
$MATRIX  >abg2cbg_m.log  2>mtt_error.txt << EOF

  infofile= '$infofile';
  typefile = '$typefile';
  infofilenum = fopen(infofile,'w');
  typefilenum = fopen(typefile,'w');

  %Convert from acausal to causal bond graph in m-file form.
  system_name='$1';

  port_bonds = [];
  port_status = [];
  [cbonds,status] = abg2cbg(system_name, '', '', port_bonds, port_status, ...
      typefilenum, infofilenum);

EOF

cat mtt_info.txt

# cp $1_$1_cbg.m $1_cbg.m 2>> mtt_error.txt 

# Print errors, if any.
mtt_error mtt_error.txt

Modified mttroot/mtt/bin/trans/cbg2ese_m2r from [7fbfc9f7b8] to [ce64cc49eb].

12
13
14
15
16
17
18




19
20
21
22
23
24
25

###############################################################
## Version control history
###############################################################
## $Id$
##
## $Log$




## Revision 1.10  1997/04/15 09:18:26  peterg
## Added structure file
##
# Revision 1.9  1996/12/07  18:21:25  peterg
# Now uses fopen + file number
#
## Revision 1.8  1996/12/05 10:05:28  peterg







>
>
>
>







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

###############################################################
## Version control history
###############################################################
## $Id$
##
## $Log$
## Revision 1.11  1997/12/16 18:05:03  peterg
## Increased size of structure vector by on to include unknown_inputs as
## 6th element
##
## Revision 1.10  1997/04/15 09:18:26  peterg
## Added structure file
##
# Revision 1.9  1996/12/07  18:21:25  peterg
# Now uses fopen + file number
#
## Revision 1.8  1996/12/05 10:05:28  peterg
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

#Inform user
echo Creating $eqnfile
echo Creating $deffile
echo Creating $structurefile

# Use matrix manipulation to accomplish the transformation
$RMATRIX > cbg2ese_m2r.log 2>mtt_error.txt << EOF

infofile = '$infofile';;
infofilenum = fopen(infofile,'w');
structurefile = '$structurefile';;
structurefilenum = fopen(structurefile,'w');
deffile = '$1_def.r';
deffilenum = fopen(deffile,'w');







|







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

#Inform user
echo Creating $eqnfile
echo Creating $deffile
echo Creating $structurefile

# Use matrix manipulation to accomplish the transformation
$MATRIX > cbg2ese_m2r.log 2>mtt_error.txt << EOF

infofile = '$infofile';;
infofilenum = fopen(infofile,'w');
structurefile = '$structurefile';;
structurefilenum = fopen(structurefile,'w');
deffile = '$1_def.r';
deffilenum = fopen(deffile,'w');

Modified mttroot/mtt/bin/trans/cbg_m2fig from [f64b34f81b] to [8b1324fbee].

14
15
16
17
18
19
20



21
22
23
24
25
26
27
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



# Revision 1.7  1996/11/09  19:04:34  peterg
# Removed cp $1_$1_cbg.fig $1_cbg.fig.
#
## Revision 1.6  1996/11/06 15:58:46  peterg
## Changed Matrix to RMATRIX
##
# Revision 1.5  1996/11/02  10:16:50  peterg







>
>
>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.8  1996/12/07 19:23:07  peterg
## Registered agian.
##
# Revision 1.7  1996/11/09  19:04:34  peterg
# Removed cp $1_$1_cbg.fig $1_cbg.fig.
#
## Revision 1.6  1996/11/06 15:58:46  peterg
## Changed Matrix to RMATRIX
##
# Revision 1.5  1996/11/02  10:16:50  peterg
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

sh $1_type.sh 'cp ' '_fig.fig ' '_cbg.fig'> mtt_error.txt

#Inform user
echo Creating $1_cbg.fig

# Use  matrix manipulation to accomplish the transformation
$RMATRIX > cbg_m2fig.log  2>>mtt_error.txt << EOF

  system_name = '$1';
  thick = 3; length = 150; red = 4; blue = 1; green = 12; font = 18;
  cbg2fig(system_name, ...
          '', '', ...
          length, thick, blue, ...
          font, green, red);







|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

sh $1_type.sh 'cp ' '_fig.fig ' '_cbg.fig'> mtt_error.txt

#Inform user
echo Creating $1_cbg.fig

# Use  matrix manipulation to accomplish the transformation
$MATRIX > cbg_m2fig.log  2>>mtt_error.txt << EOF

  system_name = '$1';
  thick = 3; length = 150; red = 4; blue = 1; green = 12; font = 18;
  cbg2fig(system_name, ...
          '', '', ...
          length, thick, blue, ...
          font, green, red);


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