|
[Sponsors] |
April 30, 2018, 09:53 |
density source term in momentum equation
|
#1 |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
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 |
|
April 30, 2018, 15:24 |
|
#2 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
You mean the Boussinesq approximation?
|
|
April 30, 2018, 15:27 |
|
#3 |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
||
April 30, 2018, 15:30 |
|
#4 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
buoyantPimpleFoam/buoyantSimpleFoam already implement the boussinesq approximation for Incompressible NSE
|
|
April 30, 2018, 15:33 |
|
#5 |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
||
May 2, 2018, 02:06 |
|
#6 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65 |
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. |
|
May 2, 2018, 02:21 |
|
#7 | |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
Quote:
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) |
||
May 2, 2018, 05:35 |
|
#8 | |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
Quote:
|
||
May 2, 2018, 05:42 |
|
#9 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
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.
|
|
May 2, 2018, 08:33 |
|
#10 | |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
Quote:
Regards, Sina |
||
May 2, 2018, 08:47 |
|
#11 | |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15 |
Quote:
But to answer your question: the equations in the photo are correct, assuming y the direction of gravity. |
||
May 2, 2018, 19:17 |
|
#12 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65 |
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) |
|
May 5, 2018, 14:16 |
|
#13 | |
Senior Member
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11 |
Quote:
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 |
||
|
|
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 |