{"id":4855,"date":"2011-12-05T11:20:29","date_gmt":"2011-12-05T00:20:29","guid":{"rendered":"https:\/\/www.computationalfluiddynamics.com.au\/?p=49"},"modified":"2011-12-05T11:20:29","modified_gmt":"2011-12-05T00:20:29","slug":"global-mesh-controls","status":"publish","type":"post","link":"https:\/\/www.leapaust.com.au\/blog\/cfd\/global-mesh-controls\/","title":{"rendered":"Tips &#038; Tricks: Global Meshing Controls in ANSYS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>Welcome to the first in\u00a0LEAP&#8217;s series of CFD Tips &amp; Tricks blogs.\u00a0 The topics for this first series of blog entries will focus on the selection of efficient and appropriate meshing methods, mesh sizing and mesh controls in ANSYS Workbench Meshing.\u00a0 Meshing is one of the most important influences on CFD simulation accuracy, although it does not necessarily need to be the most time intensive.\u00a0\u00a0 In our experience, our ANSYS CFD customers become more confident and efficient with meshing as they gain a better understanding of the importance of certain mesh settings and the likely effect of these settings on final solution accuracy.<\/p>\n<p>Where to start?<br \/>\nAfter defining your project scope and the key variables of interest (either geometric and\/or boundary\/operational conditions), the first step is to prepare the geometry and create the fluid domain for the CFD simulation.\u00a0 The aim at this stage is to make sure that the geometry is as clean as possible before we create the fluid domain either in or around the body.<\/p>\n<p>&nbsp;<\/p>\n<p>Within the ANSYS geometry products there are semi-automated cleanup options that can remove holes, spikes, sliver surfaces and other CAD related features that will cause meshing issues.\u00a0 Small details such as fillets or bolt heads are often insignificant details which can be assumed to have no impact on the final solution (especially in terms of a key engineering quantity such as lift, drag, max velocity, max temperature, etc&#8230;).\u00a0 Be careful and use your engineering judgement (in collaboration with your colleagues and team members) to ensure that you do not neglect geometric features which may have an effect on the physics or critical flow features!<\/p>\n<p>&nbsp;<\/p>\n<p>To run the simulation we must take the clean geometry and discretise the fluid domain into a number of control volumes (often called cells or elements).<\/p>\n<p>&nbsp;<\/p>\n<p>Firstly, we should remember that we want to capture the geometry with\u00a0sufficient mesh resolution that we are solving for the correct shape of the fluid domain (ie. respecting the curvature of all geometry) and, secondly, we want to use sufficient mesh resolution to capture all key flow physics.\u00a0 This is especially true in regions where we know <em>upfront <\/em>that there are likely to be large gradients in key variables (for instance, nonlinear changes in the flow velocity in the boundary layer adjacent to walls; or rapid changes in pressure or temperature within a mixing zone).<\/p>\n<p>&nbsp;<\/p>\n<p>With this in mind, when first generating a mesh for a particular design, it helps to visualise and\/or draw a schematic of the problem which identifies the expected flow behaviour.\u00a0 Once you have run a simulation for a particular geometry, or a number of varying geometries, you will then start to develop an intuitive understanding of the fluid behaviour and more importantly, you will be able to recognise areas that do experience higher gradients in key flow variables.\u00a0 These may be pressure or velocity gradients, gradients of temperature or some other important scalar value.\u00a0 For more rapid variable changes, an increased number of cells (either through upfront mesh refinement, or mesh adaption) will be needed across that\u00a0region in order to properly capture the flow behaviour without smearing the result unnecessarily (with what CFD analysts term <em>discretisation errors<\/em>).<\/p>\n<p>&nbsp;<\/p>\n<p>As you can imagine, gradients are likely to be higher near smaller features, wall boundaries, and curved regions.\u00a0 ANSYS has made our life easier by integrating <em>Advanced Size Functions<\/em> <em>(ASF)<\/em> into ANSYS Meshing which can do a lot of this initial\u00a0work for us.\u00a0 These ASFs\u00a0are used to automatically refine the mesh (with no user input required) using criteria based on local Proximity (between two or more\u00a0surfaces) and Local Curvature of the original\u00a0geometry.<\/p>\n<p>&nbsp;<\/p>\n<p>In most cases, these controls automatically refine the mesh in the areas that would typically have higher gradients, so this is a really helpful tool for controlling the\u00a0meshing of the domain with little user input.\u00a0 When using this tool (which I almost always use with both <em>Proximity<\/em> and <em>Curvature<\/em> turned on),\u00a0users will\u00a0have the ability to set maximum and minimum size controls at a Global Level, as well as important criteria such as meshing growth rates.<\/p>\n<p><a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-01.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-31\" title=\"Global-Mesh-Controls-01\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-01.jpg\" alt=\"\" width=\"310\" height=\"311\" \/><\/a><\/p>\n<p align=\"center\"><em>Advanced Size Function and Global Mesh Controls<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>This forms the basis of the automated meshing in ANSYS Meshing and allows even inexperienced users to generate\u00a0a good initial mesh, especially when used in conjunction with\u00a0some additional\u00a0size controls and inflation meshing.\u00a0 The additional point\/edge\/surface or body specific controls all work with the Advanced Size Functions to allow users to create a smooth and quality mesh with defaults that are best suited to CFD solvers.<\/p>\n<p>&nbsp;<\/p>\n<p>In the following examples, you can begin to understand the differences in the meshes that result from using the Advanced Size Function.\u00a0 The first\u00a0example has purposefully deactivated the Advanced Size Function, and the second has used the Curvature control Sizing Function which has had the effect of automatic refinement in all regions of higher curvature.<\/p>\n<p><a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-02.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-32\" title=\"Global-Mesh-Controls-02\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-02.jpg\" alt=\"\" width=\"281\" height=\"228\" \/><\/a><\/p>\n<p align=\"center\"><em>No Advanced Size Function Used<\/em><\/p>\n<p>\u00a0<a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-03.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-33\" title=\"Global-Mesh-Controls-03\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-03.jpg\" alt=\"\" width=\"280\" height=\"227\" \/><\/a><\/p>\n<p align=\"center\"><em>Curvature Advanced Size Function<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>In the\u00a0third example, we can see that with only\u00a0the Proximity Control Sizing Function enabled, the mesher has sufficient refinement within\u00a0the small gap, but has failed to capture the curvature that is just under the red box.<\/p>\n<p><a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-04.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34\" title=\"Global-Mesh-Controls-04\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-04.jpg\" alt=\"\" width=\"281\" height=\"228\" \/><\/a><\/p>\n<p align=\"center\"><em>Proximity Advanced Size Function<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>By using both Proximity and Curvature by default, we have a much better mesh which adequately captures\u00a0all the\u00a0geometric features of this particular problem.\u00a0 In most cases, we would recommend this combined setting which will give you the best possible starting point and then allow you to further refine your mesh by implementing some of the local sizing controls that I\u2019ll talk about in a later blog post.<\/p>\n<p><a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-35\" title=\"Global-Mesh-Controls-05\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-05.jpg\" alt=\"\" width=\"278\" height=\"228\" \/><\/a><\/p>\n<p align=\"center\"><em>Proximity and Curvature Advanced Size Function<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>The final Advanced Size Function option is the Fixed Option, which\u00a0will apply a single mesh element size across the entire domain.\u00a0 We should note that this setting is not particularly well suited for most CFD applications, but does come in handy for some other ANSYS Multiphysics solvers.<\/p>\n<p><a href=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36\" title=\"Global-Mesh-Controls-06\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2011\/11\/Global-Mesh-Controls-06.jpg\" alt=\"\" width=\"280\" height=\"228\" \/><\/a><\/p>\n<p align=\"center\"><em>Fixed Advanced Size Function<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I hope that this overview of some of the Global Meshing Controls has been helpful, and please <a title=\"Contact Us\" href=\"https:\/\/www.computationalfluiddynamics.com.au\/?page_id=19\">contact our Support Team<\/a> if you have any further questions.\u00a0 In our next post we will look into the <a title=\"Size Controls\" href=\"https:\/\/www.computationalfluiddynamics.com.au\/?p=54\">Local Sizing Controls<\/a> that will allow us to further refine the mesh in areas of interest.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the first in\u00a0LEAP&#8217;s series of CFD Tips &amp; Tricks blogs.\u00a0 The topics for this first series of blog entries will focus on the selection of efficient and appropriate meshing methods, mesh sizing and mesh controls in ANSYS Workbench Meshing.\u00a0 Meshing is one of the most important influences on CFD simulation accuracy, although it&hellip;&nbsp;<a href=\"https:\/\/www.leapaust.com.au\/blog\/cfd\/global-mesh-controls\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Tips &#038; Tricks: Global Meshing Controls in ANSYS<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":36,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","footnotes":""},"categories":[323],"tags":[171,174,181,393,396,508],"class_list":["post-4855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cfd","tag-ansys","tag-ansys-cfd","tag-ansys-meshing","tag-cfd-meshing-methods","tag-cfd-simulation-accuracy","tag-turbulence-modelling"],"_links":{"self":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/comments?post=4855"}],"version-history":[{"count":0,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4855\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media\/36"}],"wp:attachment":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media?parent=4855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/categories?post=4855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/tags?post=4855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}