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

[CAD formats] STL file conversion

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

Like Tree1Likes
  • 1 Post By qwert

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2014, 08:37
Default STL file conversion
  #1
New Member
 
Dion
Join Date: Dec 2014
Location: Bremen, Germany
Posts: 13
Rep Power: 11
dinolsky is on a distinguished road
Hello guys,

I am new to this awesome forum. Currently i am doing my masters and started with my student project in OpenFOAM. I am using snappyHexMesh for the grid generation. I have converted my CAD model into a stl file. since my CAD model deals with mm i assume that i should also convert my surface points in the stl file to meters. What i am doing is right? or Can any one comment on this please.
note: I am setting up my problems in meter.

with regards,
Dinesh
dinolsky is offline   Reply With Quote

Old   December 4, 2014, 09:11
Default
  #2
New Member
 
--
Join Date: Oct 2014
Location: Rostock
Posts: 5
Rep Power: 11
qwert is on a distinguished road
Hi Dinesh,
i guess its surfaceTransformPoints -scale you are searching for:
[CODE]
surfaceTransformPoints -scale '(x.xx y.yy z.zz)'
[CODE]
For example from mm to m the scalefactors '(x y z)' are '(0.001 0.001 0.001)'. right?
Aloha!
Good luck to your Thesis!!

qwert
qwert is offline   Reply With Quote

Old   December 4, 2014, 09:56
Default
  #3
New Member
 
Dion
Join Date: Dec 2014
Location: Bremen, Germany
Posts: 13
Rep Power: 11
dinolsky is on a distinguished road
Hi qwert,

thanks for your reply. I meant that since my stl file are in 'mm'. I should convert them to meters in order use them for meshing? What i am doing is correct?. Or should i use the original stl file with 'mm'.

with regards,
Dinesh
dinolsky is offline   Reply With Quote

Old   December 4, 2014, 11:33
Default
  #4
New Member
 
--
Join Date: Oct 2014
Location: Rostock
Posts: 5
Rep Power: 11
qwert is on a distinguished road
Hi,
maybe i didn't get the point. However, if you have a stl-File with your triangles in mm and you want that file to convert in meters, since your calculation will use a metric system, you can use the surfaceTransform: (im my opinion you always should have a metric system for your calculation, if that was the point)
1. Go in the directory where you have the original stl-file (in mm)
2. use:

Quote:
surfaceTransformPoints -scale '(x.xx y.yy z.zz)' <nameofnew.stl>
Then you will have a new .stl in meters (:

Best regards,
qwert
rezaeimahdi likes this.
qwert 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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59


All times are GMT -4. The time now is 01:11.