Fluids

Fluids

How to input variable temperature as radiation in wall boundary condition ?

    • sooraj546
      Subscriber

      Is it possible to add a temp varying wrt to time as external radiation temperature box shown below, if so kindly help me out with how to do it ?



       

    • DrAmine
      Ansys Employee

      Yes: either profile file or profile UDF or expression.

    • sooraj546
      Subscriber

      But there in the drop down section of external radiation temperature box as shown above .................. there there is no option called user defined for attaching the define profile udf .................... etc......... 


      thanks a lot for replying

    • DrAmine
      Ansys Employee

      Just load a profile udf and you will see that.

    • sooraj546
      Subscriber

      thanks a lot sir it worked .....well


       


       

    • sooraj546
      Subscriber

      This was my code:


      DEFINE_PROFILE(temp_time, t, i)


      {


      face_t f;


      Domain *domain;


      real T;


      int boundaryID=5; /*wall ID*/


      real the_current_time;


      the_current_time = CURRENT_TIME;


       


      thread_loop_f(t,domain)


      {


      if (THREAD_ID(t)==boundaryID)


      {


      begin_f_loop(f,t)


      {


      if (the_current_time<100)


      {


      T=1200;


      }


      else if (the_current_time>=100)


      {


      T=1473;


      }


      }


      end_f_loop(f,t)


      }


      }


      }


      its showing 


      MPI Application rank 0 exited before MPI_Finalize() with status 1

    • DrAmine
      Ansys Employee

      I do not comment on UDF anymore: but why looping over all threads again when you are already in the right thread?. Check the manual it contains a lot of example for DEFINE_PROFILE. You can use Fluent Expression for this simple thing.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.