Fluids

Fluids

Moving Block from pressure inlet udf

    • pascuan
      Subscriber

      I am trying to create a moving block from a pressure inlet. I have set up a dynamic mesh. I do not know how to write my own udf though. Any assistance would be great. Please help. 

    • Karthik R
      Administrator

      Please take a look at the Fluent Customization manual. There are several UDF examples you can use as your starting point to write your code. Here is the link


      https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v201/en/flu_udf/flu_udf_DynamicMeshDEFINE.html?q=dynamic


      If you are looking for instructions on how to use this help, please have a look here. 


      https://forum.ansys.com/forums/topic/how-to-access-the-ansys-online-help/


      I hope this helps.


      Thank you.


      Karthik

    • pascuan
      Subscriber

      Hello Karthik,


      I have working udf for the movement of the zone reference for dynamic mesh. However, I would like my moving zone to stop when it contacts with the wall. I get an error when the zone reaches the wall too. I have checked 2.6.6 DEFINE_CONTACT for the details but I cannot interpret the code given. Any assistance would be appreciated. I like learning about CFD Ansys. Thank you for your help so far. 


       


      I have attached my udf and dynamic mesh motion for reference. 


      https://drive.google.com/drive/folders/1xPiwE4oRW4Al5Osuv5B5YUTvXu5B_eAj?usp=sharing

    • Karthik R
      Administrator

      Hello,


      Please see if you can use the 'Contact Detection' feature in Fluent for this. Here are the details.


      https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v201/en/flu_ug/flu_ug_dynam_sec_set_contact_det.html?q=contact%20detection


      Also, as Ansys employees, we are not able to open any files attached to this community. Just an FYI.


      Thank you.


      Karthik

    • pascuan
      Subscriber

      Hi Karthik, 


      I have visited the link but am having trouble when using it on Fluent. When i changed the proximity setting to a higher threshold, I believe contact was detected but my program has been interrupted. Every time I run it the program is interrupted and I have to close it through task manager. Thank you for you help. I believe we are almost there. 


      This is a picture for reference.


    • Karthik R
      Administrator

      Excellent! Gald this works. Please feel free to mark the most appropriate answer as 'Is Solution' to benefit the community.


      Thank you!


      Karthik

Viewing 5 reply threads
  • You must be logged in to reply to this topic.