Fluids

Fluids

Modifying Velocity Component

    • AlperSaygin
      Subscriber
      Hello,nAre there any way or UDF Macro to modify velocity of a cell during a simulation? For example, I want to specify a value to u or v velocity component of a cell based on some generated if condition. nRegards,n
    • Rob
      Ansys Employee
      Have a look at the FIX function in the cell zone conditions. UDFs and (probably) Expressions can be used to make this a variable. n
    • AlperSaygin
      Subscriber
      Thanks!n
    • AlperSaygin
      Subscriber
      Dear Rob,n I used Define_Profile macro for this job, hooked it from cell zone conditions, under the tab of fixed values as you suggested. I want to ask also something related to that. nWhen I do this, whole cell thread concluded with 0 velocity, whereas I want to set velocity only for particular cells according to if condition I have stated in my UDF. My question is, can I do cell based modification rather than complete cell thread via this Macro? nThank you very much,n
Viewing 3 reply threads
  • You must be logged in to reply to this topic.