Overview
Comment:New AE version with k_e
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ab6529913158ecc1522568992467942fb258c23f3d5c5534b25af363b6de67e5
User & Date: gawthrop@users.sourceforge.net on 2014-03-26 04:37:32
Other Links: branch diff | manifest | tags
Context
2014-04-07
04:41:32
Working version check-in: da5006b495 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2014-03-26
04:37:32
New AE version with k_e check-in: ab65299131 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2013-11-25
03:16:20
Rollback to previous version. check-in: 7ec822aeb8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/lib/cr/r/cp.cr version [40c7eabbcf].























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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 cp    Chemical potential constitutive relationship

% This formula gives the Gibb's free energy for a reaction component
% with given concentration.
% k_e is the corresponding equilibrium constant.

% C version integral causality
FOR ALL  concentration, k_e, RT
LET cp(C,k_e,RT, effort, 1, 
        concentration, state, 1)
         = RT*log(k_e*concentration);

% C version derivative causality
FOR ALL  potential, k_e, RT
LET cp(C,k_e,RT, state, 1, 
        potential, effort, 1)
         = exp(potential/RT)/k_e;

%AE version
FOR ALL  concentration, RT
LET cp(AE,RT,effort,2,concentration,effort,1) 
        = RT*log(concentration);

%AE version with k_e
FOR ALL  concentration, k_e, RT
LET cp(AE,k_e,RT,effort,2,concentration,effort,1) 
        = RT*log(k_e*concentration);


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