


{"id":398407,"date":"2024-12-24T07:40:58","date_gmt":"2024-12-24T07:40:58","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/"},"modified":"2024-12-24T07:40:58","modified_gmt":"2024-12-24T07:40:58","slug":"trial-start-of-udf-for-getting-yplus-at-all-cells","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/","title":{"rendered":"Trial start of UDF for getting yplus at all cells"},"content":{"rendered":"<p>&lt;div&gt;#include &#8220;udf.h&#8221;&lt;\/div&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;\/p&gt;&lt;div&gt;real get_yplus(cell_t c, Thread* t, Domain* domain)&lt;\/div&gt;&lt;div&gt;{&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; \/\/ Declaration&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; real result, cell_x_value, face_x_value, shear;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; real cell_centroid[ND_ND];&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; real NV_VEC(face_centroid);&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; face_t f;&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;div&gt;&nbsp; &nbsp; shear = 10;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; C_CENTROID(cell_centroid, c, t);&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; cell_x_value = cell_centroid[0];&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;div&gt;&nbsp; &nbsp; thread_loop_f(t, domain)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; begin_f_loop(f, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((BOUNDARY_FACE_THREAD_P(t)) &amp;&amp; (THREAD_TYPE(t) == THREAD_F_WALL))&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F_CENTROID(face_centroid, f, t);&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; face_x_value = face_centroid[0];&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cell_x_value == face_x_value)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shear = 1;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; end_f_loop(f, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; }&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;div&gt;&nbsp; &nbsp; return shear;&lt;\/div&gt;&lt;div&gt;}&lt;\/div&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;\/p&gt;&lt;div&gt;DEFINE_ADJUST(yplus, domain)&lt;\/div&gt;&lt;div&gt;{&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; Thread* t;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; cell_t c;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; face_t f;&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;div&gt;&nbsp; &nbsp; \/* Fill UDS with the variable. *\/&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; thread_loop_c(t, domain)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; begin_c_loop(c, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C_UDSI(c, t, 0) = get_yplus(c, t, domain);&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; end_c_loop(c, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; }&lt;\/div&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;div&gt;&nbsp; &nbsp; thread_loop_f(t, domain)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; if (THREAD_STORAGE(t, SV_UDS_I(0)) != NULL)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin_f_loop(f, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BOUNDARY_FACE_THREAD_P(t))&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F_UDSI(f, t, 0) = 0;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; F_UDSI(f, t, 0) = ((get_yplus(F_C0(f, t), THREAD_T0(t), domain) + get_yplus(F_C1(f, t), THREAD_T1(t), domain)) \/ 2);&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end_f_loop(f, t)&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; &nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp; }&lt;\/div&gt;&lt;div&gt;}&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;This UDF returns 10 only at all cell centres that is the internal face thread loop did not matched for any cell. Can anyone point what could be the logical flaw in the get_yplus function.&lt;br&gt;This is a 2D axisymmetric pipe, with a constant heat flux at the wall.&lt;\/div&gt;<\/p>\n","protected":false},"template":"","class_list":["post-398407","topic","type-topic","status-publish","hentry","topic-tag-cfd-udf-fleunt","topic-tag-fluent","topic-tag-yplus"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"#include &quot;udf.h&quot;real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"#include &quot;udf.h&quot;real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-12-24T07:40:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-24T07:40:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"#include &quot;udf.h&quot;real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"position\":3,\"name\":\"fluent\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/#listItem\",\"name\":\"Trial start of UDF for getting yplus at all cells\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/#listItem\",\"position\":4,\"name\":\"Trial start of UDF for getting yplus at all cells\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/\",\"name\":\"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum\",\"description\":\"#include \\\"udf.h\\\"real get_yplus(cell_t c, Thread* t, Domain* domain){ \\\/\\\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/trial-start-of-udf-for-getting-yplus-at-all-cells\\\/#breadcrumblist\"},\"datePublished\":\"2024-12-24T07:40:58+00:00\",\"dateModified\":\"2024-12-24T07:40:58+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum","description":"#include \"udf.h\"real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","name":"fluent"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","position":3,"name":"fluent","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/#listItem","name":"Trial start of UDF for getting yplus at all cells"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/#listItem","position":4,"name":"Trial start of UDF for getting yplus at all cells","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","name":"fluent"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/","name":"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum","description":"#include \"udf.h\"real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/#breadcrumblist"},"datePublished":"2024-12-24T07:40:58+00:00","dateModified":"2024-12-24T07:40:58+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum","og:description":"#include &quot;udf.h&quot;real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/","article:published_time":"2024-12-24T07:40:58+00:00","article:modified_time":"2024-12-24T07:40:58+00:00","twitter:card":"summary_large_image","twitter:title":"Trial start of UDF for getting yplus at all cells | Ansys Learning Forum","twitter:description":"#include &quot;udf.h&quot;real get_yplus(cell_t c, Thread* t, Domain* domain){ \/\/ Declaration real result, cell_x_value, face_x_value, shear; real cell_centroid[ND_ND]; real NV_VEC(face_centroid); face_t f; shear = 10; C_CENTROID(cell_centroid, c, t); cell_x_value = cell_centroid[0]; thread_loop_f(t, domain) { begin_f_loop(f, t) {"},"aioseo_meta_data":{"post_id":"398407","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2025-10-19 10:39:56","updated":"2025-10-19 10:39:56","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/\" title=\"fluent\">fluent<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTrial start of UDF for getting yplus at all cells\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"fluent","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/"},{"label":"Trial start of UDF for getting yplus at all cells","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trial-start-of-udf-for-getting-yplus-at-all-cells\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["398407"],"_bbp_subscription":["29016","199"],"_bbp_author_ip":["103.21.126.84"],"_bbp_last_reply_id":["398420"],"_bbp_last_active_id":["398420"],"_bbp_last_active_time":["2024-12-24 10:14:15"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["29016","199"],"_btv_view_count":["353"],"_bbp_topic_status":["unanswered"]},"test":"thamilmaniiitb-ac-in"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/398407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/398407\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=398407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}