A restful warpper for COOLPROP thermodynamic library.
Combinate with built-in APP SCRIPT to use NIST.REFPROP like functions in GOOGLE Sheet.
Thanks @ian bell for bring COOLPROP to us.
-
Install Python3 on your hosting machine.
-
Install require packages:
pip install -y CoolProp flask flask-restful
- Clone this respository:
git clone https://github.com/mirokymac/propAPIne.git
- Get into the Server directory to run app.py:
cd ./propAPIne/server && python3 app.py
-
Expose port
22001
to client -
Using restful API client to connext to
HOST:22001
- Clone this respository:
git clone https://github.com/mirokymac/propAPIne.git
- Build docker image of the server and copy the docker-ID:
cd ./propAPIne/server_docker && docker build .
- Run docker:
cd .. && docker run -p 22001:22001 {docker-ID}
-
Expose port
22001
to client -
Using restful API client to connext to
HOST:22001
Thanks @ian bell again for CoolProp-REFPROP_backend and REFPROP-cmake
-
Clone this respository:
cd ~ && git clone https://github.com/mirokymac/propAPIne.git
-
Copy
FORTRAN
directory to./propAPIne/refprop_builder_docker
. -
Make a directory
build
in./propAPIne/refprop_builder_docker
. -
Build REFPROP by:
cd ~/propAPIne/refprop_builder_docker && docker build .
then copy the docker-ID:
docker run -v $PWD/FORTRAN:/root/REFPROP-cmake/fortran -v $PWD/build:/root/REFPROP-cmake/build {docker-ID}
-
copy
build/librefprop.so
torefprop\
of your "server" directory; -
copy
fuilds
andmixtures
directories fromNIST_REFPROP
torefprop\
. -
Restart your server.
** For docker, you need to link the refprop
directory to your workdir.