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

Unit conversion in Snappy

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2009, 09:02
Default Could someone suggest how to c
  #1
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 8
prapanj is on a distinguished road
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
prapanj is offline   Reply With Quote

Old   March 12, 2009, 09:18
Default prapanj, after finishing sn
  #2
Member
 
lord_kossity's Avatar
 
Andreas Dietz
Join Date: Mar 2009
Location: Munich
Posts: 79
Rep Power: 8
lord_kossity is on a distinguished road
prapanj,

after finishing snappyHexMesh, use the utility
transformPoints -scale '(scaleFactor*x scaleFactor*y scaleFactor*z)'
lord_kossity is offline   Reply With Quote

Old   March 12, 2009, 09:26
Default hi, the convertToMeters won
  #3
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 8
wolle1982 is on a distinguished road
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.
wolle1982 is offline   Reply With Quote

Old   March 12, 2009, 23:09
Default Thank you. I appreciate it.
  #4
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 8
prapanj is on a distinguished road
Thank you. I appreciate it.
prapanj is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Snappy snap controls and featureEdgeMesh podallaire OpenFOAM Bugs 9 August 31, 2011 17:42
A simple question about snappy prapanj OpenFOAM Meshing & Mesh Conversion 6 May 6, 2009 10:18
unit conversion Topu Phoenics 2 July 19, 2007 10:11
Unit conversion from 3-d to 2-d Raj Main CFD Forum 6 January 24, 2005 05:56
Unit Conversion Problem lambuhere CFX 0 August 20, 2004 04:49


All times are GMT -4. The time now is 17:00.