CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] OpenFOAM cannot read the mesh .neu (GAMBIT mesh file)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2011, 15:33
Default OpenFOAM cannot read the mesh .neu (GAMBIT mesh file)
  #1
spk
Member
 
Join Date: Aug 2009
Posts: 67
Rep Power: 17
spk is on a distinguished road
Hi guys,

I use ubuntu system in order to run openFoam.
I created a 2D mesh using Gambit (orifice.neu)
I saved this file in a folder.
Using terminal i find this folder and type
gambitToFoam orifice.neu

Then terminal writes:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/spyros/OpenFOAM/spyros-2.0.1/run/system/controlDict at line 0.

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

FOAM exiting

Where is the problem?
Can you help me?

Thanks a lot,
spk
spk is offline   Reply With Quote

Old   October 4, 2011, 03:33
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Quote:
Originally Posted by spk View Post
Hi guys,

cannot find file

file: /home/spyros/OpenFOAM/spyros-2.0.1/run/system/controlDict at line 0.
You have to set up an OpenFOAM case before you can do the mesh conversion, i.e. a system folder containing a controlDict file.
zaynah04 likes this.
akidess is offline   Reply With Quote

Old   November 17, 2012, 04:38
Default
  #3
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
hi Anton,

i have looked a lot on net, but have not find any step by step method on how to create an openfoam case before doing the conversion.. i have followed some steps but all the time after i run the fluent3DMeshToFoam, i obtain that command not find..
can you please find some time and explain to me how to proceed stepwise..
i am new to openfoam..
thanks a lot..
zaynah
zaynah04 is offline   Reply With Quote

Old   November 17, 2012, 12:32
Default
  #4
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
i have followed this:

Quote:
In order to convert a mesh to OpenFOAM format it suffices to make the following steps:
  • Create an OpenFOAM directory case structure:
    • mkdir casename
    • mkdir casename/system
    • mkdir casename/constant
    • mkdir casename/constant/polyMesh
    • mkdir casename/0
  • Create the controlDict file which contains temporal evolution information (see the OpenFOAM User Guide):
    • vi casename/system/controlDict
  • Create the files for setting the solutor and other stuffs (see the OpenFOAM User Guide):
    • vi casename/system/fvSchemes
    • vi casename/system/fvSolution
  • Run the appropriate library:
    • library < caseroot > < casename > < meshfile >
      for example, if the case has been created in the current directory:
    • fluent3DMeshToFoam . casename file.msh
But each time i come to
Quote:
  • Create the controlDict file which contains temporal evolution information (see the OpenFOAM User Guide):
    • vi casename/system/controlDict


my system freeze over..;(
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 09:05
Default
  #5
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
copy a case in the tutorial folder and paste it into your /run directory.
Then adapt all files especially
/0/U
/0/p
/0/k
/0/epsilon
/constant/transportProperties
/constant/RASProperties
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 19, 2012, 09:13
Default
  #6
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
thanks Max,

it worked...

now i do not understand how to use the boundary condition in openfoam!

I had use 4m/s in fluent and k-upsilone

Also i use velocity inlet outflow and wall..

now i am lost as how to proceed..
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 09:19
Default
  #7
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
now you can import your mesh.
Once it is done, you should have in contant/polyMesh a boundary file.
In this file you will retrieve all the patches you defines in Gambit.
Then in:
/0/U
/0/p
/0/k
/0/epsilon
enter right patch names and right boundary conditions

Then don't forget that in Gambit your model is not scaled. In OF you can do it with transformPoints

Then chekMesh

Then specify turbulence models in /constant/RASProperties and viscosity in /constant/transportProperties.

Finally if you copied a tutorial for you wanted solver, you can start in serial.
hope it helped
zaynah04 likes this.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 19, 2012, 09:39
Default
  #8
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
hi
mesh was imported successfully..

i am newbie and a bit unfamiliar with all those terms..

after i change the boundary condition, what do i do in the terminal? i mean what command to use?
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 09:43
Default
  #9
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
if everything is ready, then you can simple type name of your solver
>simpleFoam
for instance
zaynah04 likes this.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 19, 2012, 10:09
Default
  #10
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
Quote:
fileName::stripInvalid() called for invalid fileName UbuntuOne
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
i get this error after type icoFoam..
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 10:12
Default
  #11
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
ok no idea about this error.
Just to be sure: again copy and paste the tutorial, and run it
is it cavity tutorial?
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 19, 2012, 10:27
Default
  #12
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
yes cavity tutorial..
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 10:29
Default
  #13
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
and?
can you run the tutorial?
>blockMesh
>icoFoam
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 19, 2012, 10:30
Default
  #14
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
yes of course..
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 10:34
Default
  #15
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
can i modify my parameters in that folder system/foamData to fluent dict?

i found that i can change directly paramters there example
Quote:
p 1;

U 2;

T 3;

h 4;

k 5;

epsilon 6;

gamma 150;
zaynah04 is offline   Reply With Quote

Old   November 19, 2012, 10:34
Default
  #16
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
ok it sounds good.
Now go to your case, and paste here what's in:
* /constant/polyMesh/boundary
*0/U
*0/p
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 26, 2012, 05:05
Default
  #17
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
hi
in the dimensions units
1 for mass
2 for length etcc...

we have all 7 parameters but in the book i found parameter -1 what does it mean? from my dimensions unit the third parameter means time...we cannt have negative time..
what does [ 0 2 -1 0 0 0 ] the -1 means?

thanks
zaynah04 is offline   Reply With Quote

Old   November 26, 2012, 05:32
Default
  #18
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
here -1 means 1/s
[ 0 2 -1 0 0 0 ] --> m**2/s
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   November 26, 2012, 05:55
Default
  #19
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
hi

You mean 2 m/s?

but in the dimension unit is a list of 7 units..i though the parameters inside the brackets corresponded with the units.
zaynah04 is offline   Reply With Quote

Old   November 26, 2012, 06:01
Default
  #20
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
[m**2/s] = [m^2/s] = [m*m/s] = square meter per second
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- 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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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