CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing Format & General Technical (http://www.cfd-online.com/Forums/openfoam-meshing-technical/)
-   -   Convert mesh (http://www.cfd-online.com/Forums/openfoam-meshing-technical/62665-convert-mesh.html)

ulisses March 16, 2009 20:00

Convert mesh
 
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

prapanj March 17, 2009 01:00

check using paraview
 
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

mattijs March 17, 2009 05:07

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

ulisses March 17, 2009 16:28

Quote:

Originally Posted by mattijs (Post 209720)
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.:)

Ahmed March 17, 2009 21:46

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

ulisses March 18, 2009 13:58

Quote:

Originally Posted by Ahmed (Post 209836)
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.

Ahmed March 18, 2009 20:10

Thanks for the information. Yes, the caelinux.org/com is the main source of free tutorials about Salome/aster/saturn
Good Luck


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