Overview
Comment:The cbg filename contains the system name - this makes things easier
when setting up the m to fig translation and m to ese translation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a1242435836d71be90ca84c004eb66e6351ca1cc354bbb280e8f24e955563bb9
User & Date: gawthrop@users.sourceforge.net on 1996-08-08 08:30:06
Other Links: branch diff | manifest | tags
Context
1996-08-08
15:52:28
Recursive version.
Fails due to octave bug - reported.
check-in: 78c082843d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:30:06
The cbg filename contains the system name - this makes things easier
when setting up the m to fig translation and m to ese translation
check-in: a124243583 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1996-08-05
20:15:39
Prepared for recursive version. check-in: b130008abd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/abg2cbg.m from [aa59dcdd82] to [11dc352884].

11
12
13
14
15
16
17



18
19
20
21
22
23
24
% Acausal bond graph to causal bond graph: mfile format

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.2  1996/08/05 15:41:41  peter
% %% Now recursively does causality on subsystems.
% %%
% %% Revision 1.1  1996/08/04 17:55:55  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







>
>
>







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

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.3  1996/08/05 18:53:21  peter
% %% Fixed bug passing causality from subsystems.
% %%
% %% Revision 1.2  1996/08/05 15:41:41  peter
% %% Now recursively does causality on subsystems.
% %%
% %% Revision 1.1  1996/08/04 17:55:55  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
  for i=under_causal_bonds'
    eval([ '[comp_type,name] = ', system_type, '_cmp(i);' ]);
    mtt_info(sprintf('Component %s (%s) is undercausal', name, comp_type), ...
      infofile);
  end;
end;

full_name
write_cbg(full_name,bonds,status);

% Return the port bonds
for i = 1:n_ports
  port_bonds(i,:) = bonds(i,:);
end;

disp('----------------------');












|
|












165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
  for i=under_causal_bonds'
    eval([ '[comp_type,name] = ', system_type, '_cmp(i);' ]);
    mtt_info(sprintf('Component %s (%s) is undercausal', name, comp_type), ...
      infofile);
  end;
end;

file_name = [full_name, '_', system_type]
write_cbg(file_name,bonds,status);

% Return the port bonds
for i = 1:n_ports
  port_bonds(i,:) = bonds(i,:);
end;

disp('----------------------');






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