|
[Sponsors] |
February 10, 2016, 11:15 |
Porosity
|
#1 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Guys,
I've been working with the simulation of a fuel cell channel. I want my mass diffusivity coefficient to be corrected by the porosity and the fraction of liquid water as it follows: D_eff= D_i * (por * (1 - s))**1.5 The following piece of code is how I defined my porosity profile as a function of POROSITY(t) and C_LIQ_H2O(c,t) (porosity and fraction of liquid water, respectively). DEFINE_PROFILE(porosity,t,i) { cell_t c; begin_c_loop(c,t) { C_PROFILE(c,t,i) = POROSITY(t)*(1.0-MIN(MAX(C_LIQ_H2O(c,t),0.0),0.99)); } end_c_loop(c,t) } I read once in the manual that the mass diffusivity is automatically corrected by the porosity (profile), thus to correct it by the factor of 1.5, should I multiply the diffusivity (D_i) by the porosity macro (C_POR(c,t)) on the power of 0.5 only? D_eff= D_i * C_POR(c,t)**0.5 Despite the fact I read it once in the manual, unfortunately, I could not find this information again. It would be great if you could inform where I can find it. Thanks guys. Last edited by Bruno Machado; February 29, 2016 at 09:50. |
|
February 29, 2016, 09:50 |
|
#2 |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Any one can help me?
|
|
May 29, 2016, 08:11 |
|
#3 |
New Member
J. David
Join Date: May 2013
Posts: 10
Rep Power: 13 |
Dear MAchado
You can find the information in the "pem_user.c" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding porosity to UEqn.H in porousInterFoam | jameswilson620 | OpenFOAM Programming & Development | 5 | November 25, 2016 23:19 |
how to set correctly the porosity properties to use porousInterFoam? | cramsdead | OpenFOAM Running, Solving & CFD | 5 | December 10, 2014 04:43 |
anisotropic porosity in CFX | Chander | CFX | 19 | June 17, 2014 05:51 |
Porosity profile, dividing a zone, or getting zone location from zone | khoopes | FLUENT | 0 | June 2, 2012 20:39 |
Porosity field in Fluent | wojciech | FLUENT | 1 | September 20, 2010 12:19 |