CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   Unit conversion in Snappy (http://www.cfd-online.com/Forums/openfoam-meshing/61591-unit-conversion-snappy.html)

prapanj March 12, 2009 09:02

Could someone suggest how to c
 
Could someone suggest how to convert units when I generate grid using snappy? Like in blockMesh, I can specify a convertToMeters value. I used that in snappyHexMesh dict- it didn't work. I have my geometry in units of feet. I want to get the grid in meters. Thanks

lord_kossity March 12, 2009 09:18

prapanj, after finishing sn
 
prapanj,

after finishing snappyHexMesh, use the utility
transformPoints -scale '(scaleFactor*x scaleFactor*y scaleFactor*z)'

wolle1982 March 12, 2009 09:26

hi, the convertToMeters won
 
hi,

the convertToMeters won't work in sHM.

create your Mesh with snappy and copy results to your calculation-case-constant folder as usual.

then use console in that case-folder with the command

transformPoints -scale "(x y z)"

where x, y and z are the multiplication factors in x, y and z direction. since you don't want to stretch the grid, it is x = y = z. what value it is to convert feet to meters ... you have to find out yourself.

remember to have your blockMesh-Grid also in feet for sHM operation. The transformPoints-command transforms the whole mesh only.

prapanj March 12, 2009 23:09

Thank you. I appreciate it.
 
Thank you. I appreciate it.


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