Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

udf compiles the air equation of state

    • ntwy88
      Subscriber

      I am using VOF to calculate two-phase flow and I need to simulate a situation where there is negative pressure in compressible liquid liquid water. After I use udf to change the equation of state of air to Tait's equation, and derive the sound velocity equation according to Tait's equation, both imported as compiled udf, I can't calculate the velocity of compressible liquid liquid water over 20m/s, where is the error that needs to be modified?

      Thank you.

    • Rob
      Forum Moderator

      If you're changing density with pressure you can only use ideal gas, real gas or compressible liquid. 

      What happens at 20m/s? 

      • ntwy88
        Subscriber

        Thank you for your response. One question here is that the equation of state for compressible liquids in fluent is Tait's equation, may I ask if you mean not to write it as udf? I want to model a situation where negative pressure occurs in liquid water, and the air equation of state can't have negative pressure using an ideal gas. After I modified the equation of state for air using udf according to Tait's equation, it shows floating point overflow non-convergence when compressible liquid water droplet velocity exceeds 20m/s hitting the wall in still air. 

    • Rob
      Forum Moderator

      Fluent has some internal logic for density that means you can't code up pressure dependent density unless it's real gas: you use the built in models otherwise. Not sure how you'd have "negative pressure" as we usually solve against gauge. 

      • ntwy88
        Subscriber

        Thank you for your response. The impact of a high-speed droplet on a solid surface produces a transient region of high pressure at the point of impact, with subsequent propagation of shock waves. These shock waves propagate inside the droplet and are reflected at the distal end of the droplet, forming a series of sparse waves. The reflected sparse waves are focused inside the droplet, thus creating a localized negative pressure at the distal end of the droplet. This negative pressure is due to the fact that the liquid is stretched by the reflected waves, resulting in a region of negative pressure where the tension in the liquid exceeds its intrinsic pressure. The negative pressure here is the absolute pressure. Should I use a the VOF model in fluent and set both air and liquid water as compressible liquids and then calculate?

    • Rob
      Forum Moderator

      VOF should be fine, with air as ideal gas and water as a compressible liquid. Your problem is then going to be resolving the droplets sufficiently and then time scales to resolve the shocks. Not an easy model to run. 

      • ntwy88
        Subscriber

        Thank you for your response.  Another question is that my calculations considering air as an ideal gas and water as a compressible liquid water do not capture the creation of negative pressure, is this because the ideal gas does not accept the presence of negative pressure, resulting in the inability of negative pressure to occur inside the droplet? Or is there any other reason?

    • Rob
      Forum Moderator

      Water as a liquid will compress/expand as per the model. Beyond that you'll get cavitation, which is another set of models. 

      • ntwy88
        Subscriber

        Thank you for your response. You are right, but I don't consider cavitation in my simulations. I have found in the verified literature that they consider it is not necessary to take into account the thermal effects, although OPENFOAM is used in the literature.

    • Rob
      Forum Moderator

      Cavitation isn't just a thermal effect: it's a cold flow phenomena too. 

      • ntwy88
        Subscriber

        Thank you for your reply. So, may I ask if you mean to add a cavitation model?

    • Rob
      Forum Moderator

      You may need to. However as I don't know what you're after it's difficult to say, and I'm a little limited into how much advice I can offer. Talk it through with your project supervisor. 

      • ntwy88
        Subscriber

        Thank you very much for your reply.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.