|
[Sponsors] |
December 4, 2014, 08:37 |
STL file conversion
|
#1 |
New Member
Dion
Join Date: Dec 2014
Location: Bremen, Germany
Posts: 13
Rep Power: 11 |
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 |
|
December 4, 2014, 09:11 |
|
#2 |
New Member
--
Join Date: Oct 2014
Location: Rostock
Posts: 5
Rep Power: 11 |
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 |
|
December 4, 2014, 09:56 |
|
#3 |
New Member
Dion
Join Date: Dec 2014
Location: Bremen, Germany
Posts: 13
Rep Power: 11 |
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 |
|
December 4, 2014, 11:33 |
|
#4 | |
New Member
--
Join Date: Oct 2014
Location: Rostock
Posts: 5
Rep Power: 11 |
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:
Best regards, qwert |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |