Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

How TO WRITE UDF FOR PULSATILE PRESSURE GRADIENT?

    • DEBA
      Subscriber

      HELLO SIR HOW TO WRITE UDF FOR FOLLOWING PR. GRADIENT PLEASE HELP ME 


      I HAVE ATTACHED ONE IMAGE FILE


    • mli
      Ansys Employee

      We have UDF training material and tutorials to help you get started. Let us know if you do not have access.

    • DEBA
      Subscriber

      No sir I have not that material.Please sir help me writing this equation . Please  also provide this material.

    • raul.raghav
      Subscriber

      Refer to the following example from the Fluent UDF Manual. See attached screenshot of the Ansys Help Viewer:





      Raef also has a video on pressure inlet condition using a UDF:


      CFD ANSYS Tutorial – Variable Transient Inlet Boundary condition using a UDF | FLUENT

    • Amine Ben Hadj Ali
      Ansys Employee

      Removing the links to sharcnet. Please refer to the ANSYS online help which is accessible for students.

    • DEBA
      Subscriber

       ANY ONE PLEASE SIR HELP . THIS IS URGENT SIR

    • DEBA
      Subscriber

      THIS IS KNOWN TO ME BUT IS THER ANY METHOD FOR DEFINING PRESSURE GRADIENT

    • Rob
      Forum Moderator

      As has been posted in response to other questions, the UDF manual is a good starting point, and from there you will need a DEFINE_PROFILE to set the pressure. You are also not defining a pressure gradient, Fluent will calculate that, you need to define the inlet pressure, and possibly the outlet depending on what you're modelling. Given blood is incompressible, I'd consider using a velocity boundary, again referring to the UDF manual and DEFINE_PROFILE  example. 

    • DEBA
      Subscriber

      SIR I HAVE WRITTEN ONE UDF CODE BUT GETTING ERROR 


      ERROR IS fluent/14.0.0/src/dual_cell.h:line 1 : parse error.


      I WILL ATTACH MY UDF FILE

    • Amine Ben Hadj Ali
      Ansys Employee

      You need definitely to attend a basic C workshop and UDF training. "mu" is not defined and there is line missing ";". That was exception looking into your UDF. 

Viewing 9 reply threads
  • The topic ‘How TO WRITE UDF FOR PULSATILE PRESSURE GRADIENT?’ is closed to new replies.