


{"id":292168,"date":"2023-07-09T17:19:53","date_gmt":"2023-07-09T17:19:53","guid":{"rendered":"\/forum\/forums\/topic\/a-rigid-body-being-moved-by-water-within-a-dynamic-mesh\/"},"modified":"2023-07-09T17:19:53","modified_gmt":"2023-07-09T17:19:53","slug":"a-rigid-body-being-moved-by-water-within-a-dynamic-mesh","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/a-rigid-body-being-moved-by-water-within-a-dynamic-mesh\/","title":{"rendered":"A rigid body being moved by water within a dynamic mesh."},"content":{"rendered":"<p class=\"MsoNormal\" style=\"margin-left: 0in;text-indent: 0in\">Dear all, I have a cylinder involving a piston being moved by water, as depicted in Figure 1. The water exerts a force on the piston, pushing the water located behind the piston towards the outlet. The mesh employed has an element size of 0.15 mm. I have compiled a User-Defined Function (UDF) in ANSYS Fluent for the properties of water density, water sound speed, and the motion of the piston as a &ldquo;rigid body&rdquo; as in the corresponding TXT File. Most simulation settings are in figures 2 through 9. The time step is 0.001 sec.<br \/>In my attempts to solve this problem, I have explored three different solution methods: SIMPLE, PISO, and Coupled. Unfortunately, all three methods have yielded the same result &ndash; convergence has not been achieved.<br \/>I kindly request assistance from anyone who can identify the errors in my work. Furthermore, I would appreciate guidance on how to correctly implement this simulation.<br \/>Thank you in advance for your support.<\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 0in;text-indent: 0in\">=================================<br \/>TXT File<br \/>=================================<br \/><span style=\"font-size: 10.0pt;line-height: 107%;font-family: 'Courier New'\"><a href=\"https:\/\/community.ansys.com\/?hashtag\/include\/\" target=\"_blank\" rel=\"noopener\">#include<\/a>&nbsp;&#8220;udf.h&#8221;<\/p>\n<p><a href=\"https:\/\/community.ansys.com\/?hashtag\/define\/\" target=\"_blank\" rel=\"noopener\">#define<\/a>&nbsp;Bulk_Modulus 2.2e09<br \/><a href=\"https:\/\/community.ansys.com\/?hashtag\/define\/\" target=\"_blank\" rel=\"noopener\">#define<\/a>&nbsp;rho_ref 997.0<\/p>\n<p>DEFINE_PROPERTY(water_density, c, t)<br \/>{<br \/>real rho;<br \/>real p, dp, p_operating;<\/p>\n<p>p_operating = RP_Get_Real(&#8220;operating-pressure&#8221;);<br \/>p = C_P(c, t);<br \/>dp = p &#8211; p_operating;<br \/>rho = rho_ref \/ (1.0 &#8211; dp \/ Bulk_Modulus);<\/p>\n<p>return rho;<br \/>}<\/p>\n<p>DEFINE_PROPERTY(water_speed_of_sound, c, t)<br \/>{<br \/>real a_soundspeed;<br \/>real p, dp, p_operating;<br \/>p_operating = RP_Get_Real(&#8220;operating-pressure&#8221;);<br \/>p = C_P(c, t);<br \/>dp = p &#8211; p_operating;<br \/>a_soundspeed = (1.0 &#8211; dp \/ Bulk_Modulus)*sqrt(Bulk_Modulus \/ rho_ref);<\/p>\n<p>return a_soundspeed;<br \/>}<\/p>\n<p>DEFINE_SDOF_PROPERTIES(piston_rec, prop, dt, time, dtime)<br \/>{<br \/>prop[SDOF_MASS] = 0.094488;<br \/>prop[SDOF_IXX] = 0.0000291338;<br \/>prop[SDOF_IYY] = 0.000003937;<br \/>prop[SDOF_IZZ] = 0.000031496;<br \/>prop[SDOF_ZERO_TRANS_X] = FALSE;<br \/>prop[SDOF_ZERO_TRANS_Y] = TRUE;<br \/>prop[SDOF_ZERO_TRANS_Z] = TRUE;<br \/>prop[SDOF_ZERO_ROT_X] = TRUE;<br \/>prop[SDOF_ZERO_ROT_Y] = TRUE;<br \/>prop[SDOF_ZERO_ROT_Z] = TRUE;<br \/>}<\/span><img decoding=\"async\" title=\"Figure (1)\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/09-07-2023-1688922779-Figure (1).png\" alt=\"\"><\/p>\n<p class=\"MsoNormal\" style=\"margin-left: 0in;text-indent: 0in\"><img decoding=\"async\" title=\"Figure (5)\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/09-07-2023-1688922879-Figure (5).png\" alt=\"\"> <img decoding=\"async\" title=\"Figure (6)\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/09-07-2023-1688922907-Figure (6).png\" alt=\"\"> <img decoding=\"async\" title=\"Figure (7)\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/09-07-2023-1688922937-Figure (7).png\" alt=\"\">&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-292168","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["180530","13659"],"_bbp_author_ip":["168.143.243.14"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["466"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["292168"],"_bbp_forum_id":["27792"],"_bbp_engagement":["13659","180530"],"_bbp_voice_count":["2"],"_bbp_reply_count":["10"],"_bbp_last_reply_id":["293112"],"_bbp_last_active_id":["293112"],"_bbp_last_active_time":["2023-07-14 13:14:01"]},"test":"younis_alassedi"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/292168","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\/292168\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=292168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}