CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing Format & General Technical

Convert mesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2009, 20:00
Default Convert mesh
  #1
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Hello everyone,

I am a new user in OpenFoam and Salome and I'm having some problems. I'm not so sure, but I think that the unit of length in OpenFoam is meter while in Salome is milimeter (if someone could confirm this to me I'd be grateful).
So I'd like to know if when I use the command "ideasUnvToFoam" to convert the mesh if it's still necessary after this to use the command " transformPoints . . -scale '(0.001 0.001 0.001)'" to convert the units of the Salome to the units of OpenFoam.

Grateful for the help

Ulisses
ulisses is offline   Reply With Quote

Old   March 17, 2009, 01:00
Default check using paraview
  #2
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 8
prapanj is on a distinguished road
Hi ,

Open you files with paraview, in the properties section you can see the X, Y and Z bounds of the geometry. Check if the size has changed after you used the converter. I haven't used Salome, but an intuitively I feel that the converter wouldn't change the units of measure.

Hope this helps

Prapanj
prapanj is offline   Reply With Quote

Old   March 17, 2009, 05:07
Default
  #3
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
The ideasUnvToFoam actually reads the scale factor from the unv file so if Salome writes it it should work. Check the output of the converter for

Unit factors:
Length scale : dddd
mattijs is offline   Reply With Quote

Old   March 17, 2009, 16:28
Default
  #4
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Quote:
Originally Posted by mattijs View Post
The ideasUnvToFoam actually reads the scale factor from the unv file so if Salome writes it it should work. Check the output of the converter for

Unit factors:
Length scale : dddd

But how can I do it? What command control should I use?



Thanks for help.
ulisses is offline   Reply With Quote

Old   March 17, 2009, 21:46
Default
  #5
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 249
Rep Power: 9
Ahmed is on a distinguished road
salome does not use units, the length scale is extracted from the physical properties assigned to the geometry by the solver used, so as long as you use a consistent system of units for the properties you do not have to worry about the length unit.
Bear in mind that Salome is designed to mainly provide pre and post processing for code aster and code saturne. So I am curious to know the results of what you are doing, say, I am trying to use Salome to be the front end for OpenFoam.
Good luck and keep us informed
Ahmed is offline   Reply With Quote

Old   March 18, 2009, 13:58
Default
  #6
New Member
 
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 8
ulisses is on a distinguished road
Quote:
Originally Posted by Ahmed View Post
salome does not use units, the length scale is extracted from the physical properties assigned to the geometry by the solver used, so as long as you use a consistent system of units for the properties you do not have to worry about the length unit.
Bear in mind that Salome is designed to mainly provide pre and post processing for code aster and code saturne. So I am curious to know the results of what you are doing, say, I am trying to use Salome to be the front end for OpenFoam.
Good luck and keep us informed
Hi Ahmed,
I verified what you said about the units in Salome using the tip that prapanj posted.
I am using Salome to generate a geometry and a mesh of a gate valve. I learned how to generate a mesh in the Salome and export it to OpenFoam in this site:
http://www.caelinux.org/wiki/index.php/Doc:CAETutorials
But the command in OpenFoam-1.4.1 "ideasUnvToFoam" that is used to import a mesh has a bug. You'll find the correction in:
IdeasUnvToFoam Bug amp Fix
So far I got good results with the Salome and OpenFoam.

Thanks for the answer.
ulisses is offline   Reply With Quote

Old   March 18, 2009, 20:10
Thumbs up
  #7
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 249
Rep Power: 9
Ahmed is on a distinguished road
Thanks for the information. Yes, the caelinux.org/com is the main source of free tutorials about Salome/aster/saturn
Good Luck
Ahmed 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
How to convert OF141 mesh to OF13 mesh hsieh OpenFOAM Meshing & Mesh Conversion 3 June 22, 2009 09:31
How to convert a hex mesh in blockMeshDict to a tet mesh henning OpenFOAM Running, Solving & CFD 1 October 14, 2008 07:02
export or convert gambit mesh to CGNS zaidun FLUENT 6 April 20, 2006 04:48
How can i convert the mesh from CFD to CFX Stephen CFX 2 January 11, 2006 05:59
How to convert STAR mesh into FLUENT mesh ? Jihwan CD-adapco 8 November 10, 2004 05:11


All times are GMT -4. The time now is 17:44.