# blueCFD-Core Installation Issue

**URL:** <https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278>\
**Category:** butterfly\
**Created:** [February 14, 2019, 12:52am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278 "2019-02-14T00:52:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshahi](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@sshahi](https://discourse.ladybug.tools/u/sshahi)\
**Post date:** [February 14, 2019, 12:52am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/1 "2019-02-14T00:52:17Z")

</div>

Hi,

I previously had issues with installing OpenFoam on my computer. I tried downloading through blueCFD as instructed on the butterfly page. The terminal runs fine but butterfly is still giving a “‘docker machine’ is not recognized error”. Do I have a chance to make this work on my machine?

Thanks!

---

<div class="post-metadata">

**Author:** ![OlivierDambron](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/olivierdambron/32/10957_2.png) [@OlivierDambron](https://discourse.ladybug.tools/u/OlivierDambron)\
**Post date:** [February 14, 2019, 12:11pm UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/2 "2019-02-14T12:11:25Z")

</div>

hi @sshahi

Could you try uninstalling completely Openfoam4windows and its depencies as describe here:

> **[ladybug-tools/butterfly](https://github.com/ladybug-tools/butterfly/wiki/%5BOLD%5D-OpenFOAM-for-Windows-Installation)**
>
> :butterfly: A light python API for creating and running OpenFoam cases for CFD simulation. - ladybug-tools/butterfly

 ![Capture65](https://discourse.ladybug.tools/uploads/default/original/2X/f/f57954d5ddd062a532cfa39a7938892ca711c0f2.jpeg)

---

<div class="post-metadata">

**Author:** ![Arpan](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/arpan/32/8601_2.png) [@Arpan](https://discourse.ladybug.tools/u/Arpan)\
**Post date:** [February 15, 2019, 9:36am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/3 "2019-02-15T09:36:44Z")

</div>

Same problem is faced by me when running the first example of butterfly.  
i had tried the following you mentioned but i cant find .docker and .virtual machine.  
i think they aren’t installed in my pc.  
should i need to install them separately. if so, where can i find this.  
hope you will come up with a workable solution.

thanks in advance

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 15, 2019, 3:06pm UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/4 "2019-02-15T15:06:39Z")

</div>

The latest version tries to find the blueCFD installation and if it can’t it will try to use the OpenFOAM for Windows. By default it assumes that blueCFD is installed under `C:\Program Files` which you can change by overwriting [this line](https://github.com/ladybug-tools/butterfly/blob/master/butterfly/ __init__.py#L8) in ` __init__ ` file.

I assume that in both of your cases butterfly has failed to find the installation. Try to run the commands below in a GHPython component and see what is the results:

```auto
import butterfly
print(butterfly.config['runner'])

```

---

<div class="post-metadata">

**Author:** ![sshahi](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@sshahi](https://discourse.ladybug.tools/u/sshahi)\
**Post date:** [February 16, 2019, 4:55am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/5 "2019-02-16T04:55:51Z")

</div>

Dear Mostapha,

I changed the address as you mentioned in the _init_.py file to the exact location of blueCFD.

I also tried to try the command in a GHPython as you asked, unfortunately the error is that “there is not attribute config”

I looked at the error in blockmesh python component, a couple of them that I can see are all traced back to runmanager.py in line 100, getShelinit or line 112 getContainerId and line 60 of ContainerId all related to the docker machine, from what I understand the docker machine was related to the previous OpenFoam and should not be the case with BlueCFD.

---

<div class="post-metadata">

**Author:** ![Asisnath](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/asisnath/32/27788_2.png) [@Asisnath](https://discourse.ladybug.tools/u/Asisnath)\
**Post date:** [February 16, 2019, 5:55am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/6 "2019-02-16T05:55:12Z")

</div>

Just to add to this discussion, the butterfly version in food for rhino is march 2017. Is it to be updated to some more recent updates with update butterfly component before it works with blueCfd?. Which version date butterfly is up to date?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![minggangyin](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/minggangyin/32/216_2.png) [@minggangyin](https://discourse.ladybug.tools/u/minggangyin)\
**Post date:** [February 18, 2019, 8:56am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/7 "2019-02-18T08:56:38Z")

</div>

Hi,@Asisnath  
You can install the newest version of butterfly using this link:

> **[ladybug-tools/butterfly](https://github.com/ladybug-tools/butterfly/wiki/1.-blueCFD-Core-(OpenFOAM)-Installation)**
>
> :butterfly: A light python API for creating and running OpenFoam cases for CFD simulation. - ladybug-tools/butterfly

---

<div class="post-metadata">

**Author:** ![Asisnath](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/asisnath/32/27788_2.png) [@Asisnath](https://discourse.ladybug.tools/u/Asisnath)\
**Post date:** [February 18, 2019, 12:19pm UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/8 "2019-02-18T12:19:08Z")

</div>

I installed it and running successfully with bluecfd core. I downloaded the legacy version from food for rhino here. [https://www.food4rhino.com/app/ladybug-tools](https://www.food4rhino.com/app/ladybug-tools)  
I updated the butterfly component from Github from [https://github.com/ladybug-tools/butterfly](https://github.com/ladybug-tools/butterfly) and butterfly(+) component from [https://github.com/ladybug-tools/butterfly-plus](https://github.com/ladybug-tools/butterfly-plus) to the respective directories.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 18, 2019, 2:55pm UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/9 "2019-02-18T14:55:50Z")

</div>

> [@sshahi](#):
>
> I changed the address as you mentioned in the _init_ .py file to the exact location of blueCFD.

It should be the parent installation folder not the folder itself. Which means `C:\Program Files` and NOT `C:\Program Files\blueCFD-Core-2017`.

> [@sshahi](#):
>
> I also tried to try the command in a GHPython as you asked, unfortunately the error is that “there is not attribute config”

That means that Grasshopper is still loading the older version of Butterfly from the cache. Start a new instance of Rhino.

---

<div class="post-metadata">

**Author:** ![hazel](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/h/e56c9b/32.png) [@hazel](https://discourse.ladybug.tools/u/hazel)\
**Post date:** [March 24, 2019, 5:26am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/10 "2019-03-24T05:26:34Z")

</div>

Hi Asisnath,  
I’m glad to hear that u ran successfully with bluecfd core. I think I also installed it correctly, but it run super slow both in mesh block and solution component. And my imput geometry just simple 2 boxes as it default geometry

 ![%E6%90%9C%E7%8B%97%E6%88%AA%E5%9B%BE20190317161755](https://discourse.ladybug.tools/uploads/default/original/2X/1/141402a7d040f6f3ea2cef8db34e00d8383fbe5e.png)  
you can see the time in right part. Nearly 90s for each time loop, I have no idea when will it finish.  
since it almost have hundreds time loop in total…  
Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![Asisnath](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/asisnath/32/27788_2.png) [@Asisnath](https://discourse.ladybug.tools/u/Asisnath)\
**Post date:** [March 26, 2019, 11:22am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/11 "2019-03-26T11:22:11Z")

</div>

hello @hazel initially i ran into same time consuming issue. But i updated my butterfly components from github and its working perfectly fine and in less time compared to earlier.

---

<div class="post-metadata">

**Author:** ![hazel](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/h/e56c9b/32.png) [@hazel](https://discourse.ladybug.tools/u/hazel)\
**Post date:** [March 26, 2019, 11:53am UTC](https://discourse.ladybug.tools/t/bluecfd-core-installation-issue/5278/12 "2019-03-26T11:53:48Z")

</div>

Hi,Asisnath,  
Thank u so much for your answer!  
may I ask one more question? (my butterfly0.005 is the latest version which i download from food4rhino)  
As u said, now I have already down load the butterfly update files,one called butterfly-master and another called butterfly-master-plus, what should I do next? how to update the component. thank u for ur patience, I’m totally new to parameter area. 🙂

 ![%E6%90%9C%E7%8B%97%E6%88%AA%E5%9B%BE20190326194932](https://discourse.ladybug.tools/uploads/default/original/2X/a/a2df64322ba38064c8691f0e486f8974a26c8dac.png)
