Fluids

Fluids

Getting error while Hooking UDF on Cluster – Error: eval: unbound variable

    • vibration
      Subscriber

      Could anyone help me in getting the inlet boundary condition UDF hooked on cluster?


      This is the UDF I am using, which gets compiled successfully on cluster, where it creates two folders under libudf (3ddp_host and 3ddp_node) :


      #include "udf.h"


      DEFINE_PROFILE(in_velocity, thread, position)


      {


      real u_mean = 2;


      real a = 0.05;


      real omega = 252;   


      real t = CURRENT_TIME;


      face_t f;


      begin_f_loop(f,thread)


      {


      F_PROFILE(f,thread,position) = u_mean + a*sin(omega*t);


      }


      end_f_loop(f,thread)


      }


       


      This is the part of the journal file, which I am using:


      ;;;;;;Compiling UDF;;;;;;


       


      define/user-defined/compiled-functions compile libudf yes velocity-parallel.c "" ""


      define/user-defined/compiled-functions load libudf


       


      ;;;;;;Mesh Partition;;;;;;


      parallel/partition/auto/use-case-file-method yes


       


      ;;;;;;Reading in the case file;;;;;;


       


      rc simulation.cas.gz


       


      ;;;;;;Inlet Boundary Condition: Velocity Profile UDF;;;;;;


       


      define boundary-conditions velocity-inlet pipe-inlet no no yes yes yes yes udf in_velocity::libudf no 0 no no yes 250 no no no yes 5 0.022 yes


       


      This is the part of the error file, which occurred during the hooking process:


      > (pipe-inlet)


      Error: 2.5 > 1 (maximum allowed)


       


      Error: eval: unbound variable


      Error Object: no


      Invalid percentage


       


      Error: eval: unbound variable


      Error Object: no


      Invalid percentage


       


      Error: eval: unbound variable


      Error Object: no


      Invalid percentage


       


      Error: eval: unbound variable


      Error Object: yes


      Invalid percentage


      invalid command [yes]


       


       


      P.S. udf is getting compiled without using #if !RP_HOST

    • DrAmine
      Ansys Employee
      First debugging test will be setting and running interactively
Viewing 1 reply thread
  • You must be logged in to reply to this topic.