Variable denisty in the contiuity and momentum equaiton
Hi,
I am writing a code for a flow with a low degree of incompressibility. So in my continuity and momentum equations, the density varies. I have never worked with variable density before so I was wondering, how does one usually decide on how the density varies and go on about solving these equations where you have velocity and density as unknowns in the continuity equations. I would appreciate any hints. Thanks, H 
mild compressibility
Hello,
For mild compressibility  your pressure correction will have an additional term as d(rho')/dt modeled as, d(p'/C2)/dt where C = speed of sound. This will go into your ap (solving for p'). C2 can be approximated to gasConstant*temperature No more big modifications from an incompressible code is required. merely include this this term in the P' eqn and you are all set. ofcourse, dont forget to update rho from P  using ideal gas law. Good luck. CFDtoy Quote:

mild compressibility
Thanks very much for you reply.
I was wondering if you knew any references on mild compressibility. I just want to know where the equations you cited come from and understand it a bit more. I am also a bit confused because my problem was an isothermal mechanical example for an incompressible fluid. So there were no thermal terms involved. The we decided to add a bit of compressibility to it. So do you think that the equations you just told me still apply for an isothermal case? Also I was told that pressure in this case is a state variable and can be related to the bulk modulus. What do you think of this? Sorry I asked too many questions. Thank you for your time. H 
mild compressibility
Sorry to be asking more questions again.
I just found out that because there are more variables involved for a compressible flow, one should also solve the energy equations plus another equations. Is this true for the case of mild compressibility? Thanks very much again! 
mild compressibility
For mildly compressible..you can get away with not solving for E. T can remain constant in the system, with rho changing with P only.
Quote:

weakly compressible
Many thanks for you help! :)

Hi,
Can I just ask if you have any references for the equations you cited in your first reply? Thanks, H 
All times are GMT 4. The time now is 21:42. 