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

stl and snappyHexMesh dimensions mismatch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 6, 2009, 04:00
Default stl and snappyHexMesh dimensions mismatch
  #1
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 271
Rep Power: 7
romant is on a distinguished road
Hej,

I have a problem with the stl fileformat and the snappyHexMesh tool. The dimensions in the stl file format are as always given in mm, because all 3D cad programs (SolidEdge V20 in my case) export the original ISO dimensions. The problem now is that snappyHexMesh uses m as input, is there any way to define a scaling factor for snappyHexMesh?
romant is offline   Reply With Quote

Old   August 6, 2009, 05:26
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Xabi is on a distinguished road
Hi Roman,

You can use the following command:

transformPoints -scale '(1e-3 1e-3 1e-3)'

I hope it works.
Best regards,

Xabi
Xabi is offline   Reply With Quote

Old   August 6, 2009, 06:23
Default
  #3
Member
 
Johan Spång
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 35
Rep Power: 6
josp is on a distinguished road
Or you can scale the stl files with surfaceConvert when you clean them

surfaceConvert in.stl out.stl -clean -scale 0.001
josp is offline   Reply With Quote

Old   August 6, 2009, 07:03
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 271
Rep Power: 7
romant is on a distinguished road
Quote:
Originally Posted by Xabi View Post
You can use the following command:

transformPoints -scale '(1e-3 1e-3 1e-3)'
Yeah I was looking at that, and it will work after meshing with the same order of magnitude of the numbers and then converting the mesh.

I will try it as soon as I have my model ready. Thank you

Worked perfectly. Thanks again

Last edited by romant; August 10, 2009 at 03:50.
romant is offline   Reply With Quote

Reply

Tags
dimension, snappyhexmesh, stl, units

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
SnappyHexMesh meshes inside and outside of an STL geometry villier OpenFOAM Mesh Utilities 17 June 15, 2010 19:51
How to make boundary patches in STL file nzy102 OpenFOAM Mesh Utilities 2 August 29, 2008 13:53
SnappyHexMesh not generate mesh first time mavimo OpenFOAM Mesh Utilities 4 August 26, 2008 07:08
SnappyHexMesh and planar STL surfaces hannes OpenFOAM Bugs 1 August 1, 2008 08:47
SnappyHexMesh STL patch naming gregorv OpenFOAM Mesh Utilities 1 July 23, 2008 07:05


All times are GMT -4. The time now is 03:26.