Fluids

Fluids

Sending information to other nodes

TAGGED: 

    • K
      Subscriber

      The UDF customization manual only describes how to send integers, reals, or strings between host and node processes. Is there a way to send Thread and cell_t datatypes? I have begin_f_loop nested inside a begin_c_loop(c,t), and I would like to send c and t to the nodes doing the begin_f_loop.

    • Rob
      Ansys Employee

      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_ChapParallelUDFUsage.html   

    • K
      Subscriber

      As stated in my original post, I looked through the customization manual and only found ways to send integers, real, or strings, but couldn’t find what I was after: how to send thread and cell_t datatypes.

      I am trying to pass cell thread and cell index information into a face loop to do the following in parallel:

      begin_c_loop(c,tc)
      {
          begin_f_loop(f,tf)
          {
              /* Computation involving f, tf, c, and tc */
          }
      }

      My understanding is that cell_t is just an integer data type, so my guess is I could just pass c by using one of the message passing commands for integers. But how would I pass the cell thread tc?

    • Rob
      Ansys Employee

      A UDF is an extra bit of coding for Fluent. It'll take data as needed (and defined) and do something. Don't worry about where the calculation is done, just worry about getting the RP_HOST and RP_NODE bits right. 

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