


{"id":361023,"date":"2024-04-08T08:58:47","date_gmt":"2024-04-08T08:58:47","guid":{"rendered":"\/forum\/forums\/topic\/moment-along-z-axis-at-base-or-cg-of-water-tank-for-2-secs\/"},"modified":"2024-04-08T08:58:47","modified_gmt":"2024-04-08T08:58:47","slug":"moment-along-z-axis-at-base-or-cg-of-water-tank-for-2-secs","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/moment-along-z-axis-at-base-or-cg-of-water-tank-for-2-secs\/","title":{"rendered":"moment along z axis at base or CG of water tank for 2 secs"},"content":{"rendered":"<p>i want to apply a moment around z axis of a partially filled tank at its base or CG, after compiling while i am hooking this UDF under dynamic mesh, In base as rigid body&nbsp; its showing incorrect CG motion(Assume No motion)<\/p>\n<div>\n<div>#include &#8220;udf.h&#8221;<\/div>\n<p><\/p>\n<div>DEFINE_SDOF_PROPERTIES(tank_moment, prop, dt, time, dtime)<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp; real t = CURRENT_TIME; \/\/ Obtain the current simulation time<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; prop[SDOF_LOAD_M_Z] = 0.0; \/\/ Initialize moment load to 0.0<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; if (t &lt;= 2.0)<\/div>\n<div>&nbsp; &nbsp; {<\/div>\n<div>&nbsp; &nbsp; &nbsp;<\/div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; prop[SDOF_LOAD_M_Z] = 5000.0; \/\/ Moment load in the z-direction<\/div>\n<div>&nbsp; &nbsp; }<\/div>\n<p><\/p>\n<div>&nbsp; &nbsp; printf(&#8220;\\ntank_moment: updated SDOF properties&#8221;);<\/div>\n<div>}<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-361023","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["336538","15180"],"_bbp_author_ip":["23.52.43.10"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["158"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["361023"],"_bbp_forum_id":["27792"],"_bbp_engagement":["15180","336538"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["362649"],"_bbp_last_active_id":["362649"],"_bbp_last_active_time":["2024-04-17 09:50:26"]},"test":"vikramkumar-m22me1002mbcet-ac-in"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/361023","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\/361023\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=361023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}