Fluids

Fluids

import excel to ansys fluent (18.2)

    • Edem930527
      Subscriber

      Hello!


      I'd like to simulate a transient thermodynamic problem.


      I have a heat changer with cooling water and ethanol-water alloy. I'd like to add the alloy temperature and the time contact from an excel file. The simulation is 90 minutes and I determine the temperature every minute (inside this excel). 


      How can I import this excel to Fluent?

    • Keyur Kanade
      Ansys Employee

      Excel can be used through workbench for driving input and output parameters. 


      But in your case I think you will need to write UDF. 


      Please check customization manual in help. 


       

    • Edem930527
      Subscriber

      I wrote a UDF, but I think it doesn't work.


      I'd like 3D simulation, the start temperature is 351,3K (78°C) and then the temperature arises every sec.


      Can you check it?


       


      #include "udf.h"


      DEFINE_PROFILE(temp, t, i)


      {


      real x[ND_ND];


      real x0;


      face_t f;


      real time= CURRENT_TIME;


      begin_f_loop(f, t)


      {


      F_CENTROID(x,f,t);


      x0 = x[0];


      if (time<1800)


      F_PROFILE(f, t, i) = 351.3 + 0.01 * x0;


      else


      F_PROFILE(f, t, i) = 373;


      }


      end_f_loop(f, t)


      }

    • DrAmine
      Ansys Employee

      You want the temperature to rise every second so why you are using the x-coordinate there. If your temperature profile is only time-dependent just read a transient table or transient profile for that

    • Edem930527
      Subscriber

      Thank you for your answer!


      Can you write an example what you though?


      Best regards,


      Adam

    • Keyur Kanade
      Ansys Employee

      here is a example for profile


      ((sampleprofile transient 3 0)
      (time
      1
      2
      3
      )
      (u
      10
      20
      30
      )
      )

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