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

[snappyHexMesh] Using STL Geometry

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By alexeym
  • 1 Post By wouter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2014, 11:37
Unhappy Using STL Geometry
  #1
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 6
Rep Power: 12
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, 19 views)
File Type: gz snappyHexMeshDict.txt.gz (1.3 KB, 16 views)
vegaonline is offline   Reply With Quote

Old   February 22, 2014, 16:13
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
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, 11:59
Default
  #3
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 6
Rep Power: 12
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, 15:14
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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 and TurbulentGuy like this.
alexeym is offline   Reply With Quote

Old   February 24, 2014, 15:18
Default
  #5
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
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, 09:43
Default
  #6
New Member
 
Abhijit
Join Date: Feb 2014
Posts: 6
Rep Power: 12
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, 16 views)
vegaonline is offline   Reply With Quote

Reply

Tags
blockmesh, geometry, snappyhexmesh, stl file


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
[snappyHexMesh] What CAD software do you use to define STL surfaces? Awak OpenFOAM Meshing & Mesh Conversion 11 November 12, 2020 11:00
How to improve triangulation in my geometry ( STL) Adam_PHD CONVERGE 2 December 28, 2017 16:32
[ICEM] Work with imported STL geometry KateEisenhower ANSYS Meshing & Geometry 2 July 9, 2015 10:46
[ICEM] STL Geometry in ICEM asal ANSYS Meshing & Geometry 3 February 5, 2013 09: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


All times are GMT -4. The time now is 16:03.