{"id":1040,"date":"2015-07-14T08:44:44","date_gmt":"2015-07-14T08:44:44","guid":{"rendered":"http:\/\/people.utm.my\/dr-sukri\/?p=1040"},"modified":"2015-07-14T08:49:58","modified_gmt":"2015-07-14T08:49:58","slug":"snappyhexmesh-how-to-get-a-smooth-mesh","status":"publish","type":"post","link":"https:\/\/people.utm.my\/dr-sukri\/2015\/07\/14\/snappyhexmesh-how-to-get-a-smooth-mesh\/","title":{"rendered":"SnappyHexMesh: How to get a smooth mesh"},"content":{"rendered":"<p>This post explains briefly how can we get a smooth mesh when using the snappyHexMesh in OpenFOAM 2.0.<\/p>\n<p>The main ingredient is the &#8216;surfaceFeatureExtract&#8217; utility.<\/p>\n<p>Here are the steps:<\/p>\n<p>1- blockMesh: the BCs can be defined here, example: inlet and outlet patches.<\/p>\n<p>2- extract the surface edge from the .stl file, example: tank.stl<br \/>\ncommand : &#8220;surfaceFeatureExtract -includedAngle 150 -writeObj constant\/triSurface\/tank.stl features&#8221;<\/p>\n<p>this utiliy will create .eMesh file in \/constant\/triSurface\/ : example tank.eMesh<\/p>\n<p>3- in the snappyHexMeshDict, edge refinement is made by referring the eMesh file name, example: tank.eMesh.<\/p>\n<p>4- run the snappyHexmesh utility.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post explains briefly how can we get a smooth mesh when using the snappyHexMesh in OpenFOAM 2.0. The main ingredient is the &#8216;surfaceFeatureExtract&#8217; utility. Here are the steps: 1- blockMesh: the BCs can be defined here, example: inlet and &hellip; <a href=\"https:\/\/people.utm.my\/dr-sukri\/2015\/07\/14\/snappyhexmesh-how-to-get-a-smooth-mesh\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":359,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[96,75],"class_list":["post-1040","post","type-post","status-publish","format-standard","hentry","category-cfd","tag-cfd","tag-openfoam"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts\/1040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/users\/359"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/comments?post=1040"}],"version-history":[{"count":3,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts\/1040\/revisions"}],"predecessor-version":[{"id":1044,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts\/1040\/revisions\/1044"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/media?parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/categories?post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/tags?post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}