Fluids

Fluids

Hooking UDF for total pressure failed

    • Daicha
      Subscriber
      Hello experts.nI am trying to set constant pressure for the pressure inlet boundary.nSo, I made the following UDF to set total pressure at the inlet.nThough Fluent successfully interpreted the UDF, Fluent did a forced shutdown when I initialize the model with the message MPI error ... etc at console.nHow can I overcome this problem ?? DEFINE_PROFILE(zenatsu,t,i)n{n  real den, vel;n  face_t f;n  #define p 300000;n  n  den=F_R(f,t);n  vel=F_U(f,t);nn  begin_f_loop(f,t)n    {n      F_PROFILE(f,t,i) = den*vel*vel/2+p;n    }n  end_f_loop(f,t)n}nnBest regardsnnDaichan
    • DrAmine
      Ansys Employee
      You need to check dome examples in YDF manual. Your UDF is wrong and you require some training and reading some example. If you want to set a constant pressure or any Profile you can on Rely on the new Fluent Expressions which are suited for beginners and non programmers n
Viewing 1 reply thread
  • You must be logged in to reply to this topic.