Fluids

Fluids

Boundary pressure in density based solver

    • YouwuApo
      Subscriber

      Hi,


      I'm writing an UDF and trying to access the  pressure on a wall by using macro F_P() and this works fine in pressure based solver. But as far as I know, F_P() can not be used in density based solver. Is there any macro that can replace F_P() in density based solver? or other way to access wall face pressure?

    • DrAmine
      Ansys Employee
      Access next cell value and doing extrapolation if needed.
    • YouwuApo
      Subscriber

      Hi! Thank you for your reply. I tried to use pressure and the gradient of pressure on cell center to extrapolate pressure on face center. Macro C_P is available in density based solver. But I can’t access the gradient of pressure. I also tried to use C_R_G and C_T_G to solve pressure gradient with ideal gas equation but received an error message too. Do you have any recommended extrapolation method? Or where I could find a reference for pressure extrapolation in fluent?


      Best regards,


      Youwu


       

    • DrAmine
      Ansys Employee
      Check the customization manual to check how to access gradients
Viewing 3 reply threads
  • You must be logged in to reply to this topic.