


{"id":160894,"date":"2021-08-01T20:10:08","date_gmt":"2021-08-01T20:10:08","guid":{"rendered":"\/forum\/forums\/topic\/is-there-any-specific-procedure-to-implement-time-averaged-udf\/"},"modified":"2021-08-06T14:59:27","modified_gmt":"2021-08-06T14:59:27","slug":"is-there-any-specific-procedure-to-implement-time-averaged-udf","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/is-there-any-specific-procedure-to-implement-time-averaged-udf\/","title":{"rendered":"Is there any specific procedure to implement Time-averaged UDF?"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>I&#039;m running a 2D-axisymmetric, density-based-solver, transient, parallel-UDF simulation. While using the macro, &quot;<strong>p_mean=C_STORAGE_R(c,t,SV_P_MEAN)\/delta_t<\/strong>&quot;, is there any specific procedure to implement it? For the time-averaged macro, I have even enabled &#039;Data sampling&#039; under run calculation settings and have given a &#039;sample interval&#039; of 10. And for obtaining the delta_t value, I used &quot;<strong>delta_t=RP_Get_Real(&quot;delta-time-sampled)<\/strong>&quot;. In addition to this, I have also tried to run the simulation in serial mode. But, I get the following error;<\/p>\n<p>==============================================================================<\/p>\n<p>Node 0: Process 9808: Received signal SIGSEGV.<\/p>\n<p>==============================================================================<\/p>\n<p> The fl process could not be started.<\/p>\n<p><\/p>\n<\/p>\n<p>However, when I used the macro &#8211; C_STORAGE_R(c0,t0,SV_P), the UDF runs without any error. Can you suggest how to solve this error?<\/p>\n<p>Thanks in advance!<\/p>\n","protected":false},"template":"","class_list":["post-160894","topic","type-topic","status-closed","hentry","topic-tag-2d-axisymmetric","topic-tag-density-based-solver","topic-tag-parallel","topic-tag-transient","topic-tag-udf-fluent"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":[""],"_bbp_old_reply_author_name_id":["Anonymous"],"_bbp_old_is_reply_anonymous_id":["false"],"_btv_view_count":["1124"],"_bbp_likes_count":["0"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["160894"],"_bbp_forum_id":["27792"],"_bbp_engagement":["25","199","22555","185202"],"_bbp_voice_count":["4"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["187344"],"_bbp_last_active_id":["187344"],"_bbp_last_active_time":["2021-08-06 14:59:27"]},"test":"jjosamuel"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/160894","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\/160894\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=160894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}