


{"id":302697,"date":"2023-08-22T11:13:41","date_gmt":"2023-08-22T11:13:41","guid":{"rendered":"\/forum\/forums\/topic\/udf-for-time-dependent-outlet-pressure-profile\/"},"modified":"2023-08-22T11:16:05","modified_gmt":"2023-08-22T11:16:05","slug":"udf-for-time-dependent-outlet-pressure-profile","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-time-dependent-outlet-pressure-profile\/","title":{"rendered":"UDF for time-dependent outlet pressure profile"},"content":{"rendered":"<p>Hi<\/p>\n<p>I would like to specify the outlet boundary pressure profile using a text file for each time step where each text file specifies the pressure at each cell.&nbsp;<\/p>\n<p>I have written the attached UDF but it gives the incorrect answer on initialization (though it does compile and load OK). It definitely acknowledges the values in the text file, as they change on the initialization when I change the text file. However, the values it reads are of no obvious relationship to the values in the text file (and of significantly lower magnitude). Once I run the simulation, I get a SIGSEGV mpt accept error. I think there are issues with my UDF but I&#8217;m new to them so I would appreciate any advice (I know you can&#8217;t directly edit).&nbsp;<\/p>\n<p>Thanks.&nbsp;<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/22-08-2023-1692702616-mceclip0.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/22-08-2023-1692702616-mceclip0.png\"><\/a><\/p>\n","protected":false},"template":"","class_list":["post-302697","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["269889","199"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["414"],"_edit_lock":["1692702970:199533"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["302697"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","269889"],"_bbp_voice_count":["2"],"_bbp_reply_count":["9"],"_bbp_last_reply_id":["302924"],"_bbp_last_active_id":["302924"],"_bbp_last_active_time":["2023-08-23 13:23:37"]},"test":"jspb1g21soton-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/302697","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\/302697\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=302697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}