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

[CAD formats] stl mesh import

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2019, 06:36
Question stl mesh import
  #1
New Member
 
Julian
Join Date: Jan 2019
Posts: 2
Rep Power: 0
432Hz is on a distinguished road
Hi all,

I want to simulate the impact of a new construction in a canal river (two concrete piles of a new hydroelectricplant).

As I am very newbie to this, i've designed a simple 2d geometry with the banks of the canal and a constant height. See png file attached. I want to use the incompressible solver with a simple boundary conditions (constant velocity at the inlet).

i want to import my mesh in OpenFoam. I have both .stl and .obj format, exported from Freecad.

I dont know really how to import my file. I have tried this :
- convert obj file to vtk file with SurfaceConvert
- import with vtkUnstructuredToFoam file.vtk

in the polymesh folder I have only points. The faces, boundary and other files are void. If I do a surfaceCheck it says :

Quote:
Statistics:
Triangles : 372
Vertices : 184
Bounding Box : (5.01968e+008 1.14846e+008 0) (5.02106e+008 1.14943e+008 1000)
What am I missing ?

Thanks for any advice
Attached Images
File Type: png mesh.PNG (46.8 KB, 17 views)
432Hz is offline   Reply With Quote

Old   February 22, 2019, 13:45
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
Hi 432Hz,

you can't use the STL/OBJ file directly, you have to create a proper mesh with something like snappyHexMesh (and blockMesh). Use your favorite search engine and you'll find a lot of information and tutorials.

Kind regards,
Krapf
432Hz likes this.
Krapf is offline   Reply With Quote

Old   March 12, 2019, 09:14
Default
  #3
New Member
 
Julian
Join Date: Jan 2019
Posts: 2
Rep Power: 0
432Hz is on a distinguished road
Thx for your response.

So Im resolved to learn it the hard way as you guys all did

Last edited by 432Hz; March 15, 2019 at 04:49.
432Hz is offline   Reply With Quote

Reply

Tags
mesh import geometry obj, mesh import geometry stl


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
Unable to import mesh - identify problematic face TWA CFX 9 May 7, 2014 03:51
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
mesh missing after import in fluent morteza08 FLUENT 0 July 23, 2010 03:22


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