Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Constrained Location in a 6DOF -UDF

    • Max4
      Subscriber

      Hi,


      I wrote the following UDF for a moving valve (6DOF).



       


      I want to add a constrained location, but I don´t find how to code this in the UDF.



      Thank you.


       


      Regards,


      Maxime

    • Keyur Kanade
      Ansys Employee

      i am not sure exact command for that. can you please elaborate why do you need it. 


      i think the udf you have should work as it is. 

    • Max4
      Subscriber

      I need it, in order to simulate the opening of a valve thanks to pressure forces. I prefer use an UDF as the interface of the 6DOF Properties.


      Thank you for your opinion. I just want to add a constrained location, so that the valve doesn´t move to far.


      Regards,


      Maxime

    • Keyur Kanade
      Ansys Employee

      simple workaround may be using if statement like following for position and force output.


       


      if (y <= del)


              vel = 2;


            else


              vel = 0

    • Max4
      Subscriber

      I don´t want to set a velocity for the valve. I just want that it opens when the pressure forces is higher than the spring force.

    • Keyur Kanade
      Ansys Employee

      i just gave you an example. 


      you can use e.g. valve_movement_y in your udf. 


      if (valve_movement_y <= 5)


         net_force = xyz


      else 


         net_force = abc 

    • Max4
      Subscriber

      Ok, I understand it more clearly. Thank you for your help.


      Regards,


      Maxime

    • Max4
      Subscriber

      On the interface of the Six DOF Properties, the Location is the distance between the origin of the XY axis and the center of gravity of the object?


      • Yagiz Guzelcan
        Subscriber

        This is the local location of the the element you are interested in. You do not need to know the distance between the origin and the CG of the part.

Viewing 7 reply threads
  • The topic ‘Constrained Location in a 6DOF -UDF’ is closed to new replies.