This document contains a description of how to use FluidProp in Linux. The use of the Linux version slightly differs with respect to the Windows version. The main aspects are listed here. Help that applies to both versions can be found in the FluidProp help files by clicking the following link: help/FluidProp.htm

 

 

How to use FluidProp in Fortran, C and C++

 

FluidProp contains various interfaces which allows for linking the FluidProp library against your Fortran, C and C++ programs.

 

These interfaces are needed to link the FluidProp library to a main program written in

 

1) Fortran (77, 90, 95, 2003)

 

2) C and C++

 

The interfaces are in the form of binary files. Their source code is also provided.

 

The binary files of the interfaces are in the lib subdirectory and have been tested under Fedora 8 and 10, Ubuntu 8.10, SUSE Linux 11.0 and Slackware 12.0.0, using Intel Fortran 10.1 and 11.1 and the GNU C-compilers available with these Linux distributions. The SampleClients directory provides examples of simple main programs that can be compiled and linked against the FluidProp library through the binary interfaces (including example Makefiles).

 

The source code of the interfaces are in the api subdirectory and can be used in case the binary interfaces do not work with a certain distribution of Linux (not all Linux distributions have been tested). A Makefile which facilitates compilation and linking is also included.

 

 

How to use FluidProp in Matlab

 

In order to use FluidProp in Matlab start Matlab from a terminal. FluidProp has been tested with Matlab R2007b and R2008b for Linux and has a slightly different interface with respect to the Windows COM server version. The interface is compiled into a Matlab MEX file. A MEX file is a dynamically linked subroutine that the MATLAB interpreter can automatically load and execute.

 

To call a function of the FluidProp library, use the following syntax

 

[return values] = fluidprop('function name', <arguments>)

or

fluidprop function_name <string arguments>

 

Examples:

 

fluidprop getfluidnames Long TPSI

a = fluidprop('soundspeed', 'PT', 1e5, 15)

fluidprop('allprops', 'PT', 1e5, 15)

 

 

How to use FluidProp in OpenOffice Calc

 

In order to use FluidProp in OpenOffice Calc start OpenOffice (or start OpenOffice Calc directly) from a terminal. FluidProp has been tested with OpenOffice Calc 2.4 and 3.1 for Linux. The FluidProp functions are available in any Calc sheet. A list of available functions and some help text can be found by choosing the Function or Function list menu items within the Insert sub‑menu. The FluidProp functions are listed under the Add-in category.