/[ascend]/trunk/models/johnpye/fprops/SConstruct
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/SConstruct

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: 726 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 # Standalone 'SConstruct' to demonstrate how you can build
2 # this ASCEND external library against an existing copy of
3 # ASCEND installed on your system.
4
5 env = Environment()
6
7 if WhereIs('ascend-config'):
8 env.ParseConfig(['ascend-config','--libs','--cppflags'])
9 else:
10 print "ERROR: no ascend-config in path"
11 env.Append(
12 LIBS=["ascend"]
13 ,LIBPATH=["#/../../.."]
14 ,CPPPATH=["#/../../.."]
15 )
16
17 srcs = ['mbwr.c','asc_mbwr.c']
18
19 env.SharedLibrary('mbwr_ascend',srcs)
20
21 env['fluids'] = ['ammonia','water','nitrogen','hydrogen','carbondioxide']
22
23 srcs = ['ideal.c', 'helmholtz.c', 'asc_helmholtz.c'] \
24 + ["%s.c" % f for f in env['fluids']]
25
26 env.SharedLibrary('helmholtz_ascend',srcs)
27
28 env.SConscript('python/SConscript',['env'])
29

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