{"id":921,"date":"2013-09-30T11:12:22","date_gmt":"2013-09-30T11:12:22","guid":{"rendered":"http:\/\/people.utm.my\/dr-sukri\/?p=921"},"modified":"2013-09-30T11:13:38","modified_gmt":"2013-09-30T11:13:38","slug":"subset-a-mesh-manipulation-in-openfoam","status":"publish","type":"post","link":"https:\/\/people.utm.my\/dr-sukri\/2013\/09\/30\/subset-a-mesh-manipulation-in-openfoam\/","title":{"rendered":"subset: a mesh manipulation in OpenFOAM"},"content":{"rendered":"<p>Example: flow over a cube<\/p>\n<p>1) create a computational domain using blockMesh (Hexagonal)<\/p>\n<p>2) using toposetDict, define the geometry of the cube:<\/p>\n<p>actions<br \/>\n(<\/p>\n<p>{<br \/>\nname blockFaces;<br \/>\ntype cellSet;<br \/>\naction new;<br \/>\nsource boxToCell;<br \/>\nsourceInfo<br \/>\n{<br \/>\nbox (-2 -2 -2)(2 2 2);<br \/>\n}<br \/>\n}<\/p>\n<p>{<br \/>\nname blockFaces;<br \/>\ntype cellSet;<br \/>\naction invert;<\/p>\n<p>}<\/p>\n<p>);<\/p>\n<p>3) run &#8220;toposet&#8221; in the terminal<\/p>\n<p>4) run &#8220;subsetMesh -overwrite blockFaces -patch block&#8221; in the terminal<\/p>\n<p>5) check your mesh using paraview<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example: flow over a cube 1) create a computational domain using blockMesh (Hexagonal) 2) using toposetDict, define the geometry of the cube: actions ( { name blockFaces; type cellSet; action new; source boxToCell; sourceInfo { box (-2 -2 -2)(2 2 &hellip; <a href=\"https:\/\/people.utm.my\/dr-sukri\/2013\/09\/30\/subset-a-mesh-manipulation-in-openfoam\/\">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-921","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\/921","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=921"}],"version-history":[{"count":3,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/posts\/921\/revisions\/927"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/dr-sukri\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}