We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

call temperature in Profile UDF

    • sinasalahshour74
      Subscriber

      Hello,

      In DEFINE_PROFILE , I want to call temperature of cell but when i run the file error "Node 0: Process 1404 : Received signal SIGSEGV" comes up .I'm sure problem because of C_T(c,t) .How can i call temperature in DEFINE_PROFILE?

      here's my udf:

      DEFINE_PROFILE(temperature_profile,t,i)

      {

       cell_t c;

       float temparc;

       float timeflow = CURRENT_TIME;

       begin_c_loop(c,t)

        {

          if (timeflow>=0.021 || timeflow<=0.0346){

          temparc=C_T(c,t);

          F_PROFILE(c,t,i) =temparc;

          }  

          else

          F_PROFILE(c,t,i) =600;

        }

       end_c_loop(c,t)

      }


      Best Regards,

    • Rob
      Forum Moderator
      You're setting the temperature to be the temperature so that may throw the solver. Re-pose the IF statements to only change the temperature when you need to and not do anything otherwise.
    • Amine Ben Hadj Ali
      Ansys Employee
      UDF is wrong and does not make a sense: you want to set the profile to be equal to the cell temperature . Moreover it is wrong using F_PROFILE for cells.
Viewing 2 reply threads
  • The topic ‘call temperature in Profile UDF’ is closed to new replies.