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

Dimensionsproblems SLT-file and blockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2009, 09:02
Default Dimensionsproblems SLT-file and blockMesh
  #1
Member
 
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17
suitup is on a distinguished road
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)
);
That about 50m!

Same problem occurse if i create with snappyhexmesh the new mesh of blockmesh and the stl-file.

I ve no clue.
suitup is offline   Reply With Quote

Old   November 18, 2009, 09:16
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
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.
niklas is offline   Reply With Quote

Old   November 18, 2009, 10:41
Default
  #3
Member
 
Join Date: Jun 2009
Location: Germany
Posts: 38
Rep Power: 17
suitup is on a distinguished road
thank you niklas for the transform-command, I'm going to analyse further the ProE-problem.
suitup is offline   Reply With Quote

Old   November 19, 2009, 04:00
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by suitup View Post
thank you niklas for the transform-command, I'm going to analyse further the ProE-problem.
Millimeters are standard for many CAD systems (Pro-E, catia, UG, etc.) and your STL is very likely in these units.

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.
olesen 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
[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


All times are GMT -4. The time now is 04:35.