|
[Sponsors] |
November 18, 2009, 09:02 |
Dimensionsproblems SLT-file and blockMesh
|
#1 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
Hi, I'm a little bit confused about this problem:
When I import a SLT-file (for example created by ProE) into paraView and additionally a blockMesh. The dimension of the STL-file is significantly greater than the blockMesh. The size of the CAD-solid is about 40x40x40mm in ProE, the blockMesh is defined as about (0.1 0.4 0.6) and so on but converted in meter 1. So actually it the slt-solid should be fit into the blockMesh-box but it doesnt. To get the solid into the box I ve to increase the boxsize extrem: Code:
convertToMeters 1; vertices ( (-50 0 -40) ( 50 0 -40) ( 50 40 -40) (-50 40 -40) (-50 0 40) ( 50 0 40) ( 50 40 40) (-50 40 40) ); Same problem occurse if i create with snappyhexmesh the new mesh of blockmesh and the stl-file. I ve no clue. |
|
November 18, 2009, 09:16 |
|
#2 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
millimeters?
I dont know what ProE does, but I use ANSA to deal with STL's and the default setting in ANSA is to use mm instead of meters. So you can either make sure you export the stl in meters, or create your 50 m blockMesh and once you are happy with your mesh, you do a transformPoints -scale '(0.001 0.001 0.001)' to transform it from mm to m. |
|
November 18, 2009, 10:41 |
|
#3 |
Member
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17 |
thank you niklas for the transform-command, I'm going to analyse further the ProE-problem.
|
|
November 19, 2009, 04:00 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
There are a number of surface mesh utilities with OpenFOAM. You can use 'surfaceCheck' to check your STL file and it also outputs the bounding box (in meters). If you find that it is in millimeters, you can rescale it to meters with 'surfaceConvert -scale 0.001'. If you also need to move your surface about, the 'surfaceMeshConvert' utility allows rescaling (on input or output) as well as coordinate system transformations. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Pi symbol in blockMesh file | maka | OpenFOAM Meshing & Mesh Conversion | 15 | December 18, 2010 08:45 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
blockMesh: block with 6 vertexes | dani | OpenFOAM | 3 | June 25, 2009 14:13 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |