CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

help adding the energy equation to porousinterfoam using the enthalpy formulation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2013, 15:26
Default help adding the energy equation to porousinterfoam using the enthalpy formulation
  #1
New Member
 
nadine moussa
Join Date: Mar 2012
Posts: 17
Rep Power: 3
nadine is on a distinguished road
Hello All,

I am adding the enrgy equation to porousinterfoam using the enthalpy formulation. So for my conductivity calculation, i need to multiply each material conductivity with the cell porosity.

I search around to find out how to use the cell porosity but I didn't have any luck, so please can anyone lead me with his or her suggestions?

Thank you all,
Nadine
nadine is offline   Reply With Quote

Old   Today, 05:30
Default
  #2
New Member
 
Join Date: Feb 2013
Posts: 6
Rep Power: 2
Natalie2210 is on a distinguished road
Hi!

I'm afraid I cannot help you with your original question but I wonder whether you tried some simple cases with porousInterFoam?

for example, if a so-called "rectilinear flow" is considered which is basically a 1D flow (imagine a rectangle where you have the inlet on the left hand side and the outlet on the right) there is an analytical solution to the flow front progression,

xf = sqrt(2*K*P0*t/(mu*eps))

where xf denotes the flow front progression, K the permeability of the porous medium, P0 the injection pressure, mu the viscosity in Pa*s and eps the porosity.

Now, as far as I have gleaned, the porosity eps is not taken into account when using the porousInterFoam solver but even if I assume eps=1, the solver does not yield correct results. Have you /has anyone experienced this problem?

There have been some discussions last year to that topic and I also found a debugged version of the porousInterFoam solver (http://sourceforge.net/apps/mantisbt...iew.php?id=129) which should repair the problem of not taking the porosity into account. I'm trying to compile this debugged version and I will let you know whether this fixes the problem I described above, but still, I'm curious of your experiences with porousInterFoam.

Greetings, Natalie
Natalie2210 is offline   Reply With Quote

Old   Today, 07:47
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: France, Toulouse
Posts: 178
Rep Power: 6
Cyp is on a distinguished road
Quote:
Originally Posted by Natalie2210 View Post
Hi!

I'm afraid I cannot help you with your original question but I wonder whether you tried some simple cases with porousInterFoam?

for example, if a so-called "rectilinear flow" is considered which is basically a 1D flow (imagine a rectangle where you have the inlet on the left hand side and the outlet on the right) there is an analytical solution to the flow front progression,

xf = sqrt(2*K*P0*t/(mu*eps))

where xf denotes the flow front progression, K the permeability of the porous medium, P0 the injection pressure, mu the viscosity in Pa*s and eps the porosity.

Now, as far as I have gleaned, the porosity eps is not taken into account when using the porousInterFoam solver but even if I assume eps=1, the solver does not yield correct results. Have you /has anyone experienced this problem?

There have been some discussions last year to that topic and I also found a debugged version of the porousInterFoam solver (http://sourceforge.net/apps/mantisbt...iew.php?id=129) which should repair the problem of not taking the porosity into account. I'm trying to compile this debugged version and I will let you know whether this fixes the problem I described above, but still, I'm curious of your experiences with porousInterFoam.

Greetings, Natalie

Dear Natalie and Nadine,

I would like to add some lights about porousInterFoam.

Actually, porousInterFoam does not simulate two phase flow in porous media, expect in some very special cases (as the Hele-Shaw cells). This solver is not consistent with the two-phase flow physic in porous media.

You have to keep in mind that porous media laws are in fact averaged equations. That means that in one cell of the mesh, you have both fluid and solid, even if this latter is not physically represented. In two-phase flow through porous material, we use the concept of saturation S, which is the rate of liquid over the void space volume of the cell. Basically, S varyies on the range [0,1].

The problem with porousInterFoam, is that this solver is just a VOF solver with additionnal resistance source terms. With that solver, the saturation does not exist and the phase indicator is either equal to 0 or 1. You can't have value in between (for exemple, S=0.4 means that the void space of a cell is filled by 40% liquid and 60% gas). So, in my opinion, this solver has absolutely no meanings.

I think the right solution is to program a solver based on IMPES method (see a presentation I made at OFW7 for additionnal details).

Best regards,
Cyp

Last edited by Cyp; Today at 13:14.
Cyp is offline   Reply With Quote

Old   Today, 15:51
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj will become famous soon enough
Hi Cyp,

Please allow me to disagree, since I exactly know the debugged version that Natalie referred to, as I myself posted that particular report. The debugged version corrects for the previous error that computational cells with a solid present did not fill faster than cells without a solid.

The solution to this error was straight forward, because MULES was actually prepared to this type of flows, though the interface was not utilised in porousInterFoam.

We had a master student, who tested the solver and he obtained good results in comparison with experimental data for coastal engineering size problems (dimensions of many meters in each direction).

Kind regards,

Niels

P.S. There has not been a response to the bug report, since the error is still present in version 2.2.0.
ngj is offline   Reply With Quote

Old   Today, 15:56
Default
  #5
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: France, Toulouse
Posts: 178
Rep Power: 6
Cyp is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Cyp,

Please allow me to disagree, since I exactly know the debugged version that Natalie referred to, as I myself posted that particular report. The debugged version corrects for the previous error that computational cells with a solid present did not fill faster than cells without a solid.

The solution to this error was straight forward, because MULES was actually prepared to this type of flows, though the interface was not utilised in porousInterFoam.

We had a master student, who tested the solver and he obtained good results in comparison with experimental data for coastal engineering size problems (dimensions of many meters in each direction).

Kind regards,

Niels

P.S. There has not been a response to the bug report, since the error is still present in version 2.2.0.

Yes, but with porousInterFoam, even with the debugged version, you can't have gas AND liquid in the same cell, can you ?
Cyp is offline   Reply With Quote

Old   Today, 16:07
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,118
Rep Power: 19
ngj will become famous soon enough
Hi Cyp,

I have just gone through your presentation, and I now understand what you mean. For your problems, where the saturation is of importance, then porousInterFoam will not work, because the two fluids are considered as immiscible.

For coastal engineering problems, however, where there is a pretty clear interface between air and water, capillary effects can largely be neglected in man made structure and grain sizes are say 10 cm or larger, porousInterFoam does a pretty good job.

I have tried reading the posts by Nadine and Natalie, however, it is a bit unclear to me, which effects are of importance to them.

All the best,

Niels
ngj is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error message cuteapathy CFX 14 March 20, 2012 07:45
energy equation in rhoCentralFoam nakul OpenFOAM 0 October 10, 2010 15:07
k-e turbulence model and energy equation Blob Main CFD Forum 0 May 29, 2009 08:35
Adding viscous dissipation term to energy equation newbee OpenFOAM Running, Solving & CFD 4 August 25, 2006 14:33
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 13:22


All times are GMT -4. The time now is 22:34.