Overview
Comment:Removed comment bug
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: b1ee786a979c2a755c6c3c24865f37df9fbd4fcf0d1411d8bae89b61956efca5
User & Date: gawthrop@users.sourceforge.net on 2000-10-03 18:35:04
Other Links: branch diff | manifest | tags
Context
2000-10-03
18:46:04
Now handles the generic CR (ie = and mtt_e and mtt_f) check-in: 66b513f764 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:35:04
Removed comment bug check-in: b1ee786a97 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:34:00
Initial revision check-in: e0bb42b0c7 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/cr/r/cr.cr from [bf8e268236] to [99acb3502b].

1
2
3
4
5
6
7
8
9
10



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%SUMMARY cr generic CR
%DESCRIPTION Argument is an algebraic expression with no embeddedwhite space
%DESCRIPTION Only available for one ports just now
%DESCRIPTION effort (or integrated effort) variable must be called mtt_e
%DESCRIPTION flow (or integrated flow) variable must be called mtt_f
%DESCRIPTION For example:
%DESCRIPTION             mtt_e=k*mtt_f
%DESCRIPTION             mtt_f=mtt_e/r

% $Log$




%Copyright (C) 2000 by Peter J. Gawthrop

% Version for one-port components
operator cr;

% We need four versions so that state does not need to be explicitly
% mentioned.
% At the moment, assume only one solution (in fact the first is
chosen)

% Flow input
FOR ALL mtt_cr, input, out_cause
LET cr(mtt_cr,out_cause, 1, input, flow, 1) = sub(mtt_f=input,rhs(first(solve(mtt_cr,mtt_e))));

% Effort input
FOR ALL mtt_cr, input, out_cause










>
>
>









|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%SUMMARY cr generic CR
%DESCRIPTION Argument is an algebraic expression with no embeddedwhite space
%DESCRIPTION Only available for one ports just now
%DESCRIPTION effort (or integrated effort) variable must be called mtt_e
%DESCRIPTION flow (or integrated flow) variable must be called mtt_f
%DESCRIPTION For example:
%DESCRIPTION             mtt_e=k*mtt_f
%DESCRIPTION             mtt_f=mtt_e/r

% $Log$
% Revision 1.1  2000/10/03 18:34:00  peterg
% Initial revision
%

%Copyright (C) 2000 by Peter J. Gawthrop

% Version for one-port components
operator cr;

% We need four versions so that state does not need to be explicitly
% mentioned.
% At the moment, assume only one solution (in fact the first is
% chosen)

% Flow input
FOR ALL mtt_cr, input, out_cause
LET cr(mtt_cr,out_cause, 1, input, flow, 1) = sub(mtt_f=input,rhs(first(solve(mtt_cr,mtt_e))));

% Effort input
FOR ALL mtt_cr, input, out_cause


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