地熱流体物性計算ライブラリ
Unfortunately we are not yey ready to publish a R-package for geofluidprop.
Nevertheless, one can use some functions of geofluidprop from R with the following steps:
-DBUILD_R_LIB=ON to the cmake arguments.
Internally, we use SWIG to generate R interface.make, the following files will be created under build/lib/r directory.
geofluidprop.Rgeofluidprop.so or geofluidprop.dllCopy all the R related files to your work directory
Copy the above files and all the R script files under wrapper/R to your work directory for R.
source("geofluidprop_init.R")
This should load the shared library and related wrapper functions. Then, one can type, e.g.,
water_density <- iapws95_rho_pT(p=1e6, T=293.15)
wrapper/R directory includes the following R scripts, that implement additional functions based on geofluidprop functionality: