# CoolProp use in Julia

**URL:** https://discourse.julialang.org/t/coolprop-use-in-julia/75947
**Category:** New to Julia
**Created:** [February 7, 2022, 11:12am UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947 "2022-02-07T11:12:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Giovannini](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_giovannini/32/32964_2.png) [@Michael\_Giovannini](https://discourse.julialang.org/u/Michael_Giovannini)
#### Post date: [February 7, 2022, 11:12am UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947/1 "2022-02-07T11:12:43Z")

</div>

Hello everyone  
I need help using CoolpProp in Julia. I have been using CoolProp in Python, but I would like to try it in Julia to improve code speed. I’m a Linux user. I followed the guide on the CoolProp site about Julia wrapper but haven’t been able to use it. Could someone point me the correct steps to use the Coolprop shared library in Julia?  
thanks  
Michael

---

<div class="post-metadata">

### Author: ![hzgzh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hzgzh/32/6596_2.png) [@hzgzh](https://discourse.julialang.org/u/hzgzh)
#### Post date: [February 7, 2022, 12:52pm UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947/2 "2022-02-07T12:52:23Z")

</div>

install CoolProp.jl package,it not register, search in github and clone

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [February 7, 2022, 1:12pm UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947/3 "2022-02-07T13:12:11Z")

</div>

> [@Michael\_Giovannini](#):
>
> but I would like to try it in Julia to improve code speed

Realize that if you spend most of your computation time in the CoolProp library, then it won’t be any faster calling it from Julia than from Python. Julia code (properly written) has a speed advantage only for your _own_ performance-critical code.

---

<div class="post-metadata">

### Author: ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)
#### Post date: [February 7, 2022, 2:37pm UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947/4 "2022-02-07T14:37:23Z")

</div>

Depending on your application, you may also want to take a look at [Clapeyron.jl](https://github.com/ypaul21/Clapeyron.jl), a pure-Julia thermofluids package.

---

<div class="post-metadata">

### Author: ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)
#### Post date: [February 7, 2022, 3:06pm UTC](https://discourse.julialang.org/t/coolprop-use-in-julia/75947/5 "2022-02-07T15:06:08Z")

</div>

If you still want to try out `Coolprop` in julia,  
here are step-by-step instructions in a temporary environment  
(they will be in the README when [https://github.com/CoolProp/CoolProp.jl/pull/14](https://github.com/CoolProp/CoolProp.jl/pull/14) is merged):

```julia
# type a closing bracket ] to enter package mode
(@v1.6) pkg> activate --temp
  Activating new environment at `/tmp/jl_1ZD3mT/Project.toml`

# add the package from its url
(jl_1ZD3mT) pkg> add https://github.com/CoolProp/CoolProp.jl.git
    Updating `/tmp/jl_1ZD3mT/Project.toml`
  [e084ae63] + CoolProp v0.0.0 `https://github.com/CoolProp/CoolProp.jl.git#master`
    Updating `/tmp/jl_1ZD3mT/Manifest.toml`

# hit backspace to get back to the main REPL prompt, then use CoolProp
julia> using CoolProp
[Info: Precompiling CoolProp [e084ae63-2819-5025-826e-f8e611a84251]

# try it
# (Q is the "quality", cf. http://www.coolprop.org/coolprop/HighLevelAPI.html)
julia> PropsSI("T", "P", 101325.0, "Q", 0, "Water")
373.1242958476844

```
