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

explicitPorositySource

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By stathisk
  • 1 Post By stathisk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2016, 11:33
Default explicitPorositySource
  #1
New Member
 
stathis
Join Date: Feb 2016
Posts: 7
Rep Power: 10
stathisk is on a distinguished road
Good evening,
I'm trying to validate fvOptions/explicitPorositySource using pimpleFoam but haven't got any success yet.
Specifically, I used pimpleFoam (openFoam versions 3.0.1 and 4) in various validation cases and my results are always deviating from corresponding results of the literature.
I believe that it has to do with the porosity parameter which can not be explicitly defined in explicitPorositySource.
Nevertheless, I modify d and f coefficients by multiplying porosity and porosity^2 respectively.

For example I try to match a driven cavity case taken by:
Yang et al., Analysis of Momentum Transfer in a Lid-Driven Cavity Containing a Brinkman–Forchheimer Medium.
Transp Porous Med (2012) 92:101–118,
DOI 10.1007/s11242-011-9893-8

with the following parameters:
U = 1 [m/s]
L = 1[m]
nu visc = 0.1
Re = 10
porosity =0.1
Da Darcy= 0.001
K permeability = Da * L^2 = 0.001

resulting explicitPorositySource coefficients:
d coeff = porosity/ K= 100
f coeff = porosity^2 * 2 * Fe / sqrt(K) = 2.858
where Fe= 1.75 / sqrt(150*porosity^3)

As you can see in the attached picture (DrivenCavity.png) my results are not accurate enough.
I've also attached a working example (DrivenCavity.zip) for anyone who would like to give it a try.

Any help is highly appreciated.

Thanks!
Attached Images
File Type: png DrivenCavity.png (10.6 KB, 136 views)
Attached Files
File Type: zip DrivenCavity.zip (8.2 KB, 75 views)
Z.M.Bao likes this.
stathisk is offline   Reply With Quote

Old   July 6, 2016, 11:34
Default
  #2
Member
 
Pierre HORGUE
Join Date: May 2009
Posts: 33
Rep Power: 17
Pedro24 is on a distinguished road
Hi stathisk,

I'm not sure but i think that the D coefficient unit is m^2 and not Darcy (1 Darcy = 0.97.10^-12 m2).

So D = 0.001 Da is equivalent to 0.97e-15 m^2 in OpenFOAM.


Regards,

Pierre
Pedro24 is offline   Reply With Quote

Old   July 6, 2016, 12:24
Default
  #3
New Member
 
stathis
Join Date: Feb 2016
Posts: 7
Rep Power: 10
stathisk is on a distinguished road
Hi Pierre and thank you very much for your answer.

I believe you mean that d coefficient units are m^-2.
You're right about that, I forgot to write it in my previous post.

The input parameter in Yang et al. (2012) study is the Darcy number = 0.001 [dimensionless].
Following the definition of Darcy number we get Da=K/L^2,
which gives us the permeability K=Da*L^2 in [m^2] and not in Darcy units.
So I'm not quite sure that I should multiply Openfoam d coefficient = porosity/ K= 100 [m^-2] with 0.97e-15 m^2.


Best regards,
Stathis
stathisk is offline   Reply With Quote

Old   July 13, 2016, 07:25
Default slight lack of mass conservation with explicitPorousSource?
  #4
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
Hey I am running a simpleReactingParcelFoam case with a porous layer defined with an explicitPorousSource.
In order to setup my case, I initially turned off chemistry, lagrangian & radiation.
The case converge well ( residual in order of .0001 + some other criteria relevant to this case).

In this context, I have been noticing a slight ( ~2%) increase in mass flow through the porous layer. This mass defect decrease if I decrease the darcy coefficient.

Is this normal? ( based on some reading I will tend to think so as people recommend moving to implicit source when porosity effect on the flow increase)
It does not seem that fvOption support semiImplicitPorousSource- is this correct?

I read stuff about implicit and semiImplicit ( nUCorrectors and so forth...) and I tried to mimic the example angledDuctImplicit tutorial (with simplePorousFoam solver)

But for some reasons I cannot make the simpleReactingParcelFoam read the porosityProperties file... ( while reading the source of these solvers, I don't see any difference in their porosity treatment)

Any ideas what I could do to resolve this issue?
Thanks
JF
jf_vt is offline   Reply With Quote

Old   July 13, 2016, 07:49
Default
  #5
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
I wil correst my post above
there is a difference in porosity treatment between simplePorousFoam and simpleReactingParcelFoam.
So one way to gofor me will be to try to modify the original simpleReactingParcelFoam solver to add this porosoty treatment.
But my question in my previous post above regarding the lack of mass conservation when using explicitPorousSources in fvOptions still stands...

Thanks
JF
jf_vt is offline   Reply With Quote

Old   July 18, 2016, 04:17
Default
  #6
Member
 
Pierre HORGUE
Join Date: May 2009
Posts: 33
Rep Power: 17
Pedro24 is on a distinguished road
Quote:
Originally Posted by stathisk View Post
Hi Pierre and thank you very much for your answer.

I believe you mean that d coefficient units are m^-2.
You're right about that, I forgot to write it in my previous post.

The input parameter in Yang et al. (2012) study is the Darcy number = 0.001 [dimensionless].
Following the definition of Darcy number we get Da=K/L^2,
which gives us the permeability K=Da*L^2 in [m^2] and not in Darcy units.
So I'm not quite sure that I should multiply Openfoam d coefficient = porosity/ K= 100 [m^-2] with 0.97e-15 m^2.


Best regards,
Stathis
Hi Stathis,

L is the chacteristic length of your porous medium (particle diameter or throat width) and not the length of your computational domain.

Regards,

Pierre
Pedro24 is offline   Reply With Quote

Old   July 19, 2016, 03:15
Default
  #7
New Member
 
stathis
Join Date: Feb 2016
Posts: 7
Rep Power: 10
stathisk is on a distinguished road
Hello!

@Pierre
Yes indeed, some authors consider L as the characteristic length of the porous medium, but I've found many cases in the literature that Da number is defined using the characteristic macroscopic length scale. Yang et al. (2012) article (see my 1st post) is an example.

@JF
Sorry for the late response.
I can't tell you much about the lack of mass conservation in simpleReactingParcelFoam since it's a solver that I've never used before.
Concerning porosity treatment, I was able to improve my results by adding the porosity term in the momentum equation using the notation that Nield and Bejan propose in their book (Convection in Porous Media 4th ed., page 17, eq 1.18 , see attachment) and multiple both sides with porosity.


Best regards,
Stathis
Attached Images
File Type: png momentum.png (29.1 KB, 153 views)
ashvinc9 likes this.
stathisk is offline   Reply With Quote

Old   July 19, 2016, 06:29
Default
  #8
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
@Stathis
Thanks it is very helpful

I have digged a little further in it myself and have found that there is also a mesh size issue involved:

The mass conservation deffect is a consequence of unphysical velocity oscillation around a porous/freeflow interface.

These amplitudes create the "mass deffect" I observe when I compute massflow on the porous surface:

-They decrease when the porosity is decreased ( no surprise here...)

-At constant porosity, they decrease when the mesh size around the porous interface is decreased.

I will keep digging... and might try your suggestion.

JF
jf_vt is offline   Reply With Quote

Old   February 21, 2018, 15:19
Default
  #9
Member
 
rezaeimahdi's Avatar
 
mahdi
Join Date: Nov 2015
Location: Paris, France
Posts: 32
Rep Power: 11
rezaeimahdi is on a distinguished road
Quote:
Originally Posted by stathisk View Post
Hello!

@Pierre
Yes indeed, some authors consider L as the characteristic length of the porous medium, but I've found many cases in the literature that Da number is defined using the characteristic macroscopic length scale. Yang et al. (2012) article (see my 1st post) is an example.

@JF
Sorry for the late response.
I can't tell you much about the lack of mass conservation in simpleReactingParcelFoam since it's a solver that I've never used before.
Concerning porosity treatment, I was able to improve my results by adding the porosity term in the momentum equation using the notation that Nield and Bejan propose in their book (Convection in Porous Media 4th ed., page 17, eq 1.18 , see attachment) and multiple both sides with porosity.


Best regards,
Stathis
Hello Stathis

Could you please let me know how you add the porosity term in momentum equation?

In fact, I add porosity in the solver, but pressure cannot converge at all.

I highly appreciated if you can send your modified code to me.

Thanks
rezaeimahdi is offline   Reply With Quote

Old   February 22, 2018, 04:12
Default
  #10
New Member
 
stathis
Join Date: Feb 2016
Posts: 7
Rep Power: 10
stathisk is on a distinguished road
Hi Mahdi,

I'm afraid that I can't share the modified code.

Nonetheless, you can read the relevant information/instructions in my previous posts.

Best regards,
Stathis
stathisk is offline   Reply With Quote

Reply

Tags
explicitporositysource, fvoptions, porous media


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



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