CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] 3.0+ on Windows ---- How do I run tutorials? (https://www.cfd-online.com/Forums/openfoam-installation/165439-3-0-windows-how-do-i-run-tutorials.html)

ssboss January 17, 2016 17:39

3.0+ on Windows ---- How do I run tutorials?
 
Hello all

I am a novice OpenFoam user, used it a couple of times running on linux VMs in the past and am familiar with how to navigate around files in linux environment. I recently tried to run the newly released OpenFOAM in Windows by ESI, downloaded from here:
http://www.openfoam.com/releases/install-windows.php

First of all, installation wasn't smooth but thanks to the post by pgh here:
http://www.cfd-online.com/Forums/ope...m-windows.html

I manage to install successfully. Now, my question is, I am confused with the whole workingDir scene in this version of OpenFoam. I understand it is running OF in another virtual machine which explains why I cannot navigate the files in my windows, but I cannot seem to understand how to 'copy tutorial files to workingDir', which is stated from the user guide document. Can someone please help me on getting started with running OF?

Running Windows 7 64bit, plenty of RAM and hard drive space, should not have any issues here, hardware virtualization and the powershell thing is all good, installation successful. Thank you very much.

ssboss January 21, 2016 05:26

anyone can help explain the whole structure of workingDir ?

Jack_Landis February 3, 2016 10:42

Similar problem with tutorials
 
Hi everyone,

I'm new in using OpenFoam and have a similar problem...How can I find the tutorials?

Thank you!

chakram March 3, 2016 05:55

openfoam3.0+ installation
 
I have installed openfoam 3+ , but after that i cannot able to see the tutorials in the openfiam. can u please suggest how to get those tutorials and i am basic learner

pgh March 7, 2016 03:41

Openfoam installation is in /opt/OpenFOAM

The location of tutorial can be found by running the command
echo $FOAM_TUTORIAL

You need to copy tutorial in workingDir folder .
Go inside the workingDir and then you can use following command to copy tutorial.

cp -ar $FOAM_TUTORIALS .

You can then run openfoam tutorial from terminal

joxen October 19, 2016 05:31

Quote:

Originally Posted by pgh (Post 588400)
Openfoam installation is in /opt/OpenFOAM

The location of tutorial can be found by running the command
echo $FOAM_TUTORIAL

You need to copy tutorial in workingDir folder .
Go inside the workingDir and then you can use following command to copy tutorial.

cp -ar $FOAM_TUTORIALS .

You can then run openfoam tutorial from terminal


I use Windows 7 and the release OpenFOAM.v1606. I've manage to copy the file to my workingDir by using $FOAM_TUTORIAL and I can run the tutorials but my question is how to I edit the settings of each case?
I know that the simple answer is "in a texteditor" but the problem is I can't find the files in Windows environment?. Do I need to transfer the files from Linux to Windows to be able to edit the settings?

I've checked the folder where OpenFOAM is installed at C:/ and there are no file of relevance to my problem there. The path in the Linux-environment is: /op/OpenFOAM/OpenFOAMv.1606/tutorials....
but how do I find it in Windows?

I've worked with Linux before but this is the first time I use a Virtual Machine.

pgh October 19, 2016 06:35

Hi Joxen

Note that C:\User\joxen (Assuming joxen is your username ) is mounted drive which is same as workingDir from command prompt . Any folder which is there in workingDir , will be visible inside C:\User\joxen ..


Thanks
Pawan

ciaci88 November 5, 2016 15:22

Hi,
I am using windows 10 with the release OpenFOAM.v1606, and maybe I am having the same problem.
I am trying to search the folders of the tutorials but I cannot find it in the c:/ of windows. I have tried to type this commands to see directly from openfoam which is the path:

[ofuser@default ~]$ cd $FOAM_TUTORIALS
[ofuser@default tutorials]$ pwd
/opt/OpenFOAM/OpenFOAM-v1606+/tutorials

My problem is that I cannot find this path in my computer. It is the first time that I am using this program and maybe the explanation is that I don't have to search this folder on windows but on the virtual machine. Anyone has solved the problem? thanks in advance

pgh November 6, 2016 15:17

Hi
This path "/opt/OpenFOAM/OpenFOAM-v1606+/tutorials" can only be accessed via
command line from shell of container . If you want to locate in your c drive , you need
to copy this in your c drive .
Do following from your container's bash shell
cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
It will copy the cavity tutorial inside c\user\francis . assuming francis is your
user name

Jack_Landis November 6, 2016 18:11

A suggestion...
 
Hi!

OpenFOAM has been written for Linux. I tried to use it on Windows but I had lots of problems and finally I decided to install it on Ubuntu. So my suggestion is to use it on Ubuntu, it is simplier.

Derek November 10, 2016 06:37

I was nearing the same point. I uninstalled the ESI OpenFoam package and tried the CFD Support OpenFoam package instead. It seems much easier to use, and comes with Midnight Commander which is very helpful. I tried the ESI-Docker-Oracle VM combo for two weeks, and learned ALOT, but it was just too hard to follow along and learn.

mech thermal July 2, 2017 07:19

hello sir , i installed openfoam 1612+ on windows , i am absolute beginner in openfoam when i am trying to copy tutorial by command , openfoam terminal says that cp: cannot stat `TUTORIALS': No such file or directory

also in C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts , there is of_v1612plus_centos66.tar file , it has opt/OpenFoam folder but not any folder named tutorials. i reinstall v1612+ .. three times but same problem ...

C:\WINDOWS\system32>"C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts\of_start_c ontainer.exe" -Arguments "C:\Program Files\Docker Toolbox\;C:\Program Files\Git\bin"
Starting "default"...
Machine "default" is already running.
of_plus_1612
[ofuser@default ~]$ mkdir -p $FOAM RUN
[ofuser@default ~]$ cp -r $FOAM TUTORIALS $FOAM RUN
cp: cannot stat `TUTORIALS': No such file or directory
[ofuser@default ~]$

mech thermal July 2, 2017 12:15

Quote:

Originally Posted by pgh (Post 624388)
Hi
This path "/opt/OpenFOAM/OpenFOAM-v1606+/tutorials" can only be accessed via
command line from shell of container . If you want to locate in your c drive , you need
to copy this in your c drive .
Do following from your container's bash shell
cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
It will copy the cavity tutorial inside c\user\francis . assuming francis is your
user name

hello sir , i installed openfoam 1612+ on windows , i am absolute beginner in openfoam when i am trying to copy tutorial by command , openfoam terminal says that cp: cannot stat `TUTORIALS': No such file or directory

also in C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts , there is of_v1612plus_centos66.tar file , it has opt/OpenFoam folder but not any folder named tutorials. i reinstall v1612+ .. three times but same problem ...

C:\WINDOWS\system32>"C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts\of_start_c ontainer.exe" -Arguments "C:\Program Files\Docker Toolbox\;C:\Program Files\Git\bin"
Starting "default"...
Machine "default" is already running.
of_plus_1612
[ofuser@default ~]$ mkdir -p $FOAM RUN
[ofuser@default ~]$ cp -r $FOAM TUTORIALS $FOAM RUN
cp: cannot stat `TUTORIALS': No such file or directory
[ofuser@default ~]$

pgh July 3, 2017 07:30

Follow these steps

cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity
blockMesh
icoFoam

LThomes July 3, 2017 08:28

Quote:

Originally Posted by mech thermal (Post 655554)
hello sir , i installed openfoam 1612+ on windows , i am absolute beginner in openfoam when i am trying to copy tutorial by command , openfoam terminal says that cp: cannot stat `TUTORIALS': No such file or directory

also in C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts , there is of_v1612plus_centos66.tar file , it has opt/OpenFoam folder but not any folder named tutorials. i reinstall v1612+ .. three times but same problem ...

C:\WINDOWS\system32>"C:\Program Files (x86)\ESI\OpenFOAM\1612\Windows\Scripts\of_start_c ontainer.exe" -Arguments "C:\Program Files\Docker Toolbox\;C:\Program Files\Git\bin"
Starting "default"...
Machine "default" is already running.
of_plus_1612
[ofuser@default ~]$ mkdir -p $FOAM RUN
[ofuser@default ~]$ cp -r $FOAM TUTORIALS $FOAM RUN
cp: cannot stat `TUTORIALS': No such file or directory
[ofuser@default ~]$

I think you missed the underscore in "$FOAM TUTORIALS", you have to type $FOAM_TUTORIALS and create the $FOAM_RUN directory. Linux doesn't deal very well with white spaces, so it's better not to use them.

mech thermal July 3, 2017 10:39

Quote:

Originally Posted by pgh (Post 655647)
Follow these steps

cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity
blockMesh
icoFoam

Thank you Sir.. i do it and it works now... :)

mech thermal July 3, 2017 10:42

Quote:

Originally Posted by LThomes (Post 655660)
I think you missed the underscore in "$FOAM TUTORIALS", you have to type $FOAM_TUTORIALS and create the $FOAM_RUN directory. Linux doesn't deal very well with white spaces, so it's better not to use them.

Thank you .Sir ..

lenzo September 6, 2017 09:58

I have the same problem!

I have followed the procedure explained in openfoam foundation, for windows. And I had no problem in installing it.

But, I dont' know where it is placed in windows!
I have tried to run an example (pitzDaily). Once it has concluded I run a search throughout the computer. And apparently I have found it!

it is placed in C:users\<myname>\AppData\Local\lxss\home\<myUserIn Linux>\OpenFoam\<user>-4.1\run

Thus, I went there, I found the case, with all the folders of the diferent timesteps. And inside the run I placed another case.

But, If i check it from the bash, when I try to see all cases inside run, there is only pitzDaily...


It is so frustrating! Someone could help me of how to copy cases into my workingDir?

Thank you in advance

pgh September 6, 2017 10:28

Hi
Which operating system are you using i.e Windows7 or Windows 10 and which OpenFOAM version are you installing . ?

lenzo September 7, 2017 02:30

Quote:

Originally Posted by pgh (Post 663394)
Hi
Which operating system are you using i.e Windows7 or Windows 10 and which OpenFOAM version are you installing . ?

Windows 10. And OF 4.1. The one of openfoam.org foundation, not openfoam.com


All times are GMT -4. The time now is 23:40.