Multiple OpenFOAM 5 installations + Butterfly version question


#1

Hello,
Some time ago I did some test with Butterfly 0.0.04 using OpenFOAM v1612+ in Linux through the Docker.

After that I did some work using a different CFD plug-in for GH. In that case I installed OpenFOAM 5 using Ubuntu 18.04 under the Linux Subsystem for Windows (also know as Bash for Windows). I didn’t have problems with the previous installation of OpenFOAM (they are also two different versions).

Now I want to come back to Butterfly 0.0.05 that I have seen uses OpenFOAM 5 and a new Linux installation, through blueCFD-Core 2017-2. The question is: Will Butterfly pick the correct installed version of Linux/OpenFOAM 5? Or there could be conflicts that make Butterfly or the other CFD plug-in (or both) not working correctly? (I still have files that I could need to use again and run simulations with the other plug-in).

Last question: are Butterfly 0.0.05 and Butterfly Plus the same thing?

Thank you.
Francesco


#2

They are separate installations and should not affect each other.

Butterfly is the core Python library. ButterflyPlus is used for plugin and plugin libraries like Butterfly-Grasshopper, Butterfly-Dynamo and so on.


#3

Hello Mostapha,
thank you for the clarification.
About Butterfly versions: 0.0.05 comes with an installer (I used that) whereas Butterfly Plus with files in the folders butterfly_grasshopper and userObjects. Should I change the .ghuser files installed with the installer with those present in the userObject folder of Butterfly Plus? (they look the same just opening the folder - at least the number is the same).

Francesco


#4

Hi Francesco,
i think i set the openfoam5 through blueCFD successfully like this.


#5

(Sorry for I’m new member in ladybug, so i only can attach one pic one time.)
then i run the example file: outdoors air flow. Actually, I didn’t change any setting either imput geometry except turning on the boolean toggle in order as the tutorial. the result just like this.


there is no vector here , also the color seems not change with the air flow.


#6

and these are 2 errors in my file
one in Solution part , said " can’t find C:\users\pinenut\butterfly\outdoor_airflow\log\simpleFoam.err"

another one is plot residuals: like this

Don’t know why it just cant run as tutorial , and i tried several times . Last time I saw a tutor who use “openfoam/exe” , he enable the virtualization through BIOS first. and i check it and found i haven’t enable it. so I enable it, restart my laptop. and run butterfly again.
I haven’t got an result yet, since it nearly toke over 2 hours to run the solution component. I just can’t wait to shut down my laptop.
this screenshot you can see it speed is really slow in block mesh, not alone in Solution.every time loop took 5 mins. notice, i just imput the default-geometry – 2 simple box, don’t know why it take so long to analysis.
So is it necessary for me to enable virtualization?!

thanks a lot for your patience to read my questions!


#7

Hello Hazel,
thank you it worked also for me.

Francesco


#8

Hi, Fancesco
May i ask have you enable your virtualization technology in BIOS?
Don’t know the reason why after i disabled the virtualization technology , it seems works correctly. but super slow in solution component.


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?
Thanks!

Hazel


#9

Hello Hazel,
yes Windows has the Virtualization Technology enabled. Actually this feature was not required in the installation instruction of Blue CFD.
I did just two quick test using the outdoor airflow example file that is a very simple model with a small domain and I also noticed it is extremely slow. Meshing takes some kind of 20 or 30 minutes and each iteration takes really long time as you say. It is not possible to use this in real studies of urban environments. Other CFD plug-in for GH that use OpenFOAM are tens of time faster. I don’t know if it depends on the Virtualization Technology.
As soon as I have time I wanted to make a full run using different plug-ins compare the times and post to ask clarifications.

Francesco


#10

same question aroused in my mind . i guess members of this website are quite active.
Thank you everyone for providing such great knowledge.
regards


#11

Thank you so much!
I thought that I need buy a new laptop or upgrade it a week ago. But thanks to your testing, now, i would like to try another CFD plugin!
By the way, do I need to unload the blue CFD and then install CFD for windows? After that , can Butterfly run it in new CFD plugin automatically or we need to edict the code?