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

SimpleFoam with body force gravity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Ladnam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2006, 08:02
Default Hello everybody, Did anybod
  #1
New Member
 
Alexander Jarosch
Join Date: Mar 2009
Location: Iceland
Posts: 6
Rep Power: 17
alexice is on a distinguished road
Hello everybody,

Did anybody already modify the simpleFoam solver to include a body force term, i.e. gravity. I would like to add that and look for some hints.

Thanks for all advice
alexice is offline   Reply With Quote

Old   June 16, 2006, 09:27
Default look at buoyantFoam, it is in
  #2
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
look at buoyantFoam, it is in there

markus
hartinger is offline   Reply With Quote

Old   June 16, 2006, 10:02
Default thanks, right I just look at t
  #3
New Member
 
Alexander Jarosch
Join Date: Mar 2009
Location: Iceland
Posts: 6
Rep Power: 17
alexice is on a distinguished road
thanks, right I just look at that. I'm new to OpenFoam so it might take me a while to get into the code. buoyantFoam uses a variable density as I understand it, whereas I treat a constant density case.

I want to let the fluid move driven by gravity. Is it maybe simpler to just define the pressure gradient instead of including it in the solver? I guess this is possible in OpenFoam ;-)
alexice is offline   Reply With Quote

Old   June 16, 2006, 10:58
Default twoLiquidMixingFoam is incompr
  #4
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
twoLiquidMixingFoam is incompressible, try that
hartinger is offline   Reply With Quote

Old   January 3, 2012, 10:11
Default
  #5
Member
 
Join Date: May 2010
Posts: 40
Rep Power: 16
Ladnam is on a distinguished road
Is this the last word in this case?

Is it not possible to model steady-state, single phase, incompressible, laminar flow with gravity in OpenFoam?
Mahmoud Abbaszadeh likes this.
Ladnam is offline   Reply With Quote

Old   May 10, 2013, 04:27
Default
  #6
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18
sharonyue is on a distinguished road
Quote:
Originally Posted by Ladnam View Post
Is this the last word in this case?

Is it not possible to model steady-state, single phase, incompressible, laminar flow with gravity in OpenFoam?
I also want to try this. Did you find the solution?

Thanks
sharonyue is offline   Reply With Quote

Old   May 14, 2013, 02:03
Default
  #7
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by sharonyue View Post
I also want to try this. Did you find the solution?

Thanks
Quote:
Originally Posted by Ladnam View Post
Is this the last word in this case?

Is it not possible to model steady-state, single phase, incompressible, laminar flow with gravity in OpenFoam?
Did you get the solution?
Instead of variable density suppose I want constant density.
Do you think the answers in both cases will differ?
I too want to know the answer..

Last edited by Tushar@cfd; May 14, 2013 at 03:10.
Tushar@cfd is offline   Reply With Quote

Old   May 14, 2013, 12:44
Default
  #8
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
Quote:
Originally Posted by Tushar@cfd View Post
Did you get the solution?
Instead of variable density suppose I want constant density.
Do you think the answers in both cases will differ?
I too want to know the answer..
Hi Tushar,
I guess you might have already traced out solution....
Anyways if your rho is fixed you just have to add it as source term in UEqn.h() with g as vector.
u may define them in create Fields.h. So the efftect will be seen as source term in weight of fluid in only 1 momentum eq but rest would remaiin the same as before...
Correct me if i am wrong ...

Sachin
sachin is offline   Reply With Quote

Old   May 15, 2013, 01:32
Default
  #9
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by sachin View Post
Hi Tushar,
I guess you might have already traced out solution....
Anyways if your rho is fixed you just have to add it as source term in UEqn.h() with g as vector.
u may define them in create Fields.h. So the efftect will be seen as source term in weight of fluid in only 1 momentum eq but rest would remaiin the same as before...
Correct me if i am wrong ...

Sachin
Thanks for replying..

I have already done that thing with buoyantSimpleFoam... But later dropped the idea as it didn't suit my requirements and worked with Boussinesq approximation. If you see the code here variable density is needed for buoyancy..

I think I should say in detail, since I am working with buoyantBoussinesqSimpleFoam...

I have solution but these differs from the numerical approach of the papers. For a very simple case the results matches exactly with the journal papers. But for the case of complex geometry results are showing deviations from paper. Which I don't think is permissible, with the use of higher order schemes and since the results are reaching convergence(I have set below 1e-05 for all variable is my convergence criteria). When I happen to see the Isotherms and streamlines the dissipations seems to match with the paper but the gradT value is differs. It seems convective dissipation of heat in OF is more.

Anyways, I am trying to figure it out.

Is there anyone who has solved a complex case of natural convection (especially with buoyantBoussinesqSimpleFoam)?

Last edited by Tushar@cfd; May 15, 2013 at 08:28.
Tushar@cfd is offline   Reply With Quote

Old   May 15, 2013, 01:56
Default
  #10
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Well,

Anyone successful in solving natural convection of complex geometry (like heat transfer inside a room with a source object).

If yes please, try to share your views.. Are you getting the exact results (as compared with numerical results of papers)?

Thanks in Advance..


Last edited by Tushar@cfd; May 15, 2013 at 08:28.
Tushar@cfd is offline   Reply With Quote

Old   May 15, 2013, 10:13
Default
  #11
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
Sounds interesting ... Can you share the data ... what is the complexity...
CAn you share the difference ...

Points you can check -
1. What is effect of variation in Tref in boussinesq approximation
2. What is your Rayliegh number ... is it very high .. in which case it would turbulent flow
3. Changes in mesh

Best Luck
Sachin
sachin is offline   Reply With Quote

Old   May 16, 2013, 00:32
Default
  #12
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by sachin View Post
Sounds interesting ... Can you share the data ... what is the complexity...
CAn you share the difference ...

Points you can check -
1. What is effect of variation in Tref in boussinesq approximation
2. What is your Rayliegh number ... is it very high .. in which case it would turbulent flow
3. Changes in mesh

Best Luck
Sachin
Condition1:
I didn't understand this. What do you mean by variation in Tref in boussinesq approximation? Can you please explain, what kind of variation you are talking about?


Condition 2:
I already shared the data check my post...
http://www.cfd-online.com/Forums/ope...implefoam.html

Condition 3:
Well, if I am right then mesh size won't have much impact on results in case of SIMPLE algorithm.

Last edited by Tushar@cfd; May 16, 2013 at 01:49.
Tushar@cfd is offline   Reply With Quote

Old   May 16, 2013, 08:47
Default
  #13
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
I was refering to your ref temperature/ambient temperature...
I understand that these solvers might have some problems with complex geometries but the case described doesnt really seems to be a complex geometry ...
For mesh, I dont know why it is not important. your concern from what understand is not something about no convergence but about dissipation of heat. So, if the mesh does capture the heated boundary condition, the results might improve.

To check if the OF is giving some problem, you can compare it with some other s/w.
With no real case results, we can keep guessing what you can try...

If I could still thing of any more ideas, I would keep you posted.
If you do solve your problem, let me know.

Best Luck,
Sachin
sachin is offline   Reply With Quote

Old   May 16, 2013, 09:07
Default
  #14
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
I am very confident about my results.

Anyways, I am trying to figure out the same with other options.

Last edited by Tushar@cfd; May 16, 2013 at 11:14.
Tushar@cfd is offline   Reply With Quote

Old   May 9, 2019, 11:04
Default
  #15
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Quote:
Originally Posted by alexice View Post
Hello everybody,

Did anybody already modify the simpleFoam solver to include a body force term, i.e. gravity. I would like to add that and look for some hints.

Thanks for all advice
Does anyone know how 2 remove T equation from buoyantBoussinesqSimpleFoam , so that it would be converted to simpleFoam with gravity included..?
amuzeshi is offline   Reply With Quote

Old   June 16, 2022, 15:43
Default
  #16
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6
Mahmoud Abbaszadeh is on a distinguished road
Quote:
Originally Posted by amuzeshi View Post
Does anyone know how 2 remove T equation from buoyantBoussinesqSimpleFoam , so that it would be converted to simpleFoam with gravity included..?


have you got any answer to this query?

Cheers
Mahmoud Abbaszadeh 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
DPM Body Force Sandilya Garimella FLUENT 1 April 8, 2008 04:30
Flow under gravity force danvica OpenFOAM Running, Solving & CFD 0 December 12, 2007 11:22
Body force Jacob FLUENT 0 August 4, 2003 17:38
how to treat the gravity force Angela Main CFD Forum 0 January 17, 2003 04:39
UDF-Body Force Fluent_User FLUENT 0 August 9, 2002 10:07


All times are GMT -4. The time now is 21:57.