Overview
| Comment: | Now does a default (when no constitutive relationship) with a unit constitutive relationship on each port. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
5878a5ebb63f458c6d13584776e703b8 |
| User & Date: | gawthrop@users.sourceforge.net on 1996-09-12 16:40:45.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1996-09-12
| ||
| 16:42:01 |
Default now out side this function - need to be none for each component. check-in: 635243c469 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 16:40:45 |
Now does a default (when no constitutive relationship) with a unit constitutive relationship on each port. check-in: 5878a5ebb6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 13:12:04 | Removed an fprintf that was a mistake. check-in: add52fe137 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/comp/simple/R_eqn.m
from [77c0a8b83d]
to [b028e7c756].
| ︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | % structure,eqnfile) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.1 1996/09/12 11:00:56 peter % %% Initial revision % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright (c) P.J. Gawthrop, 1996. if nargin<8 eqnfile = 'stdout'; end; % Find the number of ports [ports,junk] = size(bonds); for outport = 1:ports outcause = -bonds(outport,1); outnumber = bond_number(outport); | > > > > | > > > > > > > > | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
% structure,eqnfile)
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2 1996/09/12 13:12:04 peter
% %% Removed an fprintf that was a mistake.
% %%
% %% Revision 1.1 1996/09/12 11:00:56 peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (c) P.J. Gawthrop, 1996.
if nargin<8
eqnfile = 'stdout';
end;
% Find the number of ports
[ports,junk] = size(bonds);
for outport = 1:ports
outcause = -bonds(outport,1);
outnumber = bond_number(outport);
if length(cr)>0
incause = bonds(:,1);
inports = 1:ports;
inbonds = bond_number;
else % default if no cr: unit cr on each port
incause = bonds(outport,1);
inport = outport;
inbond = outnumber;
end;
eqn = equation(name,cr,args,outnumber,outcause,outport, ...
inbond,incause,inport);
fprintf(eqnfile, '%s',eqn);
end;
|