Fluids

Fluids

UDF-code

    • Abbas2020
      Subscriber
      HinHow can I write a UDF-code for inlet temperature( fully developed profile) with conjugate heat analysis? I have two inlets ( two fluid domains and solid domain).nAlso, how can I write a code for velocity and k-e profiles, by making a fully developed flow at inlet with copying the face mesh of outlet profile to inlet?.nBest regardsnA.An
    • DrAmine
      Ansys Employee
      Please check the manual for DEFINE_PROFILE examples. Better to use Fluent Expression (example in the User'Guide to code a parabolic velocity profile)n
    • Abbas2020
      Subscriber
      Thanks for your reply,nI have checked the manual, but no thing is helpful. The geometry is non-circular pipe. Perhaps, the velocity profile is not complicated. However, the periodic temperature profile for both inlets( for each fluid) is complicated since I am doing conjugate heat analysis between two fluids and interface solid domain. n
    • Karthik R
      Administrator
      If you are looking for these detailed profile files, I'd say run a quick simulation with streamwise periodic flow conditions. This will give you the necessary profiles which you can use in your final simulation.nThanks.nKarthikn
    • Abbas2020
      Subscriber
      Thanks Kremella for your reply.nYour way can be done for velocity field or pressure, but how about the temperaure?n
    • Abbas2020
      Subscriber
      You can see in the attached for what I am talking about. I have a counter flow between two fluids which are separated by a wall (solid domain). I'm trying to write a UDF , in which I am coping the velocity of the outlet face to inlet. But I got more problem in that code.nSo, I am looking for better way to solve this problem. or how I can copy the velocity at outlet face to inlet to make as periodic. Another issue is with Temerature.nnBest regards.nAbbasnn
    • Rob
      Ansys Employee
      For velocity you can use a profile. If you fix the temperature in that way you'll find both sides have the same value as you'll be modelling the equilibrium condition. n
    • Abbas2020
      Subscriber
      Thanks Rob for your reply,nThe wall temperature is variant linearly. It is not constant. If it is constant, then it is easy to model the problem as separated domains.nCan I apply a periodic(UDF) temperature on both ends for each fluid?.nRegardsnAbbasn
    • Rob
      Ansys Employee
      You can, but think through the temperature field. If in=out on both sides what temperature will that become? n
    • Abbas2020
      Subscriber
      Yes, you are right. but I think to apply a temperature profile at the inlets instead of periodic temperature. n
    • Rob
      Ansys Employee
      OK, so you can use a profile. But, you'll still need to figure out at what value. n
Viewing 10 reply threads
  • You must be logged in to reply to this topic.