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

[Technical] Convert mesh

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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: 17
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
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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: 17
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: 251
Rep Power: 18
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: 17
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:
http://www.cfd-online.com/Forums/ope...g-amp-fix.html
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: 251
Rep Power: 18
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 08:34
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
[ANSYS Meshing] Convert a Nastran mesh (.bdf) to Fluent mesh (.msh) dynlevirus ANSYS Meshing & Geometry 1 August 27, 2012 05:06
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03


All times are GMT -4. The time now is 07:32.