|
[Sponsors] |
May 20, 2014, 14:24 |
Porous Media
|
#1 |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
hi everybody
i am new to openFoam and i have a few problems for solving Porous media in openFoam first of all , i have used gambit to sketch my model . after transferring my mesh to openfoam i have a problem that i dont know how to define porous media in openFoam!!!! i am a rookie in this program So sorry for asking basic question !!! i appreciate any help tnx! |
|
May 20, 2014, 15:23 |
|
#2 | |
Senior Member
|
Quote:
you should define your porous zone using topoSetDict or setSetDict. the following links may help you: http://openfoamwiki.net/index.php/TopoSet http://www.cfd-online.com/Forums/ope...dertocell.html http://www.cfd-online.com/Forums/ope...cell-mesh.html |
||
May 20, 2014, 18:11 |
|
#3 |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
thank you for helping
but i realy can't understand what are those commands are and what are their use i have just started working with openfoam!!! i just want to define a zone for porous media ! can you describe the process of doing it in a very very basic language!!!?? plzzzzzzzzzzzzzzzzz |
|
May 21, 2014, 01:45 |
|
#4 |
Senior Member
|
dear realfear, woow! what a name!!!
after u transfer your mesh to FOAM (in your case maybe u used fluentMeshToFoam), you should make a file in system case named: topoSetDict. then you must define the geometry of your porous zone in this file (first link of my last post will help you). finally you need to run topoSet in terminal to specify the porous zone. here is an example of topoSetField which specify a square as c0 zone (these code are for OF-2.1.0) Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name c0; type cellSet; action new; source rotatedBoxToCell; sourceInfo { // box (0 0 0) (0.1 0.1 0.2); origin (-0.5 -0.5 0); i (1 0 -1); j (0 1 0); k (0 0 1); } } ); // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object porousZones; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 1 ( c0 { coordinateSystem { e1 (1 0 0); e2 (0 0 1); } Darcy { d d [0 -2 0 0 0 0 0] (9e3 9e3 0); f f [0 -1 0 0 0 0 0] (0 0 0); } } ) // ************************************************************************* // Regards Mostafa |
|
May 21, 2014, 03:45 |
|
#5 |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
tnx again
i used this username when i was very young and i just sitcked with it!! i made a change in your post i just changed cellset to cellZoneSet and it worked! but i still have few questions to ask: 1- what is the origin? does it mean the origin of the coordinate system i used in gambit to start the drawing 2- does i,j ,k means the coordinate directions ?? for Cartesian coordinate system i(1 0 0) j(0 1 0) k(0 0 1)? merci |
|
May 21, 2014, 04:17 |
|
#6 | |
Senior Member
|
Quote:
Code:
origin (0 -0.5 0); i (0.5 0.5 -1); j (-0.5 0.5 0); k (0 0 1); |
||
May 21, 2014, 04:43 |
|
#7 | |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
Quote:
what should i do then?? |
||
May 21, 2014, 05:24 |
|
#8 |
Senior Member
|
yeah, you can just use:
Code:
box (0 0 0) (0.1 0.1 0.2); |
|
May 21, 2014, 06:26 |
|
#9 | |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
Quote:
it requires sourceinfo can you write the whole code for making a cube for a zone? tnx |
||
May 21, 2014, 06:52 |
|
#10 | |
Senior Member
|
Quote:
here you are the topoSetDict: Code:
actions ( { name c0; type cellSet; action new; source boxToCell; sourceInfo { box (-0.5 -0.5 -0.5) (0.5 0.5 0.5); /* origin (0 -0.5 0); i (0.5 0.5 -1); j (-0.5 0.5 0); k (0 0 1);*/ } } ); Regards, Mostafa |
||
May 21, 2014, 07:01 |
|
#11 | |
New Member
Join Date: Mar 2014
Posts: 16
Rep Power: 12 |
Quote:
thank you for your kindness and patience! tnx |
||
December 17, 2014, 21:22 |
|
#12 |
New Member
zahra
Join Date: Jun 2014
Location: Iran-Tehran
Posts: 28
Rep Power: 12 |
Hi all
I work with chtmultiregionFoam . I want to make my solid part porous. But i do not know how i should do it. Regards Zahra |
|
December 18, 2014, 00:43 |
|
#13 | |
Senior Member
|
Quote:
The concept of porous media in openFoam is not defined geometrically, you add a source term in your equations in the porous region and that source term simulates the porous media conditions. to getting started, I suggest reading the Haukur Elvar Hafsteinsson report. Regards, Mostafa |
||
December 19, 2014, 13:05 |
|
#14 |
New Member
zahra
Join Date: Jun 2014
Location: Iran-Tehran
Posts: 28
Rep Power: 12 |
Dear Mostafa
I am new to openfoam. Could you please explain more detailed. I had read that report before i comment here. but i realy do not know how i should start to add porousity and what i should do!! |
|
December 23, 2014, 12:48 |
|
#15 | |
Senior Member
|
Quote:
If I wanna say it in brief:
that's it! hope it helps you Regards, Mostafa |
||
March 3, 2015, 20:01 |
Porous media simulations
|
#16 |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
Dear Foamers,
I have some questions about running openfoam in porous media. Could you tell me how we can define the hydraulic conductivity (k) in openfoam? Also, according to Adambafi's posts we define the porous zone in topoSetDict. so what should be defined in blockMeshDict. Thank you. |
|
March 3, 2015, 23:38 |
|
#17 | |
Senior Member
|
Dear Majid,
Quote:
which is the permeability (), are density, kinematic viscosity and acceleration due to gravity, respectively. so, you just need to define the viscosity and permeability in a way that the above relation leads to your desired K. porousSimpleFoam uses Darcy-Forchheimer equation to model the flow in a porous media. it's a source term that we add to the momentum equation when we are solving the porous part in the domain. topoSetDict can specify a zone in your mesh to the porous part so that when the entire domain is solving, in this zone the momentum equation has an extra source for considering the effects of porous media on the flow field. |
||
March 4, 2015, 00:10 |
|
#18 |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
Dear Mostafa,
Thank you for your reply. At first I should tell you that I am Iranain, so don't care about my name in here. Second, I should mention that I am kind of new to OpenFOAM. Let me describe my geometry in details. What I want to simulate is the flow similar to the first picture. I have already simulated the surface flow, and now what I want to do is deriving an equation for the pressure distribution on the bed of the river, and then simulating the groundwater flow. So my geometry would be a box similar to the second picture. From your reply this is implied that I should create this box in blockmesh, and then using the same coorditares define such a box in toposetdict as all the area of this box is the porous medium. Am I right? Thank you so much Quote:
|
|
June 16, 2015, 06:35 |
|
#19 |
New Member
Ipos
Join Date: Feb 2015
Posts: 7
Rep Power: 11 |
hi foamer
i have a question. how to calculate d and f in darcy? could you describe me plzzzzz thx |
|
June 16, 2015, 12:06 |
|
#20 | |
New Member
Join Date: Mar 2014
Posts: 23
Rep Power: 12 |
Quote:
Take a look at page 34 of the pdf file in the link below: https://www.politesi.polimi.it/bitst..._DiStefano.pdf I hope it will be useful. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase Porous Media Flow - Convergence Issues | VT_Bromley | FLUENT | 8 | May 30, 2024 03:59 |
Porous media setup issues in Fluent | Bernard Van | FLUENT | 29 | January 26, 2017 05:09 |
How to model granular flow through porous media | Axius | FLUENT | 2 | August 7, 2014 11:34 |
species mass source in porous media ? | PK | FLUENT | 0 | February 16, 2007 12:12 |
porous media: Fluent or Star-CD? | Igor | Main CFD Forum | 0 | December 5, 2002 16:16 |