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

GmahToFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2012, 06:46
Default GmahToFoam
  #1
New Member
 
Jaydip
Join Date: Mar 2012
Posts: 3
Rep Power: 5
Jaydip is on a distinguished road
Hi all,

can anyone tell me detail procedure for converting .msh file to openFoam file. i have no idea how to convert msh file in to openFoam file. i have created .geo and .msh file but have no idea about how to convert and how to use that file.

Thanks
Jaydip
Jaydip is offline   Reply With Quote

Old   March 12, 2012, 08:44
Default
  #2
New Member
 
GregorS's Avatar
 
Gregor Seljak
Join Date: Oct 2010
Posts: 21
Rep Power: 6
GregorS is on a distinguished road
It's easy:

1.) Move to your case directory. That's where constant, system, 0 subdirectories are located.

2.) Run command gmshToFoam <path_to_your_*.msh_file>. Or you can just copy msh file to your case directory and run gmshToFoam filename.msh.

3.) At the end you need to edit the constant/polymesh/boundary file, where you have to set you patch types (e.g. wall, empty, ...) and change defaultFaces face type to empty.

Later I can post detailed description for an example case.
GregorS is offline   Reply With Quote

Old   March 13, 2012, 03:14
Default
  #3
New Member
 
Jaydip
Join Date: Mar 2012
Posts: 3
Rep Power: 5
Jaydip is on a distinguished road
hi Thank you very much....now i am able to convert .msh file to openFoam.

Thanks
Jaydip
Jaydip is offline   Reply With Quote

Old   March 13, 2012, 05:15
Question paraview not working properly
  #4
New Member
 
Jaydip
Join Date: Mar 2012
Posts: 3
Rep Power: 5
Jaydip is on a distinguished road
Hi all,

i have run the simple cavity problem with icofoam but one of my classmate has a problem with paraview.. when he enter the paraview in terminal window after run successful prerequisite command for cavity problem and when open the paraview interface he is not able to find that cavity.OpenFOAM file. can anyone tell me what's the problem? or he had made any mistakes in installation of paraview. he is using openfoam2.1.0 and paraview 3.12.0.

Thanks
Jaydip
Jaydip is offline   Reply With Quote

Old   March 15, 2012, 05:36
Default
  #5
New Member
 
shyam prasad
Join Date: Mar 2009
Posts: 25
Rep Power: 8
shyam is on a distinguished road
just type paraFoam or issue the command touch finename.Foam
shyam 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



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