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

buoyantPimpleFoam with boussinesq is incompressible?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By visakhmg
  • 1 Post By Krapf
  • 1 Post By Bloerb
  • 1 Post By agustinvo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2020, 07:48
Post buoyantPimpleFoam with boussinesq is incompressible?
  #1
New Member
 
Visakh
Join Date: Dec 2010
Location: Bangalore, India
Posts: 7
Rep Power: 16
visakhmg is on a distinguished road
Hello everyone,
I am trying to solve 2D Rayleigh-Benard convection with OpenFOAM 7. I am using buoyantPimpleFoam with boussinesq model for equation of state. Does this make the solver incompressible? Does the solution differ in any way with that of the (deprecated) buoyantBoussinesqPimpleFoam? Also, does the value of molWeight play any role in the solution? Because I'm trying to get a Nu vs Ra, Pr correlation, my only input parameters are Ra and Pr, or indirectly, mu, Cp, rho0, beta, Pr and deltaT, L from the boundary conditions. How does sensibleInternalEnergy instead of sensibleEnthalpy make a difference in this context?
And finally, is there a better way to solve non-dimensional version of equations (than solving th usual dimensional equations by adjusting the fluid properties to get the desired Ra, Pr)?

Attaching my thermophysicalProperties dictionary:
Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState Boussinesq;
    specie          specie;
    energy          sensibleEnthalpy;
}

mixture
{
    specie
    {
        molWeight   18;
    }
    equationOfState
    {
        rho0        996.5;
        T0          300;
        beta        3.03e-04;
    }
    thermodynamics
    {
        Cp          4195;
        Hf          0;
    }
    transport
    {
        mu          0.8e-2;
        Pr          6.0;
    }
}
saidc. likes this.
visakhmg is offline   Reply With Quote

Old   September 15, 2020, 18:49
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
Some answers:
Quote:
Originally Posted by visakhmg View Post
I am using buoyantPimpleFoam with boussinesq model for equation of state. Does this make the solver incompressible?
Yes, since the density then no longer depends on the pressure, the flow is incompressible.

Quote:
Originally Posted by visakhmg View Post
Also, does the value of molWeight play any role in the solution?
It is used to calculate the specific gas constant.
visakhmg likes this.
Krapf is offline   Reply With Quote

Old   September 18, 2020, 09:04
Default
  #3
New Member
 
Visakh
Join Date: Dec 2010
Location: Bangalore, India
Posts: 7
Rep Power: 16
visakhmg is on a distinguished road
Quote:
Originally Posted by Krapf View Post
It is used to calculate the specific gas constant.

Thanks. But I'm using Boussinesq appoximation for the equation of state. Why calculate the gas constant? What if the fluid is liquid?
visakhmg is offline   Reply With Quote

Old   September 18, 2020, 12:55
Default
  #4
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
nMoles and molWeight is not used for pureMixture. It is however used for the other options and therefore a parameter that needs to be present although it is not used in your case. Yeah c++ inheritance thingy. They got rid of some parts of it over the years though.

There was a debate about buoyantPimpleFoam and buoyantBoussinesqPimpleFoam and their differences on here a while ago. Since the Boussinesq approximation was incorporated into the equation of state it is not really incompressible if i remember correctly. However i am not certain if this is how it was implemented. You might find the thread though. What is true though is that the density is not a function of pressure.
visakhmg likes this.
Bloerb is offline   Reply With Quote

Old   September 18, 2020, 19:21
Default
  #5
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
Quote:
Originally Posted by Bloerb View Post
nMoles and molWeight is not used for pureMixture. It is however used for the other options and therefore a parameter that needs to be present although it is not used in your case. Yeah c++ inheritance thingy. They got rid of some parts of it over the years though.
Ah, I didn't know that. Sorry for the misinformation!


Quote:
Originally Posted by Bloerb View Post
There was a debate about buoyantPimpleFoam and buoyantBoussinesqPimpleFoam and their differences on here a while ago. Since the Boussinesq approximation was incorporated into the equation of state it is not really incompressible if i remember correctly. However i am not certain if this is how it was implemented. You might find the thread though. What is true though is that the density is not a function of pressure.
There seem to be different definitions of "incompressibility". Many of the equations of states in OpenFOAM, which depend only on temperature, have an "ico" (i.e. incompressible) in their name.
The German Wikipedia article on incompressible fluid contains the following statement:
Quote:
Ein Fluid, dessen Dichte nicht vom Druck abhängt, wird inkompressibel genannt – im Gegensatz zu kompressiblen Fluiden.

Dies bedeutet umgekehrt, dass Fluide, deren Dichte sich beispielsweise durch thermische Einflüsse ändert, inkompressibel sein können.
Translation:
Quote:
A fluid whose density does not depend on pressure is called incompressible - in contrast to compressible fluids.

Conversely, this means that fluids whose density changes, for example, due to thermal influences can be incompressible.
Krapf is offline   Reply With Quote

Old   September 24, 2020, 04:24
Default
  #6
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
Yes that is correct, sorry for the confusion. for rho(p,T) or rho(p) you get compressible for rho(T) incompressible behaviour. In other words, without pressure dependence you can't compress your volume by pushing on it. You can however change it's volume by heating it.



The topic i meant was the following.

Wrong implementation of the Boussinesq assumption in heat transfer solvers


the main argument here is probably that the density update shouldn't happen in all terms. I am however not familiar with the approximation and implementation to know which is the case.
Bloerb is offline   Reply With Quote

Old   September 24, 2020, 04:44
Default
  #7
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
This is a nice thread as I see, I am wondering the same and I built my own Boussinesq solver based on older OF versions.

Let's assume that buoyantSimple/PimpleFoam with Boussinesq is incompressible. What are the turbulence models employed on these simulations? Boussinesq solvers use incompressible turbulence models, but I assume that with this modification you're obliged use compressible models.

Most of the incompressible models for Reynolds stresses can be "translated into" compressible models, but if I remember correctly, only the turbulent Prandtl number is used for the turbulent heat fluxes. If you are using custom models for heat fluxes (THFM) , then some coding is needed to pass your models from the incompressible to the compressible framework.

This is why I'd build my own Boussinesq solvers until I find out a good way to add my custom THFM models
zhenFoam likes this.
agustinvo is offline   Reply With Quote

Reply

Tags
boussinesq approximation, buoyanboussinesqpimple, rayleigh-benard


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
[IHFOAM] The IHFOAM Thread Phicau OpenFOAM Community Contributions 392 September 8, 2023 19:10
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 19:19
buoyantPimpleFoam and incompressible fluid (temperature dependent properties) agustinvo OpenFOAM Running, Solving & CFD 2 May 26, 2016 18:33
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM Programming & Development 1 February 16, 2011 21:52
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM 0 December 16, 2010 08:08


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