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

[OpenFOAM.com] controlDict not found after windows installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2019, 19:42
Default controlDict not found after windows installation
  #1
New Member
 
Daniel
Join Date: Apr 2018
Posts: 24
Rep Power: 8
dsaen is on a distinguished road
I'm trying to install OpenFoam on my Windows 10 computer.
I followed the installation instructions given at the OF webpage: https://www.openfoam.com/download/tx...adme_v1906.txt

The installation proceeded more or less automatic. Once intallation was complete I clicked on the OF_Create_Env shortcut in my desktop, followed by OpenFOAM_Start shorcut. That opened up a powershell window with the following:

Code:
Starting "default"...
Machine "default" is already running.
of_1906
[ofuser@default ~]$
Where I typed blockMesh. This is where I get the error:

Code:
Create time

--> FOAM FATAL ERROR:
cannot find file "/home/ofuser/system/controlDict"
I have also tried changing the current directory to /home/ofuser/workingDir, with the same results.

How con I fix this error? Where do I find such file?

Thanks
dsaen is offline   Reply With Quote

Old   August 5, 2019, 20:06
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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: Start reading and following the tutorials guide from here: https://www.openfoam.com/documentati...troduction.php
__________________
wyldckat is offline   Reply With Quote

Old   August 7, 2019, 13:22
Default
  #3
New Member
 
Daniel
Join Date: Apr 2018
Posts: 24
Rep Power: 8
dsaen is on a distinguished road
wyldckat, I read the first few pages but it does not seem to be helpful to my issue here.

The only windows related note is: When using a shared directory, e.g. between Windows and Docker, users may prefer to use a Windows-based text editor. However, care should be taken not to change the encoding of the text files to ensure that they remain readable by OpenFOAM. Good choices may be atom and PSPad — both are free and automatically keep the correct encoding.

Which I really dont understand.
dsaen is offline   Reply With Quote

Old   August 25, 2019, 09:28
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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(s)/question(s):
  1. The error message you were getting in the first post was because you were running the blockMesh command in the wrong folder. Which is why I then pointed you to the first page on the tutorials guide, which would help you get started.
  2. Question: Did you run these commands?
    Code:
    mkdir -p $FOAM_RUN
    cp -r $FOAM_TUTORIALS $FOAM_RUN
    If you did run those commands, did they give you any error messages?
  3. On the bottom of the tutorial guide I gave the link for: https://www.openfoam.com/documentati...troduction.php - there are two links:
    Quote:
    [prev] [next]
    If you continue clicking on the [next] link on the following pages, you should eventually reach the section "2.1 Lid-driven cavity flow", which give you the instructions on how to use the OpenFOAM in the first tutorial case.
  4. The note they give in subsection 1.1.1 is because your installation is working within a virtual machine container, namely inside a virtual machine.
    Therefore, files provided within the virtual machine can only be accessed via shared folder, and therefore if you access the shared files directly from Windows, you will need a text editor that does not corrupt the file structure.
    If you try to open any of OpenFOAM's files with Windows' Notepad, you should see the text all merged into a single line...
wyldckat 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
injection problem Mark New FLUENT 0 August 4, 2013 02:30
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 11:46


All times are GMT -4. The time now is 11:02.