We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

UDF describing the relationship between pressure loss and mass flow rate

    • 617283443
      Subscriber
      Dear experts!
           I have a region of high pressure loss in my piping system.I want to insert a region similar to porous media in the piping system grid.The pressure loss in this region is equal to the square of the mass flow rate.How do I write UDF in this region.The inlet of the piping is the mass flow inlet and the outlet is the pressure outlet.Thank you in advance!
       
    • Rob
      Forum Moderator

      Why can't you use porous media? 

      • 617283443
        Subscriber

        Dear Rob!

             Thank you for you reply!I have a long pipe containing compressed air, the air is modeled as an ideal gas model, if the pressure loss is large, the density change will be large and the corresponding velocity change will be large. I know the relationship between mass and pressure loss, but not the relationship between velocity and pressure loss.

    • Rob
      Forum Moderator

      Not easy as the data access macros are mostly velocity based as Fluent solves for momentum. The fluxes will be available, but you'd then potentially be messing with momentum sinks as you wouldn't set a pressure loss. 

      You may need to review what data you have and then rethink the modelling approach. 

Viewing 2 reply threads
  • The topic ‘UDF describing the relationship between pressure loss and mass flow rate’ is closed to new replies.