Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Error in UDF

    • raju.chowdhury
      Subscriber

      Hi,

      I am working on an E-E multiphase model to simulate heat transfer between the phases. I am using the following UDF to apply a temperature-dependent density profile of the secondary phase.

      #include "udf.h" #include "math.h" DEFINE_PROPERTY(cell_density,c,t) { real g_density; real temp; /* density of secondary phase */ Thread *phase_thread = THREAD_SUB_THREAD(t, 1); temp = C_T(c, phase_thread); if (temp > 273.0) g_density = 522.478 * pow(temp, -1.014); else g_density = 1.63; return g_density; }

       

      While compiling, no error displays; however, while initialising the solution, getting the following error. Not sure where is the problem. Any suggestions will be great.

       

       

      ==============================================================================

      Node 4: Process 45008: Received signal SIGSEGV.

      ==============================================================================

      ==============================================================================

      Node 5: Process 47176: Received signal SIGSEGV.

      ==============================================================================

      ==============================================================================

      Node 0: Process 44496: Received signal SIGSEGV.

      ==============================================================================

      ==============================================================================

      Node 3: Process 5776: Received signal SIGSEGV.

      ==============================================================================

      ==============================================================================

      Node 2: Process 48580: Received signal SIGSEGV.

      ==============================================================================

      ==============================================================================

      Node 1: Process 53732: Received signal SIGSEGV.

      ==============================================================================

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      999999: mpt_accept: error: accept failed: No such file or directory

      ===================================================================================
      =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
      =   RANK 0 PID 44496 RUNNING AT CNA309-6LJDRZ2
      =   EXIT STATUS: -1 (ffffffff)
      ===================================================================================

      ===================================================================================
      =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
      =   RANK 4 PID 45008 RUNNING AT CNA309-6LJDRZ2
      =   EXIT STATUS: -1 (ffffffff)
      ===================================================================================

      ===================================================================================
      =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
      =   RANK 5 PID 47176 RUNNING AT CNA309-6LJDRZ2
      =   EXIT STATUS: -1 (ffffffff)
      ===================================================================================
       The fl process could not be started.

      Error: Invalid result name.
      Error Object: ()

    • Rob
      Forum Moderator

      I'm not sure you need to assign the phase thread for properties as it's a material property. 

    • raju.chowdhury
      Subscriber

      As I have used temperature-dependent density variation, which temperature will it consider (primary or secondary phase) to calculate the density?

    • Rob
      Forum Moderator

      It should be the material temperature - try it and see what you get. 

    • raju.chowdhury
      Subscriber

      okay. I will try that.

    • raju.chowdhury
      Subscriber

      Do I need to add any command for running the simulation using parallel nodes in HPC?

    • Rob
      Forum Moderator

      Not for the UDF, you only need the NODE/HOST calls for sum loops (it's covered in the Parallel considerations chapter). You may or may not for the solver based on your IT cluster configuration: that's for local IT to advise. 

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