CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Error: Cannot find file....line 0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2016, 06:24
Default Error: Cannot find file....line 0
  #1
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 9
linox is on a distinguished road
Hi there,

I am new to openFoam and will really need your help.

I am trying to run a simulation of flow in an open channel. I considered a very simple box-like structure to represent my channel.

I used the enGrid software to create the mesh and boundary conditions, including setting up the solver parameters.

Upon running the set-up in openFoam, i got the following error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/hp/OpenFOAM/hp-3.0.1/run/myTrials/box/constant/turbulenceProperties at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
------------------------------------------

My interpretation of the error is that the turbulenceProperties file is missing in the Constant folder.
But the exported set-up from enGrid contain the following files in the Constant folder: RASProperties and transportProperties, along with the polymesh folder. And uses the simpleFoam solver.

The 0 - case folder contains the following files: epsilon, k, omega, p and U

I will greatly appreciate your help in dealing with this problem.

Regards
Linox
linox is offline   Reply With Quote

Old   May 4, 2016, 04:10
Default
  #2
Member
 
mo_na's Avatar
 
Mona
Join Date: Mar 2016
Location: Berlin
Posts: 49
Rep Power: 10
mo_na is on a distinguished road
Hi linox,

I have never used enGrid but it seems like you are right and the turbulenceProperties file is missing in your constant folder.
Guessing from the files in your 0 folder you are using a k-epsilon-model?
Then your turbulenceProperties file should look something like this:
Code:
*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType  RAS;
RAS
{
RASModel        kEpsilon;

turbulence      on;

printCoeffs     on;
}

// ************************************************************************* //
Also you said, that you are simulating an open channel? Are you also simulating the free surface? Then you have some more stuff missing. For example the alpha.water file in the 0 directory. I would maybe take a look at some tutorial, maybe this:
/OpenFOAM/OpenFOAM-X.X.X/tutorials/multiphase/interFoam/ras/waterChannel>
Hope this might help you!

Mona
mo_na is offline   Reply With Quote

Old   May 4, 2016, 11:20
Default
  #3
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 9
linox is on a distinguished road
Hi Mona,

Thanks for the suggestion. You are right, I do have a lot of input files missing. I am now including the missing files with the help of the tutorials.

Will certainly consult your advice again if i get stocked

cheers!
linox
linox 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
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 8, 2019 23:50
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 19:56.