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

Setting porosity in porousSimpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Outbound
  • 1 Post By Outbound

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2016, 06:33
Default Setting porosity in porousSimpleFoam
  #1
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
Greetings,

I'm working on a Master's thesis in which I'm continuing some work meant to validate the use of a porous medium to simulate dense submerged vegetation in compound channel flow.

The first stage is meant to replicate the initial study carried out using ANSYS-CFX in OpenFOAM using porousSimpleFoam. Initially I'm just using a wall with slip condition to simulate the free surface given the porousSimpleFoam doesn't do free surface interaction.

I'm having some trouble setting up the case based on the angleDuctExplicit tutorial.

I'm modifying the case for OpenFOAM 2.3.1 and using Gmsh to create the mesh.

Right now I'm having trouble setting the porosity value for the case. I used the "toposetDict" file to define the porous area, but I'm not sure where I set the actually porosity value.

I'm looking at some tutorials regarding porosity in OF but they relate to rhoPorousSimpleFoam and some of the case files are configured a bit differently.

Any help is appreciated,
kareemm2 likes this.
Outbound is offline   Reply With Quote

Old   November 21, 2017, 12:24
Default
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
I stumbled at the same thing. Did you ever find anything about specifying porosity?
deepbandivadekar is offline   Reply With Quote

Old   November 21, 2017, 12:45
Default
  #3
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
Yes, enough to complete my dissertation.

It's not online yet but it is actually very simple so I'll try to describe it here.

If you're using blockMesh to build your mesh you basically set the internal volumes which are to be the zones with porosity by naming the corresponding block as porosity (or porosity1, 2 etc. depending on how many porous zones you have and if they're not continuous) and the rest of the internal volume as your free flow area. If you're using another program to generate the mesh you can use the topoSet utility (which runs like all other utilities, i.e., by setting up a topoSetDict and running the utility in the command line) to define the porosity zone in the mesh after it's built. It's only in theses zones of the mesh that the solver will apply the extra load loss term computed through the Darcy-Forchheimer equation (or PowerLaw if you set it to that) to the Navier-Stokes equation.

Then you change your porosity parameters in the /constant/porosityProperties (for as many porous zones as you set up in the mesh), setting up the Darcy and Forchheimer term with however the problem you're solving determines those two variables.

I hope this helps.
manuc likes this.
Outbound is offline   Reply With Quote

Old   November 23, 2017, 05:42
Default
  #4
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by Outbound View Post
Yes, enough to complete my dissertation.

It's not online yet but it is actually very simple so I'll try to describe it here.

If you're using blockMesh to build your mesh you basically set the internal volumes which are to be the zones with porosity by naming the corresponding block as porosity (or porosity1, 2 etc. depending on how many porous zones you have and if they're not continuous) and the rest of the internal volume as your free flow area. If you're using another program to generate the mesh you can use the topoSet utility (which runs like all other utilities, i.e., by setting up a topoSetDict and running the utility in the command line) to define the porosity zone in the mesh after it's built. It's only in theses zones of the mesh that the solver will apply the extra load loss term computed through the Darcy-Forchheimer equation (or PowerLaw if you set it to that) to the Navier-Stokes equation.

Then you change your porosity parameters in the /constant/porosityProperties (for as many porous zones as you set up in the mesh), setting up the Darcy and Forchheimer term with however the problem you're solving determines those two variables.

I hope this helps.
Thanks for your reply. I had figured out most of this (although not 100%). But I was rather enquiring something else. But I found my answers and I've mentioned about it here.
deepbandivadekar is offline   Reply With Quote

Old   November 23, 2017, 07:47
Default
  #5
Member
 
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11
Outbound is on a distinguished road
OK,

So part of what I figured out about the porosity implementation in OF is that it's somewhat lacking. For e.g. it just applies the D and F coefficients like you said, and it doesn't ask for the porosity \phi value (you just use it to calculate D and F). The problem here is that it then just uses the seepage velocity u_s (which is the medium velocity of the fluid in the porous channels), and not the Darcy velocity u_D it should use inside the porous medium.

The Darcy velocity is:

u_D=u_s \times \phi [m/s]

"Darcy velocity is a fictitious velocity since it assumes that flow occurs across the entire cross section of the [porous media]. Flow actually takes place only through interconnected pore channels (voids), at the seepage velocity" (Smart, 2013)

I don't know if this is why in the Darcy-Forchheimer equation it then applies a \frac{1}{2} \rho value in the nonlinear term, which is a formulation I didn't see anywhere else in the literature.

Also, it didn't apply any volumetric average to the porous medium (in versions of OF 2.x at least), which "allows considering the porous zones as continuous media, characterized by their macroscopic properties only, thus eliminating the need for a detailed description of their complex internal geometry. Hence, this technique can be thought of as a spatial filter to obtain an average flow behaviour inside porous zones, as already sketched in" (Higuera Caubilla, 2015). I think the first solvers to make use of volumetric averages for porous medium are IHFOAM, which if I'm not mistaken is now integrated into OF 5.x.
Outbound is offline   Reply With Quote

Old   December 1, 2017, 09:15
Default
  #6
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Can anyone please clarify here? Anyone who knows more about porous media treatment in OpenFoam ?
deepbandivadekar is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
Problem in setting porosity region for rhoPorousSimpleFoam run_cfd OpenFOAM Pre-Processing 1 May 31, 2011 09:02
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 12:19.