


{"id":37012,"date":"2019-08-07T09:52:02","date_gmt":"2019-08-07T09:52:02","guid":{"rendered":"\/forum\/forums\/topic\/udf-for-cg-motion-cannot-be-loaded\/"},"modified":"2019-08-07T09:52:02","modified_gmt":"2019-08-07T09:52:02","slug":"udf-for-cg-motion-cannot-be-loaded","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-for-cg-motion-cannot-be-loaded\/","title":{"rendered":"UDF for CG Motion cannot be loaded"},"content":{"rendered":"<p>Hello vganore,<\/p>\n<p><\/p>\n<p>I am trying to compile the udf of motion. But error pops up each time. It shows<\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\">Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).nnThe system cannot find the file specified.<\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\">nnD:Flapping Wing Simulationsmoving mesh Piezofan simulationTest1MMPiezoFan_filesdp0FFFFluentlibudfwin643ddp_hostlibudf.dll<\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\">Error Object: #f<\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">#include &#8220;udf.h&#8221;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">DEFINE_CG_MOTION (rotational_motion, dt, cg_vel, cg omega, time, dtime)<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">{<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Domain *d =Get Domain(1);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Thread *t_object = Lookup_Thread(d, 2);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real moment [ND_ND], cg[ND_ND], force [ND_ND];<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Compute_Force_And_Moment(d, t_object, cg, force, moment, TRUE)<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real moment_z= moment [3]; * To compute the moment at the beginning of the time step and feed into the equation of motion *\/<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real i1 = exp(-0.823*time);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real i2 = cos (8.19*time);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real i3 = 48870 sin(8.19*time);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real i4 = 2.893 pow(10,-<img decoding=\"async\" src=\"\/bigeyes.gif\" width=\"\" height=\"\" alt=\"8)\" title=\"8)\" class=\"bbcode_smiley\" \/>;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">real omega = -i4 * moment_z * i1 * (i2-i3);<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg_vel[0]=0.0;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg_vel [1]=0.0;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg_ve1[2]=0.0;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg omega [0]-0.0 ;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg omega (1)-0.0;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">cg omega [2]=real omega;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">}<\/span><\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\">Fluent version is 18.2 and VS 2015.<\/p>\n<p><\/p>\n<p style=\"box-sizing: border-box; margin: 0px 0px 10px; font-size: 15px; overflow-x: hidden; font-family: 'Open Sans', Arial, Helvetica, sans-serif;\">Please help!<\/p>\n","protected":false},"template":"","class_list":["post-37012","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["9187"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0"],"_btv_view_count":["591"],"_bbp_subscription":["241499"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["37012"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","166844","181371"],"_bbp_voice_count":["3"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["128836"],"_bbp_last_active_id":["128836"],"_bbp_last_active_time":["2020-10-04 03:53:35"]},"test":"shuvadeep"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/37012","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\/37012\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=37012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}