/[ascend]/trunk/models/johnpye/fprops/fluids.h
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/fluids.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2711 - (show annotations) (download) (as text)
Sun Aug 18 11:16:09 2013 UTC (10 years, 9 months ago) by jpye
File MIME type: text/x-chdr
File size: 754 byte(s)
cleaning up (hopefully) a few compiler warnings.
1 #ifndef FPROPS_FLUIDS_H
2 #define FPROPS_FLUIDS_H
3
4 #include "fprops.h"
5 #include "rundata.h"
6
7 /**
8 Look up the named fluid and return its internal data structure, or
9 NULL if not found.
10 */
11 const PureFluid *fprops_fluid(const char *name, const char *corrtype, const char *source);
12
13 void fprops_fluid_destroy(PureFluid *fluid);
14
15 /**
16 @return number of fluids in the database.
17 */
18 int fprops_num_fluids();
19
20 /**
21 Retrieve fluid according to its position in the list of added fluids. The
22 index number can't be assumed to be stable; this function is simply to
23 allow iteration through all the fluids, searching, etc.
24 @param i fluid index number [0,fprops_num_fluids()-1]
25 @return NULL if i is out of bounds.
26 */
27 const PureFluid *fprops_get_fluid(int i);
28
29 #endif
30

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