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

density source term in momentum equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2018, 09:53
Default density source term in momentum equation
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi dear Foamers!
I want to add Source term for reduced gravity effect in right hand side of momentum equation. I mean I want to add g* (rho-rho0)rho or g*(rho-rho0)/rho0 ??? [rho0 is the reference fluid density. for example when your are mixing two different fluid with different densities, you must consider the whole mixed density as a rho and the first unmixed fluid density as rho0, like you discharge brine into normal water. rho0 will be the water density and rho will be the mixed density].

the question is exactly about the rho0 or rho in the Denominator???
I can see this term should be something like reduced g (g*(rho-rh0)/rho0) in reduced Froude number but what about the momentum eq??
your helps are so effective, thank you
Regards, Sina
sinatahmooresi is offline   Reply With Quote

Old   April 30, 2018, 15:24
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
You mean the Boussinesq approximation?
Santiago is offline   Reply With Quote

Old   April 30, 2018, 15:27
Default
  #3
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by Santiago View Post
You mean the Boussinesq approximation?
Technically yes
sinatahmooresi is offline   Reply With Quote

Old   April 30, 2018, 15:30
Default
  #4
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
buoyantPimpleFoam/buoyantSimpleFoam already implement the boussinesq approximation for Incompressible NSE
Santiago is offline   Reply With Quote

Old   April 30, 2018, 15:33
Default
  #5
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by Santiago View Post
buoyantPimpleFoam/buoyantSimpleFoam already implement the boussinesq approximation for Incompressible NSE
thank you , but if you want do it manually in pimpleFoam? how about this?
Regards
sinatahmooresi is offline   Reply With Quote

Old   May 2, 2018, 02:06
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Go to pimpleFoam and open up UEqn.h

You could add the source terms there & recompile the whole thing.

Or without needing to compile the solver directly, use a coded source fvOptions.
sinatahmooresi likes this.
LuckyTran is offline   Reply With Quote

Old   May 2, 2018, 02:21
Default
  #7
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Go to pimpleFoam and open up UEqn.h

You could add the source terms there & recompile the whole thing.

Or without needing to compile the solver directly, use a coded source fvOptions.
thank you, the question was about the dominator of the assumption because I see both in literature and papers, for example an ISI paper use rho in dominator of the source term, but if we see the Boussinesque approximation, in the dominator we must use reference fluid density (rho 0) not the rho ?

is my question clear enough? I think it is not.
I attached a picture, hope to be visible, so the dominator is rho, but assumption of Boussinesque will make rho0 in dominator( g*alpha*deltat)
Attached Images
File Type: png Capture.PNG (36.3 KB, 51 views)
sinatahmooresi is offline   Reply With Quote

Old   May 2, 2018, 05:35
Default
  #8
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by sinatahmooresi View Post
thank you, the question was about the dominator of the assumption because I see both in literature and papers, for example an ISI paper use rho in dominator of the source term, but if we see the Boussinesque approximation, in the dominator we must use reference fluid density (rho 0) not the rho ?

is my question clear enough? I think it is not.
I attached a picture, hope to be visible, so the dominator is rho, but assumption of Boussinesque will make rho0 in dominator( g*alpha*deltat)
The rho in the DENOMINATOR is the density of the fluid particle, thus is a constant.
Santiago is offline   Reply With Quote

Old   May 2, 2018, 05:42
Default
  #9
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Go to pimpleFoam and open up UEqn.h

You could add the source terms there & recompile the whole thing.

Or without needing to compile the solver directly, use a coded source fvOptions.
Is not as trivial! Depends on whether you solve the scalar transport equation coupled with momentum, or segregated. You'll have to integrate the term in time also, adding it explicitly is not correct.
Santiago is offline   Reply With Quote

Old   May 2, 2018, 08:33
Default
  #10
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by Santiago View Post
Is not as trivial! Depends on whether you solve the scalar transport equation coupled with momentum, or segregated. You'll have to integrate the term in time also, adding it explicitly is not correct.
Hi, of Course it is not trivial, the image I attached is about the theory not the procedure of implementation of formula, is that correct theoretically ? the source term added in y direction of momentum equation is correct? or the dominator should be rho0 ? (it is rho now)
Regards, Sina
sinatahmooresi is offline   Reply With Quote

Old   May 2, 2018, 08:47
Default
  #11
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by sinatahmooresi View Post
Hi, of Course it is not trivial, the image I attached is about the theory not the procedure of implementation of formula, is that correct theoretically ? the source term added in y direction of momentum equation is correct? or the dominator should be rho0 ? (it is rho now)
Regards, Sina
I dont know what are you trying to solve, or what is what in the photo. Again, the Boussinesq approximation is a very simple assumption. Any book on turbulence/GFD/CFD or in Wikipedia will show you the correct derivation. Anyway, this thread is not for asking those kind of questions.

But to answer your question: the equations in the photo are correct, assuming y the direction of gravity.
Santiago is offline   Reply With Quote

Old   May 2, 2018, 19:17
Default
  #12
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Oh sorry, I thought you were asking about how to implement the source terms.

The source term in the momentum equation is rho*g. The rho in the denominator comes actually from the left-hand side (it comes from the rho*u in the mass-flux).

In classical Boussinesq approximation, we say only the Buoyancy force has any dependence and the density is constant (we make two assumptions, one about the Buoyancy force and also assume density is constant). But that is classical Boussinesq, and people don't always follow classical Boussinesq. If density is constant, then there would not be any choice and rho0 would obviously be in the denominator. But whatever you do, know that this rho in the denominator comes from the left hand side and is separate from how you choose to model the Buoyancy force (F=rho*g = whatever your model is here)
LuckyTran is offline   Reply With Quote

Old   May 5, 2018, 14:16
Default
  #13
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Oh sorry, I thought you were asking about how to implement the source terms.

The source term in the momentum equation is rho*g. The rho in the denominator comes actually from the left-hand side (it comes from the rho*u in the mass-flux).

In classical Boussinesq approximation, we say only the Buoyancy force has any dependence and the density is constant (we make two assumptions, one about the Buoyancy force and also assume density is constant). But that is classical Boussinesq, and people don't always follow classical Boussinesq. If density is constant, then there would not be any choice and rho0 would obviously be in the denominator. But whatever you do, know that this rho in the denominator comes from the left hand side and is separate from how you choose to model the Buoyancy force (F=rho*g = whatever your model is here)

Hi, thanks for your time, I guess I got the point about the dominator. when we are using the incompressible version of momentum eqs, we already assumed the rho as a constant, so if we want to add a source term in the RHS of U.Eq , we most divide the g*(rho-rh0) by something constant as density, that it would be rho0 (as a constant density) here, to keep our momentum eqs as incompressible ones. is that true?
thanks for your comprehensive answer.
Regards, Sina
sinatahmooresi 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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
UDF for source term in momentum equation Enrico FLUENT 9 May 30, 2014 11:34
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
Adding implicit source term to momentum equation fs82 OpenFOAM 6 September 23, 2009 03:29


All times are GMT -4. The time now is 04:00.