-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Windows 10 native installation #271
Comments
Hello |
@rafdeangelis not yet! I couldn't find a solution to keep the bash open with bashrc loaded so every time you have to source it for each command. Comparing with how long does it take to run the analysis it's minor but it's just not elegant. The only limitation is that it only works on Windows 10! |
Hello @mostaphaRoudsari I have proceeded with the installation video from your second paragraph. But how to access OpenFOAM through windows? C:\Users\xxx\butterfly\xxx>bash -c “source /home/xxx/OpenFOAM/OpenFOAM-v1706/etc/bashrc; simpleFoam” ? I do not understand the process to launch OpenFOAM so the grasshopper "blockmesh" and the other components will work, Thank you and please continue your great work, |
@mostaphaRoudsari For my case it doesn´t matter if bashrc isn´t contantly open. Best regards. |
Hi, @mostaphaRoudsari I've got the interest with @rueckertch58521 . I've got the ubuntu OP version installed successfully and set the shared as C:\Users\user\butterfly\outdoor_airflow to run the example file. However, it seems like the butterfly is still looking for VM and Docker. Is there a way to change it? |
Hi all, Sorry for the delayed reply. There is currently no easy way to currently change that in Butterfly if you want to run it form inside Grasshopper/Dynamo. This will change soon and will be more flexible but with my current schedule I'm not sure when I get the chance to make the changes. Meanwhile once you have the case and the solution written to your machine. You can go to the folder and run the commands yourself. Or write a simple bash file to run all the commands. The will work for meshing and well as running the solvers. |
Hi all, new to OF,
i am running the OF using I5-7200 cpu @2.50 Ghz , 8G RAM. do need advice.. Thanks |
My experiences using this:
After all this, openfoam runs smoothly and much faster than the VM/Docker version (at least in tests I ran in my laptop). Regards, |
@mostaphaRoudsari Cheers, |
You can use Butterfly to write the case, access that case folder using Ubuntu and execute Openfoam commands.
You can then postprocess using Paraview or read the probe location and values back in Grasshopper Butterfly if you had set them so. good luck ps: have a look at basic linux commands to navigate in and out folders. (cd, ls, cp, mv, mkdir...) |
thanks @DambronOlivier ; but this did not address my question. I know if you are using virtualbox/oracle with openfoam installed, butterfly would work but I installed windows subsystem for linux (WSL) on my windows 10 and installed openfoam on this. Now even when openfoam is running in the background butterfly does not recognise it. My question is how can I link the OpenFOAM installed in WSL so butterfly recognise that. Cheers, |
@SinaHassanli Sorry for the confusion then. Butterfly is currently working with virtualbox/oracle and it's not YET linked to WSL. I understand @mostaphaRoudsari and @TheodoreGalanos are considering the option of using WSL, perhaps they will tell you more about it. |
If I might chime in.... The OpenFoam/Docker thing is terrible. I was not able to get it working on my machine. Yes virtualization was on, and even made a Admin user with no spaces. The OpenFoam/Docker is bad for so many reasons. Most windows users have spaces in the names. It takes 10% of your performance. The file paths are as deep as an oil well. There are security issues. It's Oracle, need I state more? I started an Anti-Docker/OpenFoam thread here: The producer of BlueCFD posted there. It seems like he/they put a lot of work to make it happen. I am sure you put a lot of work into making Butterfly. I was eager to try it, but I can't. What I really want: OpenFoam support for Windows. Until then, BlueCFD might be the way to go. It's interesting that OpenFoam is such a powerful system, but it indeed has a marked cross-platform deficiency. Anyway, thanks for working on Butterly. I hope to try it someday. |
All, See #375 (comment) Butterfly now supports blueCFD which should be even a better option than Windows 10 native installation. It worked smoothly on my machine. Let me know your experience if you get a chance to test it. Cheers! |
Have tried looking thru Issues and Wiki. I am in running Revit/Dynamo as admin, but my admin account is a secondary windows account than my primary account. is this possible source of issue? |
@dradair, we haven't updated Dynamo nodes so it won't pick up the blueCFD installation. The update is only done for the Grasshopper plugin. |
@mostaphaRoudsari that actually makes me feel betterish that I wasnt missing something easy in the install - i was doing it wrong! I'll try the other install mean (native openfoam/docker) and see where that leads me. Thanks for the fast response. |
@mostaphaRoudsari is it known/confirmed if the Dynamo 'flavor' of Butterfly will work with OpenFOAM v1812 or must it be OpenFOAM v1612? I have been trying to get v1612 to install (windows 10) for the better of 4 hours with little luck. Keep having issues with either OpenFOAM Environment setup or with Oracle VM VB throwing errors. This is all before Dynamo. I have references the wikis for OF for Windows and OF for Windows10 install (and uninstall) process, but no success..... |
@mostaphaRoudsari an update, for completeness. There is a detail in the written instructions that is either omitted or i had (repeatedly) missed in the install video. "Before running the meshing components you need to have the OpenFOAM docker container running otherwise you will receive an error. " I feel foolish, but wont be the last time in my life..... |
One should check the code and see how VSCode is doing it. The idea of using a port sounds hacky and most likely will need admin account but it might be all doable. https://code.visualstudio.com/docs/remote/wsl#_getting-started |
Windows 10 is now supporting Ubuntu natively and that gives us the option to install OpenFOAM on Windows 10 without installing docker. With all the headache of installing docker on Windows this can be a life / time saving solution for us.
I tested it today and the installation is straight forward. There is also a great video here that shows the process.
Once the installation is done one can access OpenFOAM from inside Windows using bash. Here is an example:
The challenges are:
It will only work on Windows 10.
The user need to mount the shared folder manually and also everyone end up with a different folder name. We can standardize this but my experience tells me that people don't read stuff. We can however to use bash to set this up programmatically but that needs an admin privilege.
Every time that we run any commands from bash we need to
source
OpenFoam'sbashrc
which takes a couple of seconds to execute. This can end up making everything slow. I think there should be a way to have an instance of bash running in the background and make calls. But I'm worried that for any connection like that user would need admin privileges. Also see this.One more thing to support!
The advantages are:
No docker installation.
No VM installation.
If this works fine we can also ran radiance on Ubuntu. That will open up a lot of opportunities including using parallel computation and running perl scripts.
Not sure if it does make sense to support this inside Butterfly or leave it to the advanced users to set it up on their own. They can use it next to current butterfly by mounting the butterfly folder.
The text was updated successfully, but these errors were encountered: