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

[snappyHexMesh] Unit conversion in Snappy

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2009, 08:02
Default Unit conversion in Snappy
  #1
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
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, 08:18
Default prapanj, after finishing sn
  #2
Member
 
lord_kossity's Avatar
 
Andreas Dietz
Join Date: Mar 2009
Location: Munich
Posts: 79
Rep Power: 17
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, 08:26
Default hi, the convertToMeters won
  #3
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
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, 22:09
Default Thank you. I appreciate it.
  #4
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
prapanj is on a distinguished road
Thank you. I appreciate it.
prapanj is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF unit conversion yeongjia Fluent UDF and Scheme Programming 3 November 5, 2019 05:22
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[CFX-Post] Unit Conversion in Expression marcel_jay CFX 4 August 4, 2014 11:17
unit conversion of pre-exponential factor A of chemkin mechanism in Fluent newbie FLUENT 5 November 14, 2010 05:44
unit conversion Topu Phoenics 2 July 19, 2007 10:11


All times are GMT -4. The time now is 06:21.