CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

twoLiquidMixingFoam - continuity equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2014, 07:15
Default twoLiquidMixingFoam - continuity equation
  #1
New Member
 
Jens
Join Date: Jun 2014
Posts: 3
Rep Power: 12
jenssnej is on a distinguished road
Hello community,

I am working with the twoLiquidMixingFoam Solver. Since this solver is used for mixing of multiple miscible fluids the density varies in space and time although the fluids are incompressible.
The solver uses the incompressible eddy viscosity models where the divergence of the velocity in the boussinesq approach is multiplied with a factor of 1/3 and not 2/3.
Besides the pressure equation in this solver is derivated with the assumption of a divergence free velocity field.

My problem would be solved if somebody could tell me why the solver uses the continuity equation div u = 0 which requires a constant density.

Thanks in advance, Jens
jenssnej is offline   Reply With Quote

Old   June 18, 2014, 08:25
Default
  #2
New Member
 
Tommy V
Join Date: Nov 2013
Posts: 29
Rep Power: 12
Villo is on a distinguished road
div(u)=0 means that your fluid is incompressible, not that your density is constant.
Your difference in density field will be take in account in the momentum equation and in the alpha equation
Villo is offline   Reply With Quote

Old   June 18, 2014, 11:24
Default
  #3
New Member
 
Jens
Join Date: Jun 2014
Posts: 3
Rep Power: 12
jenssnej is on a distinguished road
Quote:
Originally Posted by Villo View Post
div(u)=0 means that your fluid is incompressible, not that your density is constant.
Your difference in density field will be take in account in the momentum equation and in the alpha equation

Thanks for your answer.
But I do not understand how you get div(u)=0 with a varying density. The temporal derivation of the density in the continuity equation is not zero if the density is not constant. So you could not simplify the continuity equation to div(u)=0. Or am I wrong?
jenssnej is offline   Reply With Quote

Old   June 18, 2014, 12:02
Default
  #4
New Member
 
Tommy V
Join Date: Nov 2013
Posts: 29
Rep Power: 12
Villo is on a distinguished road
Quote:
Originally Posted by jenssnej View Post
Thanks for your answer.
But I do not understand how you get div(u)=0 with a varying density. The temporal derivation of the density in the continuity equation is not zero if the density is not constant. So you could not simplify the continuity equation to div(u)=0. Or am I wrong?
Here comes the point... density is varying in space and time (transient simulation with a certain distribution in your domain) but is not changing due to compression effects... that`s why continuity equation of twoLiquidMixingFoam (being a incompressible solver) respect the condition div(u)=0.
Maybe you will find strong confirmations on what i said checking the first section of http://en.wikipedia.org/wiki/Incompressible_flow
If you look in the attached file you can see that the solver take into account the spatial and temporal distribution of the density field in the momentum equation.
Attached Images
File Type: jpg Capture.jpg (35.8 KB, 118 views)
Villo is offline   Reply With Quote

Old   June 19, 2014, 09:52
Default
  #5
New Member
 
Jens
Join Date: Jun 2014
Posts: 3
Rep Power: 12
jenssnej is on a distinguished road
Quote:
Originally Posted by Villo View Post
Here comes the point... density is varying in space and time (transient simulation with a certain distribution in your domain) but is not changing due to compression effects... that`s why continuity equation of twoLiquidMixingFoam (being a incompressible solver) respect the condition div(u)=0.
Maybe you will find strong confirmations on what i said checking the first section of http://en.wikipedia.org/wiki/Incompressible_flow
If you look in the attached file you can see that the solver take into account the spatial and temporal distribution of the density field in the momentum equation.
Ok, thanks. I have got one final question: are the calculated values of the velocity and volume faction density weighted? Or is the favre filtering as well only applied in compressible flows?

Last edited by jenssnej; June 20, 2014 at 06:49.
jenssnej is offline   Reply With Quote

Old   June 20, 2014, 06:06
Default
  #6
New Member
 
Tommy V
Join Date: Nov 2013
Posts: 29
Rep Power: 12
Villo is on a distinguished road
Good question, i never check this fact... but being that`s a incompressible solver should use a time averaging
Villo is offline   Reply With Quote

Old   August 20, 2014, 13:41
Default
  #7
New Member
 
Christiano Molossi
Join Date: Sep 2013
Posts: 10
Rep Power: 13
m.Chrsitiano is on a distinguished road
does twoLiquidMixingFoam uses boussinesq aproximation?
m.Chrsitiano is offline   Reply With Quote

Old   August 20, 2014, 19:03
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

well, if you look at pEqn.H, you'll find these lines

Code:
...
    surfaceScalarField phig
    (
        - ghf*fvc::snGrad(rho)*rAUf*mesh.magSf()
    );

    phiHbyA += phig;
...
so I guess, the answer is "yes".
alexeym is offline   Reply With Quote

Old   March 10, 2015, 12:49
Default
  #9
New Member
 
Bruno
Join Date: Oct 2014
Posts: 2
Rep Power: 0
brunotessa is on a distinguished road
Dear alexeym, sorry for the private messege! Won't happen again!

What I can observe is that "rho" is a function of "alpha1" and since "alpha1" varies with time and space the rho calculated on all the terms in the momentum equantion also varie with time and space.

This differs from the Boussinesq Aprox since the only term that should account for density change is the gravitational term.

Again, considering my very low expirience on OF I could be wrong, what do you think?

Thanks for the reply!
brunotessa is offline   Reply With Quote

Old   March 10, 2015, 14:30
Default
  #10
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You are right, my guess was wrong. It is called continuous field formulation.
alexeym is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterFoam negative alpha karasa03 OpenFOAM 7 December 12, 2013 04:41
error message cuteapathy CFX 14 March 20, 2012 07:45
mixture mass continuity v.s. volumetric mixture continuity in pressure equation kaifu OpenFOAM 0 June 9, 2011 09:14
continuity equation Rafal Main CFD Forum 4 November 29, 2006 10:27
Poisson equation vs continuity equation DJ Main CFD Forum 1 August 5, 2004 21:01


All times are GMT -4. The time now is 08:27.