|
[Sponsors] |
April 8, 2016, 07:33 |
Setting porosity in porousSimpleFoam
|
#1 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
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, |
|
November 21, 2017, 13:24 |
|
#2 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
I stumbled at the same thing. Did you ever find anything about specifying porosity?
|
|
November 21, 2017, 13:45 |
|
#3 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
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. |
|
November 23, 2017, 06:42 |
|
#4 | |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
Quote:
|
||
November 23, 2017, 08:47 |
|
#5 |
Member
António Soares
Join Date: Mar 2015
Location: Lisbon, Portugal
Posts: 48
Rep Power: 11 |
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 value (you just use it to calculate D and F). The problem here is that it then just uses the seepage velocity (which is the medium velocity of the fluid in the porous channels), and not the Darcy velocity it should use inside the porous medium. The Darcy velocity is: [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 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. |
|
December 1, 2017, 10:15 |
|
#6 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
Can anyone please clarify here? Anyone who knows more about porous media treatment in OpenFoam ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 10:53 |
Problem in setting porosity region for rhoPorousSimpleFoam | run_cfd | OpenFOAM Pre-Processing | 1 | May 31, 2011 10:02 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 22:58 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |