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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2711 - (hide annotations) (download) (as text)
Sun Aug 18 11:16:09 2013 UTC (10 years, 10 months ago) by jpye
File MIME type: text/x-chdr
File size: 754 byte(s)
cleaning up (hopefully) a few compiler warnings.
1 jpye 2299 #ifndef FPROPS_FLUIDS_H
2     #define FPROPS_FLUIDS_H
3    
4 jpye 2654 #include "fprops.h"
5     #include "rundata.h"
6 jpye 2299
7     /**
8     Look up the named fluid and return its internal data structure, or
9     NULL if not found.
10     */
11 jpye 2662 const PureFluid *fprops_fluid(const char *name, const char *corrtype, const char *source);
12 jpye 2299
13 jpye 2711 void fprops_fluid_destroy(PureFluid *fluid);
14 jpye 2681
15 jpye 2301 /**
16     @return number of fluids in the database.
17     */
18     int fprops_num_fluids();
19    
20     /**
21 jpye 2654 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 jpye 2301 @return NULL if i is out of bounds.
26     */
27 jpye 2654 const PureFluid *fprops_get_fluid(int i);
28 jpye 2301
29 jpye 2299 #endif
30    

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