CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] 3.0+ on Windows ---- How do I run tutorials?

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2016, 18:39
Default 3.0+ on Windows ---- How do I run tutorials?
  #1
New Member
 
Kai
Join Date: Mar 2014
Posts: 5
Rep Power: 12
ssboss is on a distinguished road
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 is offline   Reply With Quote

Old   January 21, 2016, 06:26
Default
  #2
New Member
 
Kai
Join Date: Mar 2014
Posts: 5
Rep Power: 12
ssboss is on a distinguished road
anyone can help explain the whole structure of workingDir ?
ssboss is offline   Reply With Quote

Old   February 3, 2016, 11:42
Default Similar problem with tutorials
  #3
Member
 
Jack_Landis's Avatar
 
Join Date: Feb 2016
Posts: 32
Rep Power: 10
Jack_Landis is on a distinguished road
Hi everyone,

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

Thank you!
Jack_Landis is offline   Reply With Quote

Old   March 3, 2016, 06:55
Default openfoam3.0+ installation
  #4
New Member
 
kalyan chakravarthi
Join Date: Jul 2014
Posts: 1
Rep Power: 0
chakram is on a distinguished road
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
chakram is offline   Reply With Quote

Old   March 7, 2016, 04:41
Default
  #5
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
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
Ron71 likes this.
pgh is offline   Reply With Quote

Old   October 19, 2016, 06:31
Default
  #6
New Member
 
Joakim
Join Date: Jul 2015
Posts: 14
Rep Power: 11
joxen is on a distinguished road
Quote:
Originally Posted by pgh View Post
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.
joxen is offline   Reply With Quote

Old   October 19, 2016, 07:35
Default
  #7
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
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
pgh is offline   Reply With Quote

Old   November 5, 2016, 16:22
Default
  #8
New Member
 
Francesco Saverio Ciani
Join Date: Oct 2016
Posts: 7
Rep Power: 10
ciaci88 is on a distinguished road
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
shreeyansh likes this.
ciaci88 is offline   Reply With Quote

Old   November 6, 2016, 16:17
Default
  #9
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
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
shreeyansh and bbita like this.
pgh is offline   Reply With Quote

Old   November 6, 2016, 19:11
Default A suggestion...
  #10
Member
 
Jack_Landis's Avatar
 
Join Date: Feb 2016
Posts: 32
Rep Power: 10
Jack_Landis is on a distinguished road
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.
__________________
Omnia per ipsum facta sunt,
et sine ipso factum est nihil,
quod factum est


Jack_Landis is offline   Reply With Quote

Old   November 10, 2016, 07:37
Default
  #11
New Member
 
Derek Neilson
Join Date: Nov 2016
Posts: 1
Rep Power: 0
Derek is on a distinguished road
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.
Derek is offline   Reply With Quote

Old   July 2, 2017, 08:19
Default
  #12
New Member
 
anonymous
Join Date: Sep 2016
Posts: 5
Rep Power: 10
mech thermal is on a distinguished road
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 is offline   Reply With Quote

Old   July 2, 2017, 13:15
Default
  #13
New Member
 
anonymous
Join Date: Sep 2016
Posts: 5
Rep Power: 10
mech thermal is on a distinguished road
Quote:
Originally Posted by pgh View Post
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 ~]$
mech thermal is offline   Reply With Quote

Old   July 3, 2017, 08:30
Default
  #14
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
Follow these steps

cd workingDir
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity
blockMesh
icoFoam
mech thermal and Ron71 like this.
pgh is offline   Reply With Quote

Old   July 3, 2017, 09:28
Default
  #15
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Quote:
Originally Posted by mech thermal View Post
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 likes this.
LThomes is offline   Reply With Quote

Old   July 3, 2017, 11:39
Default
  #16
New Member
 
anonymous
Join Date: Sep 2016
Posts: 5
Rep Power: 10
mech thermal is on a distinguished road
Quote:
Originally Posted by pgh View Post
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 is offline   Reply With Quote

Old   July 3, 2017, 11:42
Default
  #17
New Member
 
anonymous
Join Date: Sep 2016
Posts: 5
Rep Power: 10
mech thermal is on a distinguished road
Quote:
Originally Posted by LThomes View Post
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 ..
mech thermal is offline   Reply With Quote

Old   September 6, 2017, 10:58
Default
  #18
Member
 
Lenzo
Join Date: Feb 2014
Posts: 33
Rep Power: 12
lenzo is on a distinguished road
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
lenzo is offline   Reply With Quote

Old   September 6, 2017, 11:28
Default
  #19
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
Hi
Which operating system are you using i.e Windows7 or Windows 10 and which OpenFOAM version are you installing . ?
pgh is offline   Reply With Quote

Old   September 7, 2017, 03:30
Default
  #20
Member
 
Lenzo
Join Date: Feb 2014
Posts: 33
Rep Power: 12
lenzo is on a distinguished road
Quote:
Originally Posted by pgh View Post
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
lenzo is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run other tutorials included in OpenFOAM? BhaluBear OpenFOAM Running, Solving & CFD 8 May 21, 2016 11:19
How to run the tutorials' problems? ranasa OpenFOAM Running, Solving & CFD 2 July 24, 2014 16:10
How to run su2 on windows and use multicore hedley SU2 1 June 24, 2014 21:44
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
Help, can't stop solver run...Windows OS ben akih CFX 2 November 13, 2006 11:05


All times are GMT -4. The time now is 12:05.