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

[snappyHexMesh] SnappyHexMesh for airfoil 2D case: High computational effort for low quality mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2014, 11:25
Default
  #21
New Member
 
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 11
blackgalaxy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Srsh,


AFAIK, there is no easy way to do this. You'll have to create your own utility to perform this.
There is a utility named plot3dToFoam, which does the opposite of what you're looking for. The source code is located at the path indicated by the following command:
Code:
echo $FOAM_UTILITIES/mesh/conversion/plot3dToFoam
Another utility that you can use as a basis for creating such a new conversion utility is star4ToFoam, whose source code is in the same parent folder as "plot3dToFoam".

Good luck! Best regards,
Bruno
Hello Bruno,

Thank you for your helpful comment. Actually I used writeMeshObj command to transfer mesh to .obj file and after that I wrote a code to change it to plot3d file.

Right now I am dealing with reducing the amount of refinement levels in some part of mesh. I used 4 level of refinement to have fine grids but in some parts having fine mesh is redundant and computationally is time consuming. Do you think SHM has the option to reduce some level of refinement for cut cells? I upload a picture to show what exactly I mean. Thank you so much.

Best regards,
Srsh
Attached Images
File Type: jpg RefinementM.jpg (29.8 KB, 85 views)
blackgalaxy is offline   Reply With Quote

Old   December 8, 2014, 14:09
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Srsh,

Sorry, my to-do list is getting longer and I'm not finding the time needed to answer everyone

Could you provide a schematic of the mesh you're trying to achieve?

Because from that image, my best guess is that you should be meshing in smaller parts and then merging+stitching the various parts together.

To try and see what I'm referring to, have a look at the images and descriptions on this subsection: http://openfoamwiki.net/index.php/Sn...sBetweenLevels

Best regards,
Bruno
blackgalaxy likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 17, 2015, 12:35
Default
  #23
New Member
 
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 11
blackgalaxy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Srsh,

Sorry, my to-do list is getting longer and I'm not finding the time needed to answer everyone

Could you provide a schematic of the mesh you're trying to achieve?

Because from that image, my best guess is that you should be meshing in smaller parts and then merging+stitching the various parts together.

To try and see what I'm referring to, have a look at the images and descriptions on this subsection: http://openfoamwiki.net/index.php/Sn...sBetweenLevels

Best regards,
Bruno
Hello Bruno,

Thank you very much for your response. Actually after generating mesh, in next level I am trying to merge blocks in regions that are not necessary and lower the computational time. I am trying to merge blocks to larger blocks in the regions that I don't care about. For example I attached two pictures which the second one is somehow a desired mesh that I am looking for.
I was wondering if SHM have this option to let me merge blocks to larger blocks after I generate initial grids?

Thank you again,
Srsh
Attached Images
File Type: jpg refinement by SHM.jpg (28.4 KB, 38 views)
File Type: jpg desired.jpg (15.5 KB, 33 views)
blackgalaxy is offline   Reply With Quote

Old   February 20, 2015, 15:17
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Srsh,

Uhm... be very careful with what kind of mesh refinement transitions you're aiming for... because you're seriously risking having something even worse than this example: http://www.cfd-online.com/Forums/ope...tml#post446350 - read post #17.

Quote:
Originally Posted by blackgalaxy View Post
I was wondering if SHM have this option to let me merge blocks to larger blocks after I generate initial grids?
AFAIK, no, it's not possible to do that. At least not in snappyHexMesh itself. You'll have to do that with mergeMesh and stitchMesh.

The best you can achieve is doing some strategic refinements by using first refineHexMesh or refineMesh and then use snappyHexMesh to remove the cells you don't need.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
meshing a 2d, snappyhexmesh 2d


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 05:38
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[ANSYS Meshing] High quality unstructured hybrid mesh around ship flinde ANSYS Meshing & Geometry 2 March 3, 2015 18:04
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 04:49
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 17:48.