User defined scalar flux function

  • 36 Views
  • Last Post 16 February 2019
Kazem posted this 15 February 2019

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. 

 

Attached Files

Order By: Standard | Newest | Votes
abenhadj posted this 16 February 2019

Yes. Wrong.

Best regards,

Amine

  • Liked by
  • Kazem
Kazem posted this 15 February 2019

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

abenhadj posted this 15 February 2019

Check connectivity macros in the help.

Best regards,

Amine

  • Liked by
  • Kazem
Kazem posted this 15 February 2019

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) 

abenhadj posted this 15 February 2019

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.

Best regards,

Amine

  • Liked by
  • Kazem
Kazem posted this 15 February 2019

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. 

Kazem posted this 15 February 2019

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 posted this 15 February 2019

abenhadj posted this 15 February 2019

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

Best regards,

Amine

  • Liked by
  • Kazem
Kazem posted this 15 February 2019

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.

abenhadj posted this 15 February 2019

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. 

Best regards,

Amine

  • Liked by
  • Kazem
Close