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

.msh file to foam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 6, 2012, 11:47
Default .msh file to foam
  #1
New Member
 
aban
Join Date: Apr 2012
Posts: 15
Rep Power: 4
aban is on a distinguished road
i was trying to run icofoam/elbow tutorial.
here i tried the fluentMeshToFoam command. then i get the following message
johns@ubuntu:~/OpenFOAM/johns-2.1.0/run/elbow$ fluentMeshToFoam

Usage: fluentMeshToFoam [OPTIONS] <Fluent mesh file>
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-scale <factor> geometry scaling factor - default is 1
-writeSets write cell zones and patches as sets
-writeZones write cell zones as zones
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-2.1.0 (see www.OpenFOAM.org)
Build: 2.1.0-0bc225064152


can any one help in this issue
aban is offline   Reply With Quote

Old   May 6, 2012, 11:58
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 431
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi aban;
if you have a look at the allRun script within the icoFoam folder you'll see that the command to run is:

Code:
fluentMeshToFoam elbow elbow/elbow.msh
which, in this case, was started from the icoFoam folder, so the folder just outside your case directory.
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   May 7, 2012, 00:30
Default
  #3
New Member
 
aban
Join Date: Apr 2012
Posts: 15
Rep Power: 4
aban is on a distinguished road
should i copy this allrun script to my working dir.
what command i must give in place of blockMesh, is it fluentMeshToFoam elbow elbow/elbow.msh or just fluentMeshToFoam?
aban is offline   Reply With Quote

Old   May 7, 2012, 03:32
Default
  #4
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 431
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
You don't need to copy the script.
I don't know about the blockMesh. I think you can try though…
The command is the one I posted above:


Code:
fluentMeshToFoam elbow elbow/elbow.msh
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   May 8, 2012, 08:00
Default
  #5
New Member
 
aban
Join Date: Apr 2012
Posts: 15
Rep Power: 4
aban is on a distinguished road
i have tried this, but i am getting the same error.

"johns@ubuntu:~$ cd OpenFOAM/johns-2.1.0/run/elbow
johns@ubuntu:~/OpenFOAM/johns-2.1.0/run/elbow$ fluentMeshToFoam elbow elbow/elbow.msh

Usage: fluentMeshToFoam [OPTIONS] <Fluent mesh file>
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-scale <factor> geometry scaling factor - default is 1
-writeSets write cell zones and patches as sets
-writeZones write cell zones as zones
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-2.1.0 (see www.OpenFOAM.org)
Build: 2.1.0-0bc225064152



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 1 found 2


FOAM exiting"


what did it mean by number of arguments
aban is offline   Reply With Quote

Old   May 8, 2012, 09:54
Default
  #6
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 431
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Simply run this one then:


fluentMeshToFoam elbow.msh
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   May 9, 2012, 23:47
Default
  #7
New Member
 
aban
Join Date: Apr 2012
Posts: 15
Rep Power: 4
aban is on a distinguished road
thank you
know it looks fine
aban is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 20:41
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
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 05:04.