Overview
| Comment: | Added argument check. Added extra name argument. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8e300a27ec17778e0af6f3928b9c2d75 |
| User & Date: | gawthrop@users.sourceforge.net on 1996-08-30 19:03:10.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1996-08-30
| ||
| 19:05:52 | Initial revision check-in: a2ef29aad5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 19:03:10 |
Added argument check. Added extra name argument. check-in: 8e300a27ec user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 19:01:21 | Added headers to sympar file. check-in: 34c2cb4fec user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/comp/simple/AE_eqn.m
from [8c6d83e911]
to [329cb92f23].
|
| | > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
function structure = AE_eqn(name,bond_number,bonds,direction,cr,args, ...
structure,eqnfile);
% AE_eqn. Equation generation for effort amplifier.
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2 1996/08/30 13:23:11 peter
% %% Added bond number check
% %%
% %% Revision 1.1 1996/08/22 13:12:34 peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if nargin<6
eqnfile = 'stdout';
|
| ︙ | ︙ | |||
26 27 28 29 30 31 32 | f_1 = bonds(1,2); e_2 = bonds(2,1); f_2 = bonds(2,2); % Flow on port 1 is always zero fprintf(eqnfile, '%s := 0;\n', ... | | | | 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 |
f_1 = bonds(1,2);
e_2 = bonds(2,1);
f_2 = bonds(2,2);
% Flow on port 1 is always zero
fprintf(eqnfile, '%s := 0;\n', ...
varname(name,bond_number(1), -1));
LHS_cause = 1;
RHS_cause = 1;
if e_2 == -1 % Unicausal: e_2 := e_1
LHS_number = bond_number(2);
RHS_number = bond_number(1);
else % Bicausal: e_1 := e_2
LHS_number = bond_number(1);
RHS_number = bond_number(2);
end
oneeqn(name,LHS_number,LHS_cause,RHS_number,RHS_cause,cr,args,eqnfile);
|