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

Porosity changes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2012, 04:15
Default Porosity changes
  #1
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
Hello Foamers.
I want to model a flow with a porous zone which works well using rhoPorousSimpleFoam in OF 2.1.x.
I want to examine the effect of porosity on the answers. But change does not change the porosity of the porousZones.H in the constant folder. I think it is not used at all porosities.
Who can help me?
Best regards.
vahid
vahidzanganeh is offline   Reply With Quote

Old   November 17, 2012, 15:14
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
dear vahid
specify your problem with much more clarification and insert one simple test case
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 19, 2012, 12:01
Default
  #3
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
Quote:
Originally Posted by nimasam View Post
dear vahid
specify your problem with much more clarification and insert one simple test case
dear nimasam


I am working a new solver for combustion in porous media. i work on two solver reactingFoam and rhoPorousReactnhFoam for simolation combustion in porous media.
i think the solver rhoPorousMRFSimpleFoam only the initial porosity(porosity=1) and dont used amount of porosity(for example porosity=0.781 define in porousZones.H in the constant folder).
i thenk the porosity is private on class porousZone and the solver dont used the amount of porosity. the solver used amount of default in porousZones.C !!!!
vahidzanganeh is offline   Reply With Quote

Old   November 19, 2012, 12:53
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
which version of OpenFOAM, do you use?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 19, 2012, 16:05
Default
  #5
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
openfoam2.1.1
can you help me?

Last edited by vahidzanganeh; November 19, 2012 at 16:27.
vahidzanganeh is offline   Reply With Quote

Old   November 20, 2012, 12:11
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Code:
1
(
    porosity
    {
        coordinateSystem
        {
            e1  (0.70710678 0.70710678 0);
            e2  (0 0 1);
        }

        Darcy
        {
            d   d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
            f   f [0 -1 0 0 0 0 0] (0 0 0);
        }

        thermalModel
        {
            type        none; // fixedTemperature;

            // fixedTemperature coefficients
            T           350;
        }
    }
)
tell me what is e1 and e2 ? and whats you argument about?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 20, 2012, 12:51
Default
  #7
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
hellow nimasam
my model is
1
(
porosity
{
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
porosity 0.8;

Darcy
{
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
}

thermalModel
{
type none; //fixedTemperature;

// fixedTemperature coefficients
T 350;//1350;
}
}

)
vahidzanganeh is offline   Reply With Quote

Old   November 20, 2012, 13:51
Default
  #8
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
dear vahid
you are right, it seems it is a bug, so report it as a bug
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 21, 2012, 02:30
Default
  #9
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
hello nimasam
i dont know!!!
i have to work on combustion in porous mdeia.
I have hard problems in modeling!!
vahidzanganeh is offline   Reply With Quote

Old   November 21, 2012, 16:11
Default
  #10
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
maybe you want to look in source code, where it uses porosity,
However combustion is a complex phenomena, you need to be expert in existing solvers then try to implement new code, so
1-try to understand existing test case,
2-find nearer solvers to your case
3-read source codes, find out what each part does
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 23, 2012, 04:42
Default
  #11
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
hello nimasam
I have searched the reference code. porous media is modeled attenuting the time derivative and by adding sink term to the navier stokes eqn. sorce term is viscous and inertial lose.
but my momentum eqn should be porosity multiplied the other terms in porous zone in adding to the above.
How do you know that?

Best regards.
vahid
vahidzanganeh is offline   Reply With Quote

Old   November 23, 2012, 15:58
Default
  #12
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
you should learn how to program in OpenFOAM, maybe reading user guide and programmer guide and reading source codes, help you to get familiar with coding at OpenFOAM, if you want more, you can connect me
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   November 23, 2012, 17:13
Default
  #13
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
hello nimasam
I'm willing to be in contact with you more. thanx alot give me email adress :-)
of course i have read user guide ago.
Best regards.
vahid
vahidzanganeh is offline   Reply With Quote

Old   November 24, 2012, 15:56
Default
  #14
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
here, you can find contact info:
http://www.cfd-online.com/Forums/members/nimasam.html
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   April 20, 2013, 06:04
Default porous value
  #15
New Member
 
hesam
Join Date: Mar 2013
Posts: 13
Rep Power: 13
hesamgh is on a distinguished road
hellow
dear vahid
how can i chenge my porous value in openfoam 2.0.1?
can you explain me how do you got that value of alpha,beta ,a,b?

thanks alot
Quote:
Originally Posted by vahidzanganeh View Post
hellow nimasam
my model is
1
(
porosity
{
coordinateSystem
{
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
porosity 0.8;

Darcy
{
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
}

thermalModel
{
type none; //fixedTemperature;

// fixedTemperature coefficients
T 350;//1350;
}
}

)
hesamgh is offline   Reply With Quote

Old   April 22, 2013, 03:43
Default
  #16
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
Dear hesam
I think is betterd enter the amount of porosity in the Darcy-Forchheimer coefficient.
what are alpha, beta,a,b?
vahidzanganeh is offline   Reply With Quote

Old   April 23, 2013, 03:50
Default
  #17
New Member
 
hesam
Join Date: Mar 2013
Posts: 13
Rep Power: 13
hesamgh is on a distinguished road
would you explain me what are the darcy's coefficient?
i saw some where there are alpha,beta,a,b that calculate the porosity when the material isn't isotoropic !!!

thank you



Quote:
Originally Posted by vahidzanganeh View Post
Dear hesam
I think is betterd enter the amount of porosity in the Darcy-Forchheimer coefficient.
what are alpha, beta,a,b?
hesamgh is offline   Reply With Quote

Old   April 24, 2013, 05:05
Default
  #18
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
dear hesam
you can check files in "/opt/openfoam211/src/finiteVolume/cfdTools/general/porousMedia"
or do research on the references about the porous medium equation.
best regards
vahidzanganeh is offline   Reply With Quote

Old   April 28, 2013, 05:25
Default
  #19
New Member
 
hesam
Join Date: Mar 2013
Posts: 13
Rep Power: 13
hesamgh is on a distinguished road
dear vahid i checked the location that you mentioned...

these are the coefficient that i said:


a = 9.367
b = 1.029E7
alphax = 0.5 * a * density [kg/m^4]
betax = viscocity * b [kg/m^3s]

d= beta/viscocity [1/m^2]
f=2*alpha/density [1/m]

alphay=1e6
betay=1e6

alphaz=1e6
betaz=1e6

viscocity=1.663e-5 kg/ms
density=0.61935 at Inlet

coordinateSystem
{

e1 (1 0 0);
e2 (0 0 1);
}

Darcy
{
d d [0 -2 0 0 0 0 0] (1.029e7 (6.01e10??) (6.01e10??));
f f [0 -1 0 0 0 0 0] (18.367 (?) (?));

these are for ceramics, i want to know from where i can obtain them??

thanks alot for your help vahid



Quote:
Originally Posted by vahidzanganeh View Post
dear hesam
you can check files in "/opt/openfoam211/src/finiteVolume/cfdTools/general/porousMedia"
or do research on the references about the porous medium equation.
best regards
hesamgh is offline   Reply With Quote

Old   April 28, 2013, 06:50
Default
  #20
Member
 
v
Join Date: Nov 2011
Posts: 33
Rep Power: 15
vahidzanganeh is on a distinguished road
dear hesam
d and f are Darcy-Forchheimer coefficient and has been explained in ...cfdTools/general/porousMedia/porousZone.H, or you can read "porous media in openfoam.pdf" in internet.
but if you have new equations you can define them. you can do this with reading user guide, programmer guide and reading source codes.
best regards
vahidzanganeh is offline   Reply With Quote

Reply


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
anisotropic porosity in CFX Chander CFX 19 June 17, 2014 05:51
UDF for writing porosity as a function of distance from the wall rohinibc Fluent UDF and Scheme Programming 5 August 8, 2012 09:16
Porosity profile, dividing a zone, or getting zone location from zone khoopes FLUENT 0 June 2, 2012 20:39
Problem in setting porosity region for rhoPorousSimpleFoam run_cfd OpenFOAM Pre-Processing 1 May 31, 2011 10:02
Porosity field in Fluent wojciech FLUENT 1 September 20, 2010 12:19


All times are GMT -4. The time now is 00:04.