


{"id":290429,"date":"2023-06-26T18:40:38","date_gmt":"2023-06-26T18:40:38","guid":{"rendered":"\/forum\/forums\/topic\/define-dpm-property\/"},"modified":"2023-06-26T18:40:38","modified_gmt":"2023-06-26T18:40:38","slug":"define-dpm-property","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/define-dpm-property\/","title":{"rendered":"DEFINE DPM PROPERTY"},"content":{"rendered":"<p>Hi,&nbsp;<\/p>\n<p>I want to use DPM_<tt>DEFINE_PROPERTY<\/tt> to specify a custom particle density, Here is my UDF :<\/p>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<div>&nbsp;<\/div>\n<div>DEFINE_DPM_PROPERTY(droplet_density,c,t,p)<\/div>\n<div>{<\/div>\n<div>&nbsp; real rho= P_RHO(p);<\/div>\n<div>&nbsp; real Tp = P_T(p);<\/div>\n<div>&nbsp;&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; &nbsp;rho = 508 + 967.57693 * pow((1-(Tp\/374.15)),0.33);<\/div>\n<div>&nbsp;&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp; return rho;<\/div>\n<div>}<\/div>\n<div>&nbsp;<\/div>\n<div>The error after interpreting: &nbsp;error: macro &#8220;DEFINE_DPM_PROPERTY&#8221; requires 5 arguments, but only 4 are given.<\/div>\n<div>&nbsp;<\/div>\n<div>what is the fifth argument?&nbsp;<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-290429","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["253137","199"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["288"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["290429"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","253137"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["290511"],"_bbp_last_active_id":["290511"],"_bbp_last_active_time":["2023-06-27 08:10:54"]},"test":"mjahedlakeheadu-ca"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/290429","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\/290429\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=290429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}