Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

store temperature value in udmi

    • Selawe97
      Subscriber
      Hello 
      When I store temperature value in UDMI
      For example
       
      [CODE]
      #include "udf.h"
       
      DEFINE_PROFILE(htc, t, i)
      {
      cell_t c;
      face_t f;
      Domain *domain = Get_Domain(1);
      Thread *ft1 = Lookup_Thread(domain, 2); // Fluid thread ID 2
       
      real temp;
       
      begin_f_loop(f, ft1)
      {
      temp = F_T(f, ft1); 
       
      F_UDMI(f, ft1, 0) = F_T(f, ft1);
       
      F_PROFILE(f,ft1,i) = temp;
      }
      end_f_loop(f,ft1)
       
      }[/CODE]
      It doesn't store the value at boundaries, so how to store temperature boundary values, or did I make a mistake?
       
      When I compare the countors by UDMI and fluent post it shows different temperature values unless I deactivate boundary values in fluent, fluent will show the same contours of the UDF (Image Attached)
       
      Thanks
       
    • Essence
      Ansys Employee

      Hello,

      Try using DEFINE_PROPERTY macro.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.