CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Meshing & Mesh Conversion (
-   -   Unit conversion in Snappy (

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

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

wolle1982 March 12, 2009 09:26

hi, the convertToMeters won

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 12:51.