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 |
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 |
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 |
Quote:
But how can I do it? What command control should I use? Thanks for help.:) |
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 |
Quote:
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. |
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 05:15. |