Overview
Comment:Zapped t_0 again ...
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 7630d7073f5d19e3080764efc8a9700ef95938d39f4fa815ff74da14b10e1aad
User & Date: gawthrop@users.sourceforge.net on 1998-03-27 10:59:43
Other Links: branch diff | manifest | tags
Context
1998-03-27
12:23:01
Now has bicausal thermal input. check-in: 2dbd21de5f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:59:43
Zapped t_0 again ... check-in: 7630d7073f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:56:14
Added bicausal bit check-in: d393881e2d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/comp/simple/ES_eqn.m from [1a4390c7e9] to [31e29928e3].

13
14
15
16
17
18
19



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







+
+
+









% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2  1998/02/25 16:59:56  peterg
% %% Corrected enthalpy-entropy conversion -- use temp on the entropy side.
% %%
% %% Revision 1.1  1998/02/25 15:03:51  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Copyright (c) P.J. Gawthrop, 1997.
39
40
41
42
43
44
45
46


47
48
49
50


51
52
53
54
55
56
57
42
43
44
45
46
47
48

49
50
51
52
53

54
55
56
57
58
59
60
61
62







-
+
+



-
+
+








% There are 2 ports; extract the information
e_bond = bonds(1,:);
s_bond = bonds(2,:);

% The efforts are the same - but the enthalpy side has relative T
if e_bond(1)==1 %effort imposed on the enthalpy bond 
  fprintf(eqnfile,'%s := %s + t_0;\n' , ...
%  fprintf(eqnfile,'%s := %s + t_0;\n' , ...
  fprintf(eqnfile,'%s := %s;\n' , ...
    varname(name,bond_number(2), 1), ...
    varname(name,bond_number(1), 1) );
else %effort imposed on the entropy bond 
  fprintf(eqnfile,'%s := %s - t_0;\n' , ...
%  fprintf(eqnfile,'%s := %s - t_0;\n' , ...
  fprintf(eqnfile,'%s := %s;\n' , ...
    varname(name,bond_number(1), 1), ...
    varname(name,bond_number(2), 1) );
end;

% The flows need to be converted - use the absolute temp on the
% entropy side
if e_bond(2)==-1 %flow imposed on the enthalpy bond 


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