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

[CAD formats] change dimensions and Position in .stl file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2014, 15:59
Default change dimensions and Position in .stl file
  #1
Member
 
sajad
Join Date: Aug 2013
Posts: 71
Rep Power: 13
seju is on a distinguished road
dear foamer
I have two stl file. and I wanna put one stl into other stl file but when I see two stl file in paraview two stl file changed position.
you can see two stl file in attached.
2-and also I draw stl file with SolidWorks
I draw those file in mm scale and now in paraview they are in m.
I wanna mesh those file with snappy. but I cant do that. please help me
best regard
Sajad
Attached Files
File Type: zip stlFile1.zip (84.4 KB, 7 views)
File Type: zip stlFile2.zip (57.3 KB, 0 views)
seju is offline   Reply With Quote

Old   April 12, 2014, 01:01
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

You can use the surfaceTransformPoints utility included in OpenFOAM.

Sample usage(To convert mm to m):
surfaceTransformPoints input_file.stl output_file.stl -scale "(0.001 0.001 0.001)"

Hope this helps,
Fumiya
ddcampayo likes this.
__________________
[Personal]
fumiya is offline   Reply With Quote

Reply


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
[mesh manipulation] EngineMesh utilitities greg_karp OpenFOAM Meshing & Mesh Conversion 15 March 18, 2017 21:47


All times are GMT -4. The time now is 18:56.