/[ascend]/trunk/models/johnpye/fprops/python/fprops.i
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/python/fprops.i

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2117 - (show annotations) (download)
Wed Dec 9 04:30:18 2009 UTC (10 years, 6 months ago) by jpye
File size: 644 byte(s)
Improving Python build of FPROPS.
Added spinodal.py for visualisation of spinodal points.
Added placeholder critical and triple point data for the other fluids (needs to be filled in).
Allow peering inside helmholtz data form Python (eg to access critical point data).
1 %module fprops
2
3 %{
4 #include "../carbondioxide.h"
5 #include "../water.h"
6 #include "../ammonia.h"
7 #include "../hydrogen.h"
8 #include "../nitrogen.h"
9 #include "../helmholtz.h"
10 %}
11
12 %immutable helmholtz_data_water;
13 %immutable helmholtz_data_carbondioxide;
14 %immutable helmholtz_data_ammonia;
15 %immutable helmholtz_data_nitrogen;
16 %immutable helmholtz_data_hydrogen;
17
18 %include "../helmholtz.h"
19
20 %include "../carbondioxide.h"
21 %include "../water.h"
22 %include "../ammonia.h"
23 %include "../hydrogen.h"
24 %include "../nitrogen.h"
25
26 /*
27 swig -python fprops.i
28 gcc -I /usr/include/python2.5 -shared fprops_wrap.c ../helmholtz.c ../ideal.c ../water.c -o _fprops.so
29 */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22