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

[OpenFOAM.com] Can't find files on Windows

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Evren Linda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2019, 14:14
Default Can't find files on Windows
  #1
New Member
 
Deutschland
Join Date: Jul 2019
Posts: 4
Rep Power: 2
abrueck109 is on a distinguished road
Hi ,

I just started using OpenFoam last week for my bachelor thesis and I have a big problem with the installation. I'm not really experienced in installing such software, it's more or less the first time and I hope you can help me, I'm an absolute beginner.

My computer runs on Windows 7 and I followed the installation instructions "Windows binary".

My problem is, that i can't find the files on windows, they should be somewhere "home/users/...", but there is nothing, I think it didn't work to copy from the docker, but I don't know how to fix it

What I did (execute as admin) :
1) Installation
2) Start "OF-Env_Create" which was succesful
3) Start "OpenFOAM_Start" :
- created a workingDir (which is empty, when I try to copy the tutorial in here, there is an error "cp: cannot create directory`./tutorials' :Permission denied"
- cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity

this was kind of succesfull, i could execute blockMesh, but when I tried to visualize it with "paraFoam" (Paraview is installed, do I have to change some settings?), it's not working

I googled and tried a lot, watched YT-videos, but it does not help and it's just so frustrating

Hope you can help me to fix my problem. Thanks a lot in advance
abrueck109 is offline   Reply With Quote

Old   July 25, 2019, 19:57
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which specific download/installation instructions did you follow?
  2. Which specific features do you need from OpenFOAM?
__________________
wyldckat is offline   Reply With Quote

Old   July 27, 2019, 06:11
Default
  #3
New Member
 
Deutschland
Join Date: Jul 2019
Posts: 4
Rep Power: 2
abrueck109 is on a distinguished road
I followed the instructions in the Readme :

https://www.openfoam.com/download/tx...adme_v1906.txt

I want to use OpenFoam for a Multiphase Flow:

https://www.openfoam.com/documentati...p#x14-680004.1

Is the installation for Windows 10 less complicated? Maybe I could have a friend's laptop..

And have you heard of butterfly (for GUI)? if yes, do you know if it's working for a multiphase flow?

Thank you!

----


Maybe I found the issue. I took a screenshot from the Virtual Box settings and it's not like in the "OF_Windows_Guid_v1906"-pdf (see image below).
Do you have an idea how i can fix it?
Attached Images
File Type: jpg settingsVB.jpg (102.0 KB, 7 views)

Last edited by wyldckat; July 27, 2019 at 10:16. Reason: merged posts a few hours apart
abrueck109 is offline   Reply With Quote

Old   July 27, 2019, 10:27
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
If you prefer to keep using the Docker based container, please run the following commands within the OpenFOAM terminal:
Code:
echo $FOAM_RUN
mkdir -p $FOAM_RUN
cd $FOAM_RUN
pwd
touch test.txt
  1. The first command will tell you the complete path to the "run" folder that OpenFOAM has by default.
  2. The second command will create the folder(s) on that path.
  3. The third command will try to go into that folder.
  4. The next one tells us which path we are one right now.
  5. The last one tries to create an empty file named "test.txt"
Please show us what these commands give you, so that it's easier for us to help diagnose the problem.

I'm not familiar with the details of how the Docker based installation is working on OpenFOAM-v1906, but if starting the terminal it does not give any error messages, then my guess is that this should not be a problem.

That said, at the end of the README file you gave a link for, it is indicating that your Windows user name should not have spaces in it, otherwise this installation will not work properly.


Quote:
Originally Posted by abrueck109 View Post
And have you heard of butterfly (for GUI)? if yes, do you know if it's working for a multiphase flow?
If you are referring to this: https://www.ladybug.tools/butterfly.html - they don't seem to provide support setting up cases for multiphase flow.

If you are still using Windows 7, may I suggest that you try instead blueCFD-Core 2017-2? It's a port of OpenFOAM for Windows: http://bluecfd.github.io/Core/ - I'm responsible for the blueCFD-Core project and it should be a lot easier to install and use. Furthermore, it should work well with the Butterfly GUI.
wyldckat is offline   Reply With Quote

Old   July 28, 2019, 12:36
Default
  #5
New Member
 
Deutschland
Join Date: Jul 2019
Posts: 4
Rep Power: 2
abrueck109 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answers:
If you prefer to keep using the Docker based container, ...
is there an alternative instead of using the Docker based container? I just want to work with the software, for me it does not matter how..

I tried your instructions and attached the screenshot.
In my windows user name is no space, so that should be fine.

Oh I haven't heard of blueCFD-Core 2017-2. So if OpenFoam is not working, I will definately try this, thank you. Does it support multiphase flows? Unfortunately I'm not sure then if butterfly is right for me, when it does not support multiphase flows.

Thanks a lot for your help!
Attached Images
File Type: jpg install.jpg (105.0 KB, 10 views)
abrueck109 is offline   Reply With Quote

Old   July 28, 2019, 16:39
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by abrueck109 View Post
I tried your instructions and attached the screenshot.
In my windows user name is no space, so that should be fine.
OK, from the image you provided, it should be working as intended. Now try to follow the tutorial instructions: https://www.openfoam.com/documentation/tutorial-guide/

Quote:
Originally Posted by abrueck109 View Post
Oh I haven't heard of blueCFD-Core 2017-2. So if OpenFoam is not working, I will definately try this, thank you. Does it support multiphase flows?
Yes, it should support multiphase flows, since version 2017-2 provides a complete port of OpenFOAM 5 for Windows. If there are any problems with it, the blueCFD-Core has its own issue tracker for reporting problems.
  • Side note: OpenFOAM 5 is a version provided by the OpenFOAM Foundation at openfoam.org, which doesn't have as many features as the versions provided by ESI-OpenCFD at openfoam.com, namely from where you got your version from.
wyldckat is offline   Reply With Quote

Old   July 30, 2019, 06:13
Default
  #7
New Member
 
Deutschland
Join Date: Jul 2019
Posts: 4
Rep Power: 2
abrueck109 is on a distinguished road
hmm, i tried to follow the instructions, but it's the same problem: i cannot copy the files into workingDir

Really don't know, why..

----

hmmm, i checked again the folders, and after the new installation the tutorial folder is missing..

----

now, i have copied the tutorials, but i cannot copy them to workingDir, same problem

----

well, i tried to copy in "su" (root) and it seems it worked.
But when I now try to execute I got this "Fatal error".

Sorry for spamming
Attached Images
File Type: jpg workingdir.jpg (132.3 KB, 7 views)
File Type: jpg tutorials.jpg (128.7 KB, 7 views)
File Type: png 1.png (183.3 KB, 9 views)
File Type: png 2.png (171.4 KB, 7 views)

Last edited by wyldckat; August 3, 2019 at 15:20. Reason: Merged posts a few minutes apart
abrueck109 is offline   Reply With Quote

Old   August 3, 2019, 15:50
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Run these commands:
Code:
cd $FOAM_RUN
cp -r $FOAM_TUTORIALS ./
cd tutorials/incompressible/icoFoam/cavity/cavity
blockMesh
icoFoam
It should work properly, namely it should copy the tutorials folder without problems and run the "cavity" tutorial commands without problems.

From what I can figure out, the "workingDir" folder is somehow restricted from doing anything, which is why it's not working for you.
__________________
wyldckat is offline   Reply With Quote

Old   August 3, 2019, 17:05
Default
  #9
Senior Member
 
Evren Linda's Avatar
 
Evren Linda
Join Date: Mar 2018
Posts: 114
Rep Power: 3
Evren Linda is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Run these commands:
Code:
cd $FOAM_RUN
cp -r $FOAM_TUTORIALS ./
cd tutorials/incompressible/icoFoam/cavity/cavity
blockMesh
icoFoam
.
Just as a side note, I noticed that newly installed OpenFOAM has no $FOAM_RUN folder. So I have to create it (only once after installing OF) before trying to cd to it.
Code:
mkdir $FOAM_RUN
Evren Linda is offline   Reply With Quote

Old   August 3, 2019, 17:57
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Evren Linda View Post
Just as a side note, I noticed that newly installed OpenFOAM has no $FOAM_RUN folder. So I have to create it (only once after installing OF) before trying to cd to it.
Code:
mkdir $FOAM_RUN
Quick answer: I didn't mention that because in abrueck109's screenshots, the folder already existed and I had also stated that command in a previous post above...
wyldckat is offline   Reply With Quote

Old   August 3, 2019, 18:04
Default
  #11
Senior Member
 
Evren Linda's Avatar
 
Evren Linda
Join Date: Mar 2018
Posts: 114
Rep Power: 3
Evren Linda is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I didn't mention that because in abrueck109's screenshots, the folder already existed and I had also stated that command in a previous post above...
Oh sorry! , Yes I can see that in the screenshots.
wyldckat likes this.
Evren Linda is offline   Reply With Quote

Reply

Tags
installation, openfoam, windows7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[General] .dat files Windows vs Linux mjforsteruk ParaView 2 January 7, 2013 16:37
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32
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
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 21:51


All times are GMT -4. The time now is 21:26.