


{"id":49334,"date":"2020-10-26T12:44:51","date_gmt":"2020-10-26T12:44:51","guid":{"rendered":"\/forum\/forums\/topic\/gradients-of-calculated-cell-quantities\/"},"modified":"2020-10-26T12:44:51","modified_gmt":"2020-10-26T12:44:51","slug":"gradients-of-calculated-cell-quantities","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/gradients-of-calculated-cell-quantities\/","title":{"rendered":"Gradients of Calculated Cell Quantities"},"content":{"rendered":"<p>Hi,nI&#8217;m new to UDF&#8217;s and I need to calculate the gradient of a vector field (which is a function several flow variables) as a post-process tool by using the DEFINE_ON_DEMAND function. I managed to store x, y, z components of the vector for each cell in 3 UDM&#8217;s but I was not able compute the gradients.nI thought that I need to use C_UDSI_G(c,t) (I defined them) but\u00a0I was not able use it either. nDo I have to iterate to be able to use C_UDSI_G? Or am I missing something else? Basically what need is something like C_UDM_G.nThanks<\/p>\n","protected":false},"template":"","class_list":["post-49334","topic","type-topic","status-closed","hentry","topic-tag-gradient","topic-tag-post-processing","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["21567"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["X?;\u0002"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["389"],"_bbp_subscription":["256563"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["49334"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","182425"],"_bbp_voice_count":["3"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["131247"],"_bbp_last_active_id":["131247"],"_bbp_last_active_time":["2020-10-27 08:19:47"]},"test":"steppenwolf"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/49334","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\/49334\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=49334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}