CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Using STL Geometry

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

Like Tree2Likes
  • 1 Post By alexeym
  • 1 Post By wouter

Reply
 
LinkBack Thread Tools Display Modes
Old   February 21, 2014, 12:37
Unhappy Using STL Geometry
  #1
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 5
Rep Power: 4
vegaonline is on a distinguished road
Hello!

I have a Magnet having two coils. The magnet is surrounded by air. Hence we have four objects, namely, (1) Magnet core, (2) coil_1, (3) coil_2 and (4) air. I saved the geometry into STL files in ASCII. Then I made the attached single stl file. Also I have made one snappyHexMesh file. These two files have been attached. However, I do not understand how can I use snappyHexMesh.

It appears that I have to use blockMesh first as per OpenFOAM tutorial. It is tedious to write blockMesh entries for a complex geometry. Also if I use blockMesh then why should I use snappyHexMesh?

Is there any simple procedure to use STL file to make mesh for OpenFOAM analysis?

Thanks and Regards.
Attached Files
File Type: gz magnet.stl.gz (17.4 KB, 13 views)
File Type: gz snappyHexMeshDict.txt.gz (1.3 KB, 6 views)
vegaonline is offline   Reply With Quote

Old   February 22, 2014, 17:13
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 144
Rep Power: 9
wouter is on a distinguished road
Hello vegaonline,
I had the same trouble with shm but with Helix-OS this is easy.

Hope this helps
Wouter
wouter is offline   Reply With Quote

Old   February 24, 2014, 12:59
Default
  #3
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 5
Rep Power: 4
vegaonline is on a distinguished road
Quote:
Originally Posted by wouter View Post
Hello vegaonline,
I had the same trouble with shm but with Helix-OS this is easy.

Hope this helps
Wouter

I am sorry, I could not understand how meshing application could be solved with changing an OS. SnappyHexMesh is part of OpenFOAM which I am running in OpenSUSE 13.1. I want to mesh attached STL geometry. Can you kindly illustrate?
Thanks
vegaonline is offline   Reply With Quote

Old   February 24, 2014, 16:14
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,409
Rep Power: 24
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

1. You need to create only surrounding geometry with blockMesh. It can be just a cuboid where all your STL surfaces reside. See $FOAM_TUTORIALS/mesh/snappyHexMesh/flange for example, initial mesh created with blockMesh is rather simple.

2. I wasn't able to view your STL file maybe because you've got several solids in one file. Save every solid in separate file and use $FOAM_TUTORIALS/mesh/snappyHexMesh/snappyMultiRegionHeater as a base for your snappyHexMeshDict.
vegaonline likes this.
alexeym is offline   Reply With Quote

Old   February 24, 2014, 16:18
Default
  #5
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 144
Rep Power: 9
wouter is on a distinguished road
hello vegaonline,

Helyx-OS is the free version of Helyx which is a GUI for OpenFoam. But I use it mainly as an GUI for Hsm.
In the forum there is a thread for helyx(-OS)

Hope this helps
Wouter
vegaonline likes this.
wouter is offline   Reply With Quote

Old   February 25, 2014, 10:43
Default
  #6
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 5
Rep Power: 4
vegaonline is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

1. You need to create only surrounding geometry with blockMesh. It can be just a cuboid where all your STL surfaces reside. See $FOAM_TUTORIALS/mesh/snappyHexMesh/flange for example, initial mesh created with blockMesh is rather simple.

2. I wasn't able to view your STL file maybe because you've got several solids in one file. Save every solid in separate file and use $FOAM_TUTORIALS/mesh/snappyHexMesh/snappyMultiRegionHeater as a base for your snappyHexMeshDict.

Thanks for the advice. I could see my files in NETGEN. I saw some problems in Salome. I saved assembly geometry in ASCII stl files where each solids were saved in individual files. I thought to make them a single file by concatenating.
Attached Files
File Type: gz geometry_stl_files.tar.gz (18.2 KB, 7 views)
vegaonline is offline   Reply With Quote

Reply

Tags
blockmesh, geometry, snappyhexmesh, stl file

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
External mesh crawls into car model. Holes in STL model? MadsR OpenFOAM Native Meshers: snappyHexMesh and Others 8 October 26, 2013 10:21
[ICEM] STL Geometry in ICEM asal ANSYS Meshing & Geometry 3 February 5, 2013 10:44
Question about Geometry vs. Meshes EphemeralMemory ANSYS Meshing & Geometry 1 October 12, 2011 13:44
[ANSYS Meshing] need to convert a cell based geometry into STL or CGNS kamran_kibria ANSYS Meshing & Geometry 0 September 15, 2011 05:14
Problem meshing an imported geometry Alicia Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 March 30, 2010 04:53


All times are GMT -4. The time now is 13:18.