


{"id":354943,"date":"2024-03-02T15:03:27","date_gmt":"2024-03-02T15:03:27","guid":{"rendered":"\/forum\/forums\/topic\/external-forces-udf-for-store-separation-6dof\/"},"modified":"2024-03-02T15:03:27","modified_gmt":"2024-03-02T15:03:27","slug":"external-forces-udf-for-store-separation-6dof","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/external-forces-udf-for-store-separation-6dof\/","title":{"rendered":"external forces UDF for store separation 6DOF"},"content":{"rendered":"<p>Hello,<\/p>\n<p>&nbsp;<\/p>\n<p>I am using a UDF for a simple store separation case, where external forces should be applied to the CG while it is less than a certain Z displacement (0.1m). The reference frame is oriented at the CG, with axes consistent with the body frame orientation (Z down, X Fwd). From what I can tell, the UDF I am using&nbsp; (which is from the udf guide) is not applying these external forces but is applying the physical properties (Ixx, Iyy, Izz) to the body which then experiences a gravity drop. I was hoping someone could look at this UDF and provide insight into why the external forces are not being applied. My time step is 0.01. It appears that the Z displacement that I want the external forces to be acting before is not met until appx. 9 time steps. Below is a copy of the UDF I am trying to use:<\/p>\n<div>\n<div>\/*******************************************************<\/div>\n<div>SDOF property compiled UDF with external forces\/moments<\/div>\n<div>*******************************************************\/<\/div>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<p><\/p>\n<div>DEFINE_SDOF_PROPERTIES(delta_missile, prop, dt, time, dtime)<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp;prop[SDOF_MASS] &nbsp; &nbsp; &nbsp; = 907.185;<\/div>\n<div>&nbsp; &nbsp;prop[SDOF_IXX] &nbsp; &nbsp; &nbsp; &nbsp;= 27.116;<\/div>\n<div>&nbsp; &nbsp;prop[SDOF_IYY] &nbsp; &nbsp; &nbsp; &nbsp;= 488.094;<\/div>\n<div>&nbsp; &nbsp;prop[SDOF_IZZ] &nbsp; &nbsp; &nbsp; &nbsp;= 488.094;<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp;\/* add injector forces, moments *\/<\/div>\n<div>&nbsp; &nbsp;{<\/div>\n<div>&nbsp; &nbsp; &nbsp;register real dfront = fabs (DT_CG (dt)[2] &#8211;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (0.179832*DT_THETA (dt)[1]));<\/div>\n<div>&nbsp; &nbsp; &nbsp;register real dback &nbsp;= fabs (DT_CG (dt)[2] +<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (0.329184*DT_THETA (dt)[1]));<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp;if (dfront &lt;= 0.100584)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp;{<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prop[SDOF_LOAD_F_Z] = 10676.0;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prop[SDOF_LOAD_M_Y] = -1920.0;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp;}<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; &nbsp;if (dback &lt;= 0.100584)<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp;{<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prop[SDOF_LOAD_F_Z] += 42703.0;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prop[SDOF_LOAD_M_Y] += 14057.0;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp;}<\/div>\n<div>&nbsp; &nbsp;}<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp;printf (&#8220;\\ndelta_missile: updated 6DOF properties&#8221;);<\/div>\n<div>}<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-354943","topic","type-topic","status-closed","hentry","topic-tag-dynamic-mesh","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["340382","15180"],"_bbp_author_ip":["23.52.43.16"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_bbp_likes_count":["1"],"_btv_view_count":["305"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["354943"],"_bbp_forum_id":["27792"],"_bbp_engagement":["15180","340382"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["355157"],"_bbp_last_active_id":["355157"],"_bbp_last_active_time":["2024-03-04 13:15:00"]},"test":"msc0056auburn-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/354943","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\/354943\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=354943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}