Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Density of fluid affects the results and it makes the result wrong.

    • Yagiz Guzelcan
      Subscriber

      Hello everyone. 
      I am working with 2D simulation with dynamic mesh. My geometry looks like that:

      I have 1 inlet (210 bar) and 2 outlets (0 bar). There is a motion and is defined via UDF. When the simulation starts, motion starts as well. Normally, I must use hydraulic oil properties which has 860 kg/m3 density. When I use hydrualic oil density value, the results coming out are wrong. When I switch to air, which has 1.225 kg/m3 density, the results coming are seem to be true. 

      The upper one is the result of air. Velocity values are wrong; however, the motion of the fluid from inlet to outlet ports are correct. 
      The lower one is the result of oil. Velocity values may be wrong or true; however, the motion from inlet to outlet ports are definetly wrong. Here is the 1 time step after the beginning when I use oil:
      It begins like that and afterwards the results are coming wrong. 

      For the both cases, the residuals are not diverging. However, for oil, the residuals are unstable compared to air residuals. Here is the graphs of residuals:


      Upper one is for air; lower one is for oil.

      As a result, using high density value creates something with the simulation and makes the results wrong. I am using pressure-based solver with second order interpolators. Additionally, I have tried different approaches. I changed method, solver, spatial discretization types for all properties but still have the same issue. 

      What do you think about this problem? And, how can I solve it and make the result true for hydraulic oil density value? 
      (I have also animations of pressure and velocity for both simulations with air and oil. If you want to see it I can send a link of the animations as well.)

      Thanks.

       

    • SRP
      Ansys Employee

      Hi,

      How did you initialize in both the cases?

      I suggest you to start solution with lower time step.Lowering the time step will enhance convergence.If you experience difficulty in getting convergence for desired time step, use lower time step for initial transients, once you get good convergence gradually increase time step to required value.

      Thank you

       

      • Yagiz Guzelcan
        Subscriber

        @SRP
        Hello, thank you for your attention.

        In both cases the simulations is initialized via hybrid initialization.

        I am currently using 4.97e-9 time step for both cases. My time step is very low but I will try using much lower time step as you said. However, I have no problems on convergence. Both cases are congerved to a value. The problem is that for the case where I use oil as a working fluid, congerved results are not physically meaningful.

        Thanks.

    • Rob
      Forum Moderator

      If it's transient, what should be the starting condition in the domain? Ie should the pressure be a single value, split by the narrow point? 

      • Yagiz Guzelcan
        Subscriber

        Thanks for your answer,

        I don't think I fully understand your answer. The simulation is transient, and I am utilizing dynamic mesh motion as well. The true geometry I refer to has this type of geometry. Pressure inlet of 210 bar is unchangable as well as pressure outlet ports of 0 bar. Narrow point you mention is actually a wall in the real geometry. To do the analysis without having any problems at the beginning, I simply remove the touch of the two walls which are coinciding in one point and replace the whole region with small meshed region so the fluid can flow.

        Thanks.

    • Rob
      Forum Moderator

      OK, what is the domain pressure at t=0 ? In reality and in your CFD model. 

      • Yagiz Guzelcan
        Subscriber

        Thanks for you answer,

        In reality there will be no flow for t<0. When t=0, the flow begins from 210 bar source and exiting the geometry from two outlet ports with 0 bar. 

        In my model, the first narrow point restricts flow for t<0. When t=0, the motion begins and the narrow part gets bigger and the flow proceeds towards to the both exit ports. When the motion is done, the second narrow part is created on the left side and restricts flow to go out from the left outlet port. 

        Thanks.

    • Rob
      Forum Moderator

      There may not be any flow but there will be a pressure field. That will then determine how the flow behaves, and the density if it's compressible. 

      • Yagiz Guzelcan
        Subscriber

        Thanks for your answer,

        The area open to outlet ports have 0 bar while the area open to inlet port has 210 bar of pressure. The fluid is taken as incompressible. In Fluent, constant density selected for both cases. 

        Thanks.

    • Rob
      Forum Moderator

      Incompressible at 210bar? 

      With pressure boundaries the mass flow is a result, rather than being defined. With a good initial condition that's OK, if you've not been careful, or the there are multiple numerically valid results the solution may be a little odd. That's why we don't just take residual values when checking for convergence. 

      • Yagiz Guzelcan
        Subscriber

         

        Thanks for your answer,

        My model has hydraulic oil as a working fluid. That is why I take it as incompressible fluid. For both cases (air and oil) the solution converges. However, for the case of oil, converged result is not I expected to happen in the system. There maybe another numerical solution which the program is converged to as you explanied. The boundary conditions must be pressure type. I cannot change that. However maybe I can change something else to get expected results. 

        What should I change to get expected results? After I posted my question, I have tried that I started the simulation for air and after the results were converging I switched to hydraulic oil (in terms of density). Nevertheless, at the moment I changed the density, results were completely off and at the end the simulation I got the same result as I used oil density at the beginning of the simulation. 

        Thanks.

         

    • Rob
      Forum Moderator

      Please post the pressure field at t=0 

      • Yagiz Guzelcan
        Subscriber

        Turqoise -> 0 bar
        Red        -> 210 bar
        Here is the pressure field at t=0. When the motion begins (for t>0) the field itself goes wrong.



        Thanks.

         

    • Rob
      Forum Moderator

      What's the operating pressure? The only issue with the above is going to be keeping the solver stable as the gap opens. I assume the gap isn't closed to start with as that will mess with the solver schemes. 

      • Yagiz Guzelcan
        Subscriber

        You are correct. The gap is not fully closed. There is a little gap between two sides. Operating pressure is 101325 Pa. 

        Thanks

    • Rob
      Forum Moderator

      Sounds sensible. I suspect it's a solver where the flow jet entrains too much material from one of the two outlets and then pushes it all out of the other.  What are you expecting to see?

      • Yagiz Guzelcan
        Subscriber

        At the beginning I posted the velocity contour in which air was the working fluid. I expect to have that type of result. I do not expect to have any fluid flow going out or coming in at the end of the result.

        Summary-> What I expect is like that: (this result is for air as I mentioned in my first post)

                      What I get: (this result is for oil as I mentioned in my first post)

        Both results are taken at the end of the simulation.

        I asked my supervisor about it and he said no problem. However, I belive there is something off with this result.

        Thanks.

    • Rob
      Forum Moderator

      How does the flow look early on in the model?  

      • Yagiz Guzelcan
        Subscriber

        The image above was taken right after the first 10 time steps after the simulation started. 

        Thanks.

    • Rob
      Forum Moderator

      I can see how the flow is evolving at the restriction, that makes sense. The remainder of the flow field doesn't.  How did you initialise the flow? 

      • Yagiz Guzelcan
        Subscriber

        The initialization done via using Hybrid initialization with 30 iterations. 

        Thanks.

    • Rob
      Forum Moderator

      And what is the velocity at t=0?  I suggest reading up on what hybrid initialisation is doing, and then tell me why it's often a bad idea in transient flow models. 

      • Yagiz Guzelcan
        Subscriber

        Hello,

        I couldnt find any useful source on hybrid initialization. Could you tell me why?

        Thanks.

    • Rob
      Forum Moderator

      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_ug/flu_ug_sec_init_hybrid.html  The starting point is based on the boundary conditions, so will take inlet and outlet conditions into account over the whole domain. 

Viewing 12 reply threads
  • The topic ‘Density of fluid affects the results and it makes the result wrong.’ is closed to new replies.