✅ ANSYS FLUENT - UDF Tutorial (Temperature Profile)

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this tutorial, you will learn how to use a basic UDF file, compile, and modify it.
    If you have problems for Open Ansys Fluent and choose the Working Directory, you can open it from Windows Prompt, please see this video: • ✅ ANSYS FLUENT - Compi...
    #AnsysFluent #AnsysFluentUDF #CFDNinja
    You can download the files from cfd.ninja/ansy...
    Computational Fluid Dynamics
    cfd.ninja/
    cfdninja.com/
    3dn.ninja/
    ANSYS
    ------------------------------
    Fall Again (Instrumental) by Jonas Schmidt & henrikz / jonasschmidtof. .
    Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
    Free Download / Stream: bit.ly/fall-ag...
    Music promoted by Audio Library • Fall Again (Instrument...
    ------------------------------

Комментарии • 52

  • @eng.renatocarvalho
    @eng.renatocarvalho 4 года назад +1

    Thanks very much for these tutorials from your channel. I couldn't import the mesh you've done.. I don't know why actually. That wasn't a problem though because I've watched many of yours videos and I already have enough knowledge to create my own geometry and mesh by using intuition when defining the dimensions. Everything worked out well and I've learned the main points of your tutorial that is using a temperature profile through a UDF! Thanks again! You are helping a lot to build my experience in CFD using Fluent!

    • @ansys_cfd
      @ansys_cfd  4 года назад +1

      Great Renato!
      I'm glad my tutorials were helpful
      Best regards

  • @drone7736
    @drone7736 4 года назад +5

    Amazing in 4K!

  • @mpalin11
    @mpalin11 24 дня назад

    Great stuff, you saved my ass!

  • @IvanMik
    @IvanMik 4 года назад +1

    Thank you. More UDF please

    • @ansys_cfd
      @ansys_cfd  4 года назад

      You're welcome, yes soon more tutorial about UDF.
      Best regards

  • @kingterren
    @kingterren 4 года назад +1

    keep it going man, nice

    • @ansys_cfd
      @ansys_cfd  4 года назад +1

      Thnaks friend, soon more tutorials.
      Best regards

  • @viveksankurubhukta6241
    @viveksankurubhukta6241 26 дней назад

    I am running a 2D transient simulation(VOF Fluent) in which vapor bubbles are generated at the bottom surface of a rectangular domain that is initially full of water with heat flux given at the bottom wall. I was trying to patch a single vapor bubble by creating a hemispherical region. I can see my volume fraction contour with the bubble after patching a hemispherical region at the bottom of the liquid. The simulation is also running perfectly when I click on "Run Calculation".
    When I do this same bubble patch operation through a DEFINE_INIT UDF, I can see the bubble getting patched in the vapor phase contour, but the calculation is not running. It is giving the following error in the 1st iteration itself.
    Divergence detected in AMG solver: vof-1
    Divergence detected in AMG solver: x-momentum
    Divergence detected in AMG solver: y-momentum
    Divergence detected in AMG solver: pressure correction
    Divergence detected in AMG solver: pressure correction
    Divergence detected in AMG solver: temperature
    UDF code
    #include "udf.h"
    DEFINE_INIT (init2, domain1)
    {
    Message("solution initialised");
    cell_t cell;
    Thread *cell_thread;
    Domain *subdomain;

    int phase_domain_index;
    //Initialisation of heater layer
    sub_domain_loop(subdomain, domain1, phase_domain_index)
    {
    if(DOMAIN_ID(subdomain) == 2)
    {
    thread_loop_c (cell_thread,subdomain)
    {
    begin_c_loop_all (cell,cell_thread)
    {
    real arr[ND_ND];
    C_CENTROID(arr,cell,cell_thread);
    if (sqrt(ND_SUM(pow(arr[0],2),pow(arr[1],2), pow(arr[2],2)))

  • @sharedbyarash7144
    @sharedbyarash7144 2 года назад

    Thanks for sharing this video

  • @naveenpandrinki1891
    @naveenpandrinki1891 8 месяцев назад

    Hi , I have problem regarding temperature distribution along channel. Have given heat flux but there is no temperature raise in materials . What was the problem

  • @bilkanjohnhemrom1246
    @bilkanjohnhemrom1246 4 года назад +1

    i'm using VS19 and Ansys fluent 19.2 to solve this problem. udf is building successfully but while loading it , it is showing following error. why it so?
    Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).

    The system cannot find the file specified.


    C:\Users\bjhem\Desktop\john\circular tube\circular tube_files\dp0\FFF-1\Fluent\libudf\win64\2ddp_host\libudf.dll
    Error Object: #f

    • @engineer611
      @engineer611 4 года назад

      please send me an e-mail to semihyilmaz2004@hotmail.com. I will send a solution procedure file soon

    • @ansys_cfd
      @ansys_cfd  4 года назад +1

      Hi friend, you can enter to Ansys Fluent using this method: ruclips.net/video/xt2hnE9_LdM/видео.html
      Best regards

  • @ziadsalloomi
    @ziadsalloomi 4 года назад

    Hi,
    First of all, I would like to say a big thanks for the awesome work that comes from the website and this channel.
    I have to simulate a flow around a 3d cylinder with the bottom-mounted on the floor of the domain. I was wondering if you have a tutorial on this type of simulation?
    Also, I have to apply a boundary condition at the inlet with a boundary layer thickness δ/d=0.6; Do you have a video about this as well?
    Kind regards,

  • @beka0495
    @beka0495 3 года назад +2

    Any tutorial on UDF for CFD-post (e.g. integration along a domain) Thank you!

    • @Titan1-2-3
      @Titan1-2-3 3 года назад

      Hi, were you able to find any tutorials that you mentioned? I am looking for the same

    • @muhammadsaqibirshad445
      @muhammadsaqibirshad445 3 года назад

      @@Titan1-2-3 Same here

  • @ja_9568
    @ja_9568 3 года назад

    Thank you! I would like to know how to implement a UDF that enables the computation of residence time inside a reactor (I need it in order to find the stagnant zones). Thank you very much in advance!

  • @marwasaood1759
    @marwasaood1759 2 года назад

    Hello, I am doing a simulation of the pipe. Water with a constant heat flux in the case of the transiet. The wall does not heat up. Can someone help me?

  • @shanwang8236
    @shanwang8236 2 года назад

    I encounter a problem with my UDF code, the purpose of which is to attain the average-weighted velocity. When i applies this code to inlet or outlet boundary, this code can run normally, there is a error when i applied this code to interface boundary. Can anybody know why the code goes wrong?

  • @dir8717
    @dir8717 3 года назад

    Hey Ninja, can u make a tutorial , how to calculate pressure recovery coefficient for super sonic flow. For example i would like to calculate pressure recovery in super sonic intake with normal shock losses.

  • @ashleymason35
    @ashleymason35 3 года назад

    thank u for the help i've been looking for.
    But suppose your length is 200mm and u want temperature distribution till 100mm, what change u will do in the udf ?

  • @samking618
    @samking618 4 года назад

    I want to write a UDF for non-uniform heat flux around a cylinder. I have the function in terms of theta but facing problems while writing a UDF. Can you help me out ?

  • @juanarriaga2123
    @juanarriaga2123 2 года назад

    Hi is there a way to model an energy profile? As in like a point heat source to melt an object?

  • @felipeluz6940
    @felipeluz6940 2 года назад

    How to program a heat flux distribution in a radial section, like a pipe wall? I'm designing a parabolic trough collector then I need to input the corret heat flux distribution there. Can you help me?

  • @gaganrastogi8237
    @gaganrastogi8237 4 года назад

    I Have a Vertical 2D Wall , Boundary Condition for the wall is Non Isothermal, varying with respect to Position only , Not With Respect to Time. How can i add this boundary condition ?

  • @sayedaislam3752
    @sayedaislam3752 3 года назад

    Will it be a problem if I install Ansys in G drive and Visual Studio in C drive? Because even though i have followed all the instruction that you have given to avoid the "nmake" error , it still shows error. What can I do now?

  • @angelpenev9331
    @angelpenev9331 4 года назад +1

    Great video! May I use this kind of code if I want to make a profile temperature function of time and tihs temperature will be on the inlet velocity. The flow is transient and laminar. Thank you.

    • @ansys_cfd
      @ansys_cfd  4 года назад +2

      Hi friend;
      Yes you can do it.
      Best regards

  • @faiqshahid1015
    @faiqshahid1015 3 года назад

    Hey, I am working on the CFD of axial flow turbine in ansys CFX , I want to define a UDF for non uniform temperature at turbine inlet, can you help me out with that?

  • @muzilee8585
    @muzilee8585 3 года назад

    hello , how can i change the working direction in workbench ?

  • @aliabbas861
    @aliabbas861 3 года назад

    hello thank you for this tutorial; currently i am working on thermal modeling of lithium ion battery can you please help me with the part related to the udf to create a heat source?

  • @atulsbhatt2619
    @atulsbhatt2619 4 года назад

    How To add Variable Wall Temperature Boundary Conditions, My 2D Wall Temperature Varies With Respect to Position (Vertical Distance) only, Not With Respect to Time? Can You please Help me out in In This?

  • @abderrahmanmellalou359
    @abderrahmanmellalou359 3 года назад

    Hello please i folowwed your steps in this video, and with the same files you're using once i click on load the flolowing message appears "The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).
    Le fichier sp�cifi� est introuvable.
    C:\Users\hp\Desktop\Nouveau dossier\udf\libudf\win64\2ddp_host\libudf.dll"
    i dont know why, please help

    • @ansys_cfd
      @ansys_cfd  3 года назад +1

      Hi friend,
      Can you change the folder mame? Nouveau dossier to NouveauDossier then it try again.
      Regards

  • @zn5259
    @zn5259 4 года назад

    I think the expression in the udf is not the same in the picture,why?

    • @ansys_cfd
      @ansys_cfd  4 года назад

      The expression in UDF is the same you need to do this tutorial and check

  • @daniell321
    @daniell321 4 года назад

    hi, i currently have 3 different udf, temperature mass fraction and inlet velocity, how do i interpret them since fluent can't let me load 3 of them

  • @lilianasanroman7882
    @lilianasanroman7882 4 года назад

    ¿Que tal? espero le puedas hacer caso a este comentario sino aun asi te lo voy a agradedcer. Wassup? hope you could heed this comment but even so, I'll thank you.
    ¿Puedes hacer un tutorial basico para udf pero para funcionamiento en procesadores en paralelo ya que este sirve solo para single cores? You can do a basic tutorial for udf but for operation in parallel processors since this is only for single cores?

    • @ansys_cfd
      @ansys_cfd  4 года назад +1

      Hola, Puedes usar este mismo tutorial para simulación en paralelo, los UDF's estan disponibles si usas un solo nucleo o varios, lo que sí debes verificar es que tengas disponible HPC (High Performance Computing) que es un tipo de licencia para hacer simulación en paralelo. Saludos

    • @lilianasanroman7882
      @lilianasanroman7882 4 года назад

      @@ansys_cfd ok, muchas gracias lo voy a revisar, excelente trabajo.

  • @lilianasanroman7882
    @lilianasanroman7882 4 года назад

    Hola otra vez, disculpa las molestias, ya que nadie de la comunidad de ansys ayuda, espero tu si me puedas ayudar y te voy a estar muy agradecida. Estaba tratando de hacer el tutorial del canal de ANSYS How To Videos ruclips.net/video/neJyTxLla0E/видео.html pero resulta que su udf manda el error "The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64)" aun siguiendo todas las instrucciones tanto tuyas de tus tuts y de ellos pero nada parace hacerlo funcionar. Te voy a estar eternamente agradecida si me pudieras ayudar con esto. Asi sirve que haces otro video para tu canal. Gracias y besos.

    • @ansys_cfd
      @ansys_cfd  4 года назад +1

      Hola, es probable que haya un error en el llamado de la sentencia quizas estas intentando correr en win32 y ansys no lo reconoce por eso el mensaje del win 64, Te sugiero hacer lo siguiente: 1. Abre fluent desde el prompt de windows (win64), aqui te dejo un video : cfd.ninja/compile-udf/ 2. realiza el tutorial compilando el UDF. Por favor tambien verifica que tengas la version de ANSYS de 64 bits. Saludos

  • @LOL-vt8jh
    @LOL-vt8jh 4 года назад

    The background music is too noisy!!!