How to Compile User Defined Functions (UDF) for ANSYS Fluent

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 23

  • @viveksankurubhukta6241
    @viveksankurubhukta6241 3 หลายเดือนก่อน +1

    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)))

    • @SimuTechGroup
      @SimuTechGroup  3 หลายเดือนก่อน

      Hello and thank you for your comment. Unfortunately, this is a very involved scenario. If you are interested in any of our engineering services, please email info@simutechgroup.com. You can also check out SimuTech Skills Center, a training portal that contains training material and tips and tricks videos that have been created by SimuTech engineers: skillscenter.simutechgroup.com/

  • @rumanaparvinrinky7219
    @rumanaparvinrinky7219 3 ปีที่แล้ว +1

    thank u so much sir.. please give one for 3 D also please please

    • @SimuTechGroup
      @SimuTechGroup  3 ปีที่แล้ว

      Hi, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the Ansys student community to find posts/articles: studentcommunity.ansys.com/

  • @7ronaldo716
    @7ronaldo716 4 ปีที่แล้ว +2

    Thank you verry much of this information.

  • @hassanagalit6815
    @hassanagalit6815 4 ปีที่แล้ว +1

    Very concise tutorial, thank you!

  • @salimbenhalima3203
    @salimbenhalima3203 4 ปีที่แล้ว +1

    thank you very much, but I have a problem .how can I initialize a solid temperature with UDF?

    • @SimuTechGroup
      @SimuTechGroup  4 ปีที่แล้ว

      Hi Salim, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/

  • @nazaninvariji5028
    @nazaninvariji5028 4 ปีที่แล้ว +2

    Amazing tutorial, thank you!

  • @saicharannathdubba3589
    @saicharannathdubba3589 5 ปีที่แล้ว +2

    When I try to load UDF in fluent solver. The error messenge was showing that UDF library you are trying to load(libudf) is not compiled for parallel use on current platform (win64). The system cannot find the path specified.please help!!

    • @khairiarrif3097
      @khairiarrif3097 5 ปีที่แล้ว

      Me too

    • @saicharannathdubba3589
      @saicharannathdubba3589 5 ปีที่แล้ว

      @@khairiarrif3097 I installed visual studio 2012 . After that I haven't faced the problem

    • @khairiarrif3097
      @khairiarrif3097 5 ปีที่แล้ว

      @@saicharannathdubba3589 thank you friend ...can you give me the site

    • @saicharannathdubba3589
      @saicharannathdubba3589 5 ปีที่แล้ว

      @@khairiarrif3097 I forgot the website from where I downloaded it. But I can send you through Google drive. If possible send me your email id

    • @khairiarrif3097
      @khairiarrif3097 5 ปีที่แล้ว

      @@saicharannathdubba3589 arrifkhairi@gmail.com

  • @engineeringsimulationstudi1404
    @engineeringsimulationstudi1404 4 ปีที่แล้ว +2

    Loved it

  • @persisboshra5968
    @persisboshra5968 4 ปีที่แล้ว +1

    Thanks a lot for this valuable information.. I'd like anyone to help me with writing the UDF code of the transient velocity of the profile of respiratory velocity for normal breathing- inhalation & exhalation for 4.8 s

    • @SimuTechGroup
      @SimuTechGroup  4 ปีที่แล้ว +1

      Hi Persis, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/