Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

User defined scalar flux function

    • Kazem
      Subscriber

      Hi everybody


      I am trying to solve a transport equation in ansys fluent16 (The image of the equation has been attached) .I have 5 zones, 1 is fluid and the rest are porous media. The equation has to be solved in all zones. My problem is that the convective term is not the same as that in fluent uds transport equation. I have been told to use uds_flux function to change flux function. In order to do that i need boundary faces ids which are accessible from boundary condition task page. My question is that is it possible to access interior faces ids? because i need to set convective fluxes on those faces too. An early reply would be highly appreciated. 


       

    • DrAmine
      Ansys Employee

      Please insert your attachment as screenshot. ANSYS Stuff cannot download attachments. Anyway fluxes need to provided via DEFINE_UDS_FLUX. That is all what we can provide on this open community. 

    • Kazem
      Subscriber


      Thanks for your reply. This is the equation i want to solve. Both side of the equation are multiplied by density (which is assumed constant).I have written a udf to change convective term. Boundary faces id is accessible but I need  interior faces ids too. that is where the problem lies.

    • DrAmine
      Ansys Employee

      Does the convective differ depending on the kind of boundary (internal/external)? If Yes you can check if THREAD_Type is of type interior.

    • Kazem
      Subscriber

    • Kazem
      Subscriber

      This is the geometry in which i have to solve the uds transport equation. As i mentioned earlier there are 5 zones as shown in the picture. In each zone sigmaf (appeared in the convective term coefficient) is different therefore convective terms and consequently convective flux are different in each zone. I need to define convective flux in each zone seperately. Is it possible to do that using Thread_type???    

    • Kazem
      Subscriber

      I have written a simple udf to define convective flux on face boundaries. Ids are accessible from boundary condition task manager and i use them. 



    • DrAmine
      Ansys Employee
      You need rather to check to which zone each face belongs and then apply the right sigma. For internal boundaries where both vslues sigma are valid use weighting.
    • Kazem
      Subscriber

      Thank you very much for your reply. It would be highly appreciated if you could tell me the appropriate macro for that(check to which zone each face belong?). I should say that zone IDs are available (They are 2-3-4-5-6) 

    • DrAmine
      Ansys Employee
      Check connectivity macros in the help.
    • Kazem
      Subscriber

      Thanks a lot. So the above udf  to define boundary faces convective fluxes is not correct?

    • DrAmine
      Ansys Employee
      Yes. Wrong.
Viewing 11 reply threads
  • The topic ‘User defined scalar flux function’ is closed to new replies.
[bingo_chatbox]