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: 9d4aaf3744b8d412878d29aab42761b0280a3534078ef655723a14828409c1e3
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: 3f3572ba93 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2014-03-26
04:37:32
New AE version with k_e check-in: 9d4aaf3744 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2013-11-25
03:16:20
Rollback to previous version. check-in: 7891a05edd 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 ]