Overview
Comment:Unified naming scheme.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: d4ea53be71b58a0d2b616eaafc6f18561ece106a8de20ba1b40e9f31fc69f8c5
User & Date: gawthrop@users.sourceforge.net on 1996-08-08 18:06:55
Other Links: branch diff | manifest | tags
Context
1996-08-08
18:07:31
Sorted out naming scheme for files check-in: 708dd6c35f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:06:55
Unified naming scheme. check-in: d4ea53be71 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:06:18
Unified file naming scheme check-in: aeb605b914 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/abg2cbg_m from [06b7d781ea] to [e6bfabf99a].

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.1  1996/08/04 17:45:11  peter
## Initial revision
##
###############################################################

# The causal BG is described by four matrices
# (the same structure as the acausal BG except that Causality is 1 ot -1):







>
>
>
>







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.2  1996/08/05 11:25:00  peter
## Removed bonds argument from abg2cbg.
## Removed call to $1_abg.
##
## Revision 1.1  1996/08/04 17:45:11  peter
## Initial revision
##
###############################################################

# The causal BG is described by four matrices
# (the same structure as the acausal BG except that Causality is 1 ot -1):
85
86
87
88
89
90
91
92
93


94
95
96
97
98
99
100
101
102
103
104
105
106
107

108
109
110
111
112
113
# Use matrix manipulation to accomplish the transformation
 $MATRIX  >abg2cbg_m.log  2>>abg2cbg_m.log << EOF

  infofile= '$infofile';

  %Convert from acausal to causal bond graph in m-file form.
  system_name = '$1';
  [cbonds,status] = abg2cbg(system_name,infofile);




  %Write the function m-file for the causal bond graph
  filename = '$1_cbg.m';
  c = '%';
  fprintf(filename, 'function [cbonds,status] = $1_cbg\n');
  fprintf(filename, '%s [cbonds,status] = $1_cbg\n', c);
  fprintf(filename, '%s Causal bond graph created by MTT on %s \n\n', ...
                    c, date);
  mat2mfile(cbonds, 'cbonds', filename);
  mat2mfile(status, 'status', filename);

EOF

cat mtt_info.txt














<

>
>
|
<
<
|
<
|
<
<
<
<




>






89
90
91
92
93
94
95

96
97
98
99


100

101




102
103
104
105
106
107
108
109
110
111
112
# Use matrix manipulation to accomplish the transformation
 $MATRIX  >abg2cbg_m.log  2>>abg2cbg_m.log << EOF

  infofile= '$infofile';

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


  % THIS IS A NASTY BUG WORKROUND FOR OCTAVE
  abg2cbg('RC','RC' ,'', [], infofile);
  


  port_bonds = [];

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





EOF

cat mtt_info.txt
cp $1_$1_cbg.m $1_cbg.m 







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