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

Solver for gas flow through porous media including heat transfer in OpenFOAM v3.0+

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2019, 07:58
Default
  #21
New Member
 
Anna
Join Date: Feb 2019
Posts: 17
Rep Power: 7
iconde is on a distinguished road
Hello Germilly,

Really interesting work, we are working in chtMultiRegionTwoPhaseEulerFoam with two regions, one fluid (with air and iron inside) and another one solid (porous sand) trying to simulate filling a sand mold with iron.

We have problems evacuating the air without outlet pipes and we are trying to find a boundary condition to fix it. have you got any idea how we can do this?

Also, have you got any "tutorial case" to see how do you prepare your solver?

Thanks in advance.
iconde is offline   Reply With Quote

Old   December 12, 2019, 11:24
Default
  #22
New Member
 
Germilly Barreto
Join Date: Jul 2016
Location: Portugal
Posts: 25
Rep Power: 10
Germilly is on a distinguished road
Quote:
Originally Posted by iconde View Post
Hello Germilly,

Really interesting work, we are working in chtMultiRegionTwoPhaseEulerFoam with two regions, one fluid (with air and iron inside) and another one solid (porous sand) trying to simulate filling a sand mold with iron.

We have problems evacuating the air without outlet pipes and we are trying to find a boundary condition to fix it. have you got any idea how we can do this?

Also, have you got any "tutorial case" to see how do you prepare your solver?

Thanks in advance.
Hello,

There were some good online tutorials, which are mentioned in #4, #12 and #18 of this thread, but they are not available now, and I dont know why. Have you seen my comments in #18 of this thread? See if the following tutorial can help.


GB
iconde likes this.
Germilly is offline   Reply With Quote

Old   December 15, 2019, 16:16
Default
  #23
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,


I just want to jump in as I was developing a similar model for calculating the heating-up of a SCR catalyst (6 m³ volume) within an exhaust pipe system. I was using pimpleFoam for my approach with some extensions. My extension was as follows:


  • I defined the SCR as cellZone while using the Darcy-Forchheimer equation to model SCR catalyst as a porous media
  • I added the energy equation to the solver (actually a passive scalar)
  • The properties for cp, lambda and rho for the air were implemented as polynomial functions based on the VDI Wärmeatlas database
  • For the cellZone, I calculated the temperature depended properties of the SCR material (cp, lambda, rho)
  • Knowing the ratio of fluid/solid in the cell zone, I modified the thermophysical properties of the fluid in the cell zone in order to get some semi-solid properties
This approach is fast, easy but the main problem is, that the heat-exchange from hot air to the solid is ideal which means that 100 % of the energy is stored within the cell zone. In other words:



  • The air behind the cell zone keeps a low temperature until the whole cell zone is heated up which does not represent the truth


Even though I am working with foam for 9 years now, you guys have interesting ideas. Thanks for sharing your thoughts.




Quote:
We have problems evacuating the air without outlet pipes and we are trying to find a boundary condition to fix it. have you got any idea how we can do this?

Personally, I would solve such topic with a codedFixed/Mixed boundary condition. E.g. if the face is in contact with air -> let the air escape (outlet) otherwise make it a fixed wall with velocity (0 0 0).
Germilly, arr0k0, iconde and 2 others like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 17, 2019, 09:58
Default
  #24
New Member
 
Anna
Join Date: Feb 2019
Posts: 17
Rep Power: 7
iconde is on a distinguished road
Hello foamers,

Thanks for your replies.

Quote:
Originally Posted by Germilly View Post
There were some good online tutorials, which are mentioned in #4, #12 and #18 of this thread, but they are not available now, and I dont know why. Have you seen my comments in #18 of this thread? See if the following tutorial can help.
Germilly thanks a lot for your suggestions. We have seen your #18 comments and tutorial but we don´t get any solution for our problem. We are focusing in a new boundary condition, because we undertand that is where we have the main problem considering that we are capable of filling the mold region as we can see in the next image, but maybe we are in wrong way. Any ideas?

https://imgur.com/y0YnNWp


Quote:
Originally Posted by Tobi View Post
I just want to jump in as I was developing a similar model for calculating the heating-up of a SCR catalyst (6 m³ volume) within an exhaust pipe system. I was using pimpleFoam for my approach with some extensions. My extension was as follows:


I defined the SCR as cellZone while using the Darcy-Forchheimer equation to model SCR catalyst as a porous media
I added the energy equation to the solver (actually a passive scalar)
The properties for cp, lambda and rho for the air were implemented as polynomial functions based on the VDI Wärmeatlas database
For the cellZone, I calculated the temperature depended properties of the SCR material (cp, lambda, rho)
Knowing the ratio of fluid/solid in the cell zone, I modified the thermophysical properties of the fluid in the cell zone in order to get some semi-solid properties
This approach is fast, easy but the main problem is, that the heat-exchange from hot air to the solid is ideal which means that 100 % of the energy is stored within the cell zone. In other words:

Thanks for your answer Tobi, in our case, we are working with chtMultiRegionTwoPhaseEulerFoam (which is new solver in Openfoam), since it allows to simulate a heat transfer between solid and fluid regions, and define two different phases in the fluid regions (air and iron).

Quote:
Originally Posted by Tobi View Post
Personally, I would solve such topic with a codedFixed/Mixed boundary condition. E.g. if the face is in contact with air -> let the air escape (outlet) otherwise make it a fixed wall with velocity (0 0 0).
Considering that our fluid cavity is surrounded by a solid mold and has 2 phases; air and iron, the aim is to achieve a boundary in which the air tends to 0, so that the entire cavity ends up being filled with metal.

For this we are trying to manipulate the values ​​of pressure, velocity and fraction (alpha.air, alpha.iron) at the boundaries using the GroovyBC. However, we failed to reduce the pressure levels. Do you think the solution could be something which involves the mass fraction?

Regards,

Anna
arr0k0 likes this.
iconde is offline   Reply With Quote

Old   December 17, 2019, 11:59
Default
  #25
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by iconde View Post
For this we are trying to manipulate the values ​​of pressure, velocity and fraction (alpha.air, alpha.iron) at the boundaries using the GroovyBC. However, we failed to reduce the pressure levels. Do you think the solution could be something which involves the mass fraction?

Regards,
S
Anna
Hi Anna,

during my PhD. I also did some mold filling but I was too lazy to investigate into such topic too much. Right now your pictures looks like "MAGMAsoft". You meshed with snappyHexMesh without snapping, right?

For your boundary problem, I cannot give you a clear answer as I never did it.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 17, 2019, 12:12
Default
  #26
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
@Germilly, can you please give some statement about the following code:
Code:
+ hconv*Tf-fvm::Sp(hconv, Ts)
The Sp() term should be a stabilization term, right. I am wondering why you are using Ts here?
Germilly likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 17, 2019, 13:28
Default
  #27
New Member
 
Germilly Barreto
Join Date: Jul 2016
Location: Portugal
Posts: 25
Rep Power: 10
Germilly is on a distinguished road
Quote:
Originally Posted by Tobi View Post
@Germilly, can you please give some statement about the following code:
Code:
+ hconv*Tf-fvm::Sp(hconv, Ts)
The Sp() term should be a stabilization term, right. I am wondering why you are using Ts here?
Hello Tobias,

The energy equation for the solid structure (solid phase) is:
0=\nabla\cdot(\lambda_{se}\nabla T_s)+h_v(T_f-T_s)+Q_{ir}+Q_{solar}

The term ... +h_v(T_f-T_s) ..., which describes the heat transfer between the solid and fluid, can be written as ... +h_v*T_f - h_v*T_s ... In OpenFOAM I have:
Code:
+ hconv*Tf-fvm::Sp(hconv, Ts)
If I remember, the fvm::Sp is to make the variable T_s to be as implicit source term (I am solving the equation for variable T_s).

Am I right?

There are some parts of the code that need to be improved. If you have any suggestion, I would be grateful if you can share them here.

GB
Germilly is offline   Reply With Quote

Old   December 18, 2019, 04:50
Default
  #28
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi


Hi,


Quote:
If I remember, the fvm::Sp is to make the variable Ts to be as implicit source term (I am solving the equation for variable Ts).

Not 100 % correct. the fvm:: operator do belong to the implicit part. fvc:: is an explicit calculation. The Sp() term for me was always necessary for boundedness regarding the convective term (https://openfoam.org/release/2-2-0/n...s-boundedness/). However, I guess you are right that the Sp() term makes a source implicit and the SuSp does make it implicit and explicit. I never checked these things in detail.


However, my latest results:
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 22, 2019, 14:21
Default
  #29
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,


I just want to refer to my post I made a few days ago: How to implement equation of mixture fraction and variance of mixture fraction?


Here, one can see the Sp() Term

PDF: Nikolas
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 2, 2023, 18:45
Default
  #30
New Member
 
Salman
Join Date: Nov 2021
Location: India
Posts: 1
Rep Power: 0
Mhd_Sal is on a distinguished road
Hello Germilly,


Here i am replying for your 3 year old post. i am working on something similar to what you have done. i wanted to follow the tutorial you provided above. Sadly it says "Page not found", may be i'm too late and they have taken down the page. Is there any other way to get that tutorial back?


Thanks,
Sal
Mhd_Sal is offline   Reply With Quote

Old   May 10, 2024, 08:37
Default Thoughts on heat transfer in porous media
  #31
Member
 
Wowbagger's Avatar
 
Michael S.
Join Date: May 2020
Location: Hamburg, Germany
Posts: 52
Rep Power: 6
Wowbagger is on a distinguished road
Send a message via Skype™ to Wowbagger
Hi at all and thanks for all the contributions which helped me a lot with my current case of simulating a porous media.
Especially the catalyst tutorial from Tobi helped me saving hours!

Thanks for that.



I opened a new thread bcs I got a few thoughts about the setup with the geometrical data.
Feel free to have a look at: Porous media - heat transfer - set up of mean values
Wowbagger 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
Flow through two combined porous media with diffrent permeability Sandee Main CFD Forum 0 March 28, 2015 11:35
Flow through porous media: permeability issue butterfly1 CFX 3 December 23, 2013 22:23
Reactive flow in porous media with volume expansion smhosseini Main CFD Forum 3 December 5, 2013 08:52
rotating porous media in a general flow a_dores FLUENT 0 October 31, 2010 05:50
porous media: Fluent or Star-CD? Igor Main CFD Forum 0 December 5, 2002 16:16


All times are GMT -4. The time now is 13:29.