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

Questions about buoyantPimpleFoam and rhoPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes
  • 3 Post By Mojtaba.a
  • 7 Post By owayz
  • 2 Post By owayz
  • 1 Post By owayz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2012, 16:09
Default Questions about buoyantPimpleFoam and rhoPimpleFoam
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Hi Foamers.
I'm new to openFOAM. I have some problems understanding the descriptions of two solvers which is mentioned in user's guide. as you can see in this link:

http://www.openfoam.com/features/standard-solvers.php

The descriptions for buoyantPimpleFoam and rhoPimpleFoam are as follows:

-buoyantPimpleFoam: Transient solver for buoyant, turbulent flow of compressible fluids for ventilation and heat-transfer.

-rhoPimpleFoam: Transient solver for laminar or turbulent flow of compressible fluids for HVAC and similar applications.

1) My first question is that isn't it wrong to say "Compressible Fluids"? as i know we do not have any term as compressible fluids, instead we have "Compressible Flow". so what does it mean? does it mean that these solvers are developed for solving flows which their Mach number is above 0.3? and so we can not solve incompressible flows?

2) My next question follows the first. We do know that must of the HVAC applications take place in low velocities and so in low Mach numbers. Mostly below 0.3. So we can treat them as incompressible flows. If buoyantPimpleFoam and rhoPimpleFoam are designed for compressible flows, so how is it possible for them to be a good choice for HVAC applications?
Mojtaba.a is offline   Reply With Quote

Old   July 28, 2012, 22:20
Default
  #2
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Quote:
1) My first question is that isn't it wrong to say "Compressible Fluids"? as i know we do not have any term as compressible fluids, instead we have "Compressible Flow". so what does it mean? does it mean that these solvers are developed for solving flows which their Mach number is above 0.3? and so we can not solve incompressible flows?
Well, it is just a matter of understanding. If you are dealing with low velocities (Ma < 0.3) but considering no change of temperature in the flow, you can consider your flow to be in-compressible. But actually the Ma < 0.3 condition comes from the fact that density changes are less than 5 % (I hope I am not wrong about it). In a temperature driven flow, density can change significantly with change in temperature and we might not have an in-compressible flow. I think for the same reason all the in-compressible flow solvers doesn't solve energy equation (by Default) in solution process, but all the compressible solvers solve the energy equation, because its important for in-compressible flows. Precisely these solvers can be used to solve for low speed flows, if we have some heated wall, or some other kind of heat transfer in the flow.
Quote:
2) My next question follows the first. We do know that must of the HVAC applications take place in low velocities and so in low Mach numbers. Mostly below 0.3. So we can treat them as incompressible flows. If buoyantPimpleFoam and rhoPimpleFoam are designed for compressible flows, so how is it possible for them to be a good choice for HVAC applications?
bouyantPimpeFoam is a solver for temperature gradient driven flow. rhoPimpleFoam is a general unsteady compressible solver with pimple (piso + simple) algorithm. Pimple actually gives you more flexibility with the time step (compared to piso algorithm). I have also seen somewhere someone calling pimple as sudo transient algorithm. But it doesn't negate the fact that rhoPimpleFoam is a good solver for compressible un-steady flow simulations.
I hope this explanation will help you.
Regards,
Awais
Mojtaba.a, mgg, Thamali and 4 others like this.
owayz is offline   Reply With Quote

Old   July 29, 2012, 05:25
Default
  #3
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Thank you very much for your answer Awais. it helps alot ~
Quote:
Originally Posted by owayz View Post
Well, it is just a matter of understanding. If you are dealing with low velocities (Ma < 0.3) but considering no change of temperature in the flow, you can consider your flow to be in-compressible. But actually the Ma < 0.3 condition comes from the fact that density changes are less than 5 % (I hope I am not wrong about it). In a temperature driven flow, density can change significantly with change in temperature and we might not have an in-compressible flow. I think for the same reason all the in-compressible flow solvers doesn't solve energy equation (by Default) in solution process, but all the compressible solvers solve the energy equation, because its important for in-compressible flows. Precisely these solvers can be used to solve for low speed flows, if we have some heated wall, or some other kind of heat transfer in the flow.
1) Well my case is an HVAC application which we have heat transfer in it and so energy equation must be solved for it. Mach number is so low at about the rate of 5e-3. Because of my low Mach number, flow must be treated as incompressible. A question arises that now i must use incompressible solvers and implement energy equation in them or is it better to use buoyantPimpleFoam or rhoPimpleFoam?

2) As i said my case is incompressible and so density remains constant. As you know these two solvers, also solve for "rho" while running, but in some cases like in this case when i use these solvers there is no iterations for "rho" and its always 0. Like this:

diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0

Does it mean that solver has detected that my case is incompressible and so it doesn't solve for "rho"? if there is a condition like this, where is it checked in source of the program? of course while running there is an output for rhoPimpleFoam in terminal which shows rho max/min, like this:

rho max/min : 1.186703471 0.9931701431

But there is nothing like this in buoyantPimpleFoam.
Quote:
bouyantPimpeFoam is a solver for temperature gradient driven flow. rhoPimpleFoam is a general unsteady compressible solver with pimple (piso + simple) algorithm. Pimple actually gives you more flexibility with the time step (compared to piso algorithm). I have also seen somewhere someone calling pimple as sudo transient algorithm. But it doesn't negate the fact that rhoPimpleFoam is a good solver for compressible un-steady flow simulations.
Awais
So both buoyantPimpleFoam and rhoPimpleFoam use PIMPLE algorithm. I use buoyant PimpleFoam mostly because my governing equations include buoyancy terms too.

Regards,
Mojtaba

Last edited by Mojtaba.a; July 29, 2012 at 05:58.
Mojtaba.a is offline   Reply With Quote

Old   July 30, 2012, 09:31
Default
  #4
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Answer to your first question: If I remember there is some tutorial about icoFoam which actually goes step by step about the implementation of energy equation in icoFoam. It is up to you, how you want to approach the problem. If in-compressible solution suits you go for it.
Answer to you second question: If you look into the fvSolution in system directory you will find actually rho is not solved (or calculated) using an iterative method. I think diag suggests that row is computed directly from a diagonal Matrix (but that is just a guess), I am not sure about the implementation.
Also I see that difference between your rhomin and rhomax is significant (greater that 5% relative to rhomax). If that's what your case is reporting (after significant convergence) than may be you should check your settings again, you really might need a compressible flow solution to your problem.
Regards,
Awais
Mojtaba.a and hogsonik like this.
owayz is offline   Reply With Quote

Old   July 30, 2012, 15:59
Default
  #5
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by owayz View Post
Answer to your first question: If I remember there is some tutorial about icoFoam which actually goes step by step about the implementation of energy equation in icoFoam. It is up to you, how you want to approach the problem. If in-compressible solution suits you go for it.
Yea i have checked out that tutorial. I used it and I could implement energy equation into pisoFoam. it works fine ~
Quote:
Answer to you second question: If you look into the fvSolution in system directory you will find actually rho is not solved (or calculated) using an iterative method. I think diag suggests that row is computed directly from a diagonal Matrix (but that is just a guess), I am not sure about the implementation.
Also I see that difference between your rhomin and rhomax is significant (greater that 5% relative to rhomax). If that's what your case is reporting (after significant convergence) than may be you should check your settings again, you really might need a compressible flow solution to your problem.
well in fvSolution setting for rho is as follows:

"rho.*"
{
solver PCG;
preconditioner DIC;
tolerance 0;
relTol 0;
}

can you explain more about diagonal matrix? I have now idea about it.
Mojtaba.a is offline   Reply With Quote

Old   July 31, 2012, 16:08
Default
  #6
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Quote:
Originally Posted by Mojtaba.a View Post

well in fvSolution setting for rho is as follows:

"rho.*"
{
solver PCG;
preconditioner DIC;
tolerance 0;
relTol 0;
}

can you explain more about diagonal matrix? I have now idea about it.
Well my understanding is that no extra equation is being solved for rho and rho gets specified because of the ideal gas equation (P=rho*R*T). What you have shown above means that rho will be solved using (PCG) pre-conditioned Conjugate Gradient Method and DIC will be used as a preconditioner. Unfortunately I don't know enough about fvSchemes and fvSolution. May be someone else could answer your question properly.

Regards,
Awais
Mojtaba.a likes this.
owayz is offline   Reply With Quote

Old   August 1, 2012, 05:50
Default
  #7
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by owayz View Post
Well my understanding is that no extra equation is being solved for rho and rho gets specified because of the ideal gas equation (P=rho*R*T). What you have shown above means that rho will be solved using (PCG) pre-conditioned Conjugate Gradient Method and DIC will be used as a preconditioner. Unfortunately I don't know enough about fvSchemes and fvSolution. May be someone else could answer your question properly.

Regards,
Awais
That makes sense.
Thanks again for your answers.
Mojtaba.a 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
BuoyantPimpleFoam Wokl OpenFOAM Running, Solving & CFD 1 June 21, 2012 04:55


All times are GMT -4. The time now is 16:07.