|
[Sponsors] |
[OpenFOAM.com] Installation issue OpenFOAM for Windows after restart |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 11, 2016, 13:38 |
Installation issue OpenFOAM for Windows after restart
|
#1 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
Dear all
I installed OpenFOAM for Windows (http://www.openfoam.com/download/install-windows.php) successfully on my Windows 10 PC (v1606+). After doing the same at work (Windows 7 64 bit), I could run OpenFOAM at first, but after restarting the PC, it didn't work anymore. I found out that reinstalling the software helps as long as no one shuts down the computer. It seems as there was a problem with Docker (see screenshot attached, "docker-machine.exe unknown"). Does anyone know what to do? Thank you in advance! Best regards Thomas error.png |
|
July 12, 2016, 04:56 |
|
#2 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
I can start OpenFOAM by opening the VM and typing "docker start of_plus_1606" (no error message and "of_plus_1606" displayed in terminal). But how can I access the workingDir, tutorials and so on? There is no /opt/OpenFOAM/OpenFOAM-v1606+.
|
|
July 12, 2016, 05:28 |
|
#3 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
It start container : docker start of_plus_1606
it then open the container i.e shell to work : docker attach of_plus_1606 I will suggest following procedures i) click on docker-terminal and then type command docker start of_plus_1606 and then docker attach of_plus_1606 .. ii) Then you will be inside the container with openfoam environment and then go inside workingDir which will be C:/Users/Thomas (assuming Thomas username there) You can then see openfoam installation inside /opt/OpenFOAM/ Since you were facing strange issue , It will be good idea to send the to opencfd at this email id docker@opencfd.co.uk. |
|
July 12, 2016, 05:33 |
|
#4 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Also relating to first message , can you elaborate more .The message you have shown in snapshot , how you get it i.e by clicking OpenFOAM_Start .
|
|
July 12, 2016, 06:40 |
|
#5 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
Thank you very much! The "docker attach of_plus_1606" command was exactly what I was looking for. I can now work using the terminal in Oracle VM VirtualBox. I will also send an email to opencfd to report this issue.
Clicking on OpenFOAM_Start (link on my desktop) opens and quickly closes a window. By clicking on start_OF_ascii.bat (located on C:\Program Files (x86)\ESI\OpenFOAM\1606\Windows\Scripts) I can see the error message. |
|
July 12, 2016, 07:10 |
|
#6 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Hi ..Ok
Try following it will help i) Right click over VirtualBox both as admin and normal user and then stop the default vm ii.e right click ovr default and then stop it ii) Now you click on OpenFOAM_start and it should work . Let me know if this resolve the issue |
|
July 12, 2016, 08:42 |
|
#7 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
The default VM is neither running with or without admin rights and still clicking on OpenFOAM_Start does not work. It is only possible to start the default VM by opening the Oracle software and work inside this terminal.
|
|
July 12, 2016, 09:44 |
|
#8 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
That's strange. You are using window10 ? Click on the docker terminal tool box shortcut from Desktop
and type "docker ps -a" from its terminal . See whether it output the name of container or gives some error |
|
July 12, 2016, 11:30 |
|
#9 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
I am currently using Windows 7 (Windows 10 was okay). When I open the Docker Quickstart Terminal, it starts the default VM. Typing "docker ps -a" does not give any output, because docker.exe is unknown.
|
|
July 12, 2016, 12:14 |
|
#10 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Ok Then in your environment variable you need to set path of docker toolbox . In general it added docker toolbox in path environment variable. i.e to C:\ProgramFiles\DockerToolbox
This should fix the issue |
|
July 12, 2016, 13:25 |
|
#11 | |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
Quote:
Hi Tom, I face the same issues you've got. I followed the procedures in Openfoam official website (www.openfoam.com) step by step. However, when I try to start working, it does not work at all. I should mention that there is also no /opt directory and so "tutorial" folder. I would appreciate you to give me some insights how to figure out the problem, if you already did.
__________________
Regard yours Last edited by A CFD free user; July 12, 2016 at 14:31. |
||
July 12, 2016, 17:19 |
|
#12 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Hi
Tutorial can only be seen via terminal since they are located inside the docker image . I have posted some question for problem faced by you in other location. |
|
July 13, 2016, 03:09 |
|
#13 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
Just open Oracle VM Virtual Box and start "default". In the terminal type "docker start of_plus_1606" and then "docker attach of_plus_1606". You should now be able to access all tutorials and also find your workingDir.
To copy a tutorial and test the case: Code:
cd workingDir cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity . cd cavity/cavity blockMesh icoFoam The environment variable for "DOCKER_TOOLBOX_INSTALL_PATH" was set correctly to "C:\Program Files\Docker Toolbox". Still it does not work the normal way. I have no idea why. At the moment I also have admin rights, but it does not make any difference if I am trying to start it as normal user or admin. |
|
July 13, 2016, 03:39 |
|
#14 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Hi . Also in can you see that PATH variable has also dockertool box path in it
|
|
July 13, 2016, 03:58 |
|
#15 | |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
Quote:
Hi Tom, Thank you very much again for the help. I went through exactly as you mentioned. However, again I received an error which a snapshot of it has been attached here. By the way, it is not facile working with VM-how can I for example, use scroll bar? I have not had any experience using OVM. Thanks Abouzar
__________________
Regard yours |
||
July 13, 2016, 15:49 |
|
#16 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
Hi Abouzar
I think you did not enter the cavity folder. It seems to me as you tried to run icoFoam in your workingDir. This is not about your installation, it's about OpneFOAM in general. It works exactly the same way as usual and you have to enter the case folder first. I think "C:\Program Files\Docker Toolbox" might be missing in the PATH variable. On my Windows 10 PC I can see it. I will add it on my Windows 7 PC tomorrow and we will see if it works. Best regards Thomas |
|
July 14, 2016, 03:15 |
|
#17 |
New Member
Thomas K.
Join Date: Jan 2011
Posts: 15
Rep Power: 15 |
Yes, "C:\Program Files\Docker Toolbox" was missing in PATH. Now it works!
How to set the path and environment variables in Windows: http://www.computerhope.com/issues/ch000549.htm |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 | titanium | OpenFOAM Installation | 14 | February 20, 2020 12:46 |
[Discussion] Restructuring the Installation page at openfoamwiki.net | wyldckat | OpenFOAM Installation | 16 | November 2, 2013 12:43 |
OpenFoam 2.0.0 installation | Jan_Peters | OpenFOAM Installation | 86 | April 27, 2012 06:32 |
OpenFOAM 1.7.1 installation problem on Fedora 14 | armonica | OpenFOAM Installation | 16 | March 31, 2011 14:16 |
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 | superfxfund | OpenFOAM Installation | 3 | November 11, 2010 03:15 |