We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Applying the DEFINE_HEAT_FLUX udf

    • jmsz7x
      Subscriber

      I am creating a DEFINE_HEAT_FLUX udf in ANSYS fluent using MSVC. When I compile and load the udf I don't seem to get errors. This is the response from the console:


      > Copy "C:\Users\jmsee\Documents\Rc.c" to "C:\Users\jmsee\Documents\libudf\src"
      Creating user_nt.udf file for 3ddp_host ...

      Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.
      Compiler and linker: Microsoft Visual C++
      # Generating ud_io1.h
      Rc.c
      # Generating udf_names.c because of makefile Rc.obj
      udf_names.c
      # Linking libudf.dll because of makefile user_nt.udf udf_names.obj Rc.obj
      Creating library libudf.lib and object libudf.exp
      Creating user_nt.udf file for 3ddp_node ...

      Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.
      Compiler and linker: Microsoft Visual C++
      # Generating ud_io1.h
      Rc.c
      # Generating udf_names.c because of makefile Rc.obj
      udf_names.c
      # Linking libudf.dll because of makefile user_nt.udf udf_names.obj Rc.obj
      Creating library libudf.lib and object libudf.exp

      Done.

      jaredcomputer: Opening library "C:\Users\jmsee\Documents\libudf"...
      Done.

      jaredcomputer: Opening library "C:\Users\jmsee\Documents\libudf"...
      Rc
      Done.

      I can even hook the function to fluent, but when I go to wall boundary conditions there is no dropdown for the udf. Can someone tell me what the problem is?

    • Rob
      Forum Moderator

      You may want to read the section in the manual covering DEFINE_HEAT_FLUX I suspect it's not the function you're looking for, and isn't hooked into the wall bc. 

      • jmsz7x
        Subscriber

        I have already read that section of the manual.  Not sure why you have that impression, but if you don't apply it to boundary conditions then how do you use it?

    • Rob
      Forum Moderator

      It's a generic modification, and covered here  https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v242/en/flu_udf/flu_udf_ModelSpecificDEFINE.html%23flu_udf_sec_define_heat_flux 

      • jmsz7x
        Subscriber

        Rob, your link takes me to the ansys customer support page.  I am a student and so I cannot access their support

    • Rob
      Forum Moderator

      Launch Help from Fluent and then paste the link into the browser. There is a public version now too, but the trick bypasses the password lock. 

      • jmsz7x
        Subscriber

        Which help from fluent? Like the button that shows when accessing a dialog box?

    • Rob
      Forum Moderator

      Yes, that launches into a browser and paste the link into that browser. 

      • jmsz7x
        Subscriber

        Ok, but that only takes me to the part of the manual that I already read, as I said before.  Also, it is rather ambiguous about how it is used, it only explains how to hook it.

    • Rob
      Forum Moderator

      But it does point out that DEFINE_PROFILE is also available. 

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