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

[Other] mesh generation of porous media

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Saideep
  • 1 Post By Majed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2015, 02:18
Default mesh generation of porous media
  #1
New Member
 
Eric Liu
Join Date: Jan 2015
Posts: 6
Rep Power: 11
liu-t11 is on a distinguished road
hi, everyone! I am new to openFoam. Though some simple cases with simple geometry can be done, many solvers and utilities are not familiar.

I am trying to solve a 2D case of porous media, but stuck in generating the meshes. The blockMesh is not so useful for this problem.

I get a txt file to tell the position of the solid and the pore, but do really not know how to generate the meshes. Should I use snappyHexMesh or other mesh generators?

Anyone solving similar questions is welcome to give suggestions and I really appreciate your help!
liu-t11 is offline   Reply With Quote

Old   May 27, 2015, 05:55
Default Porous media generation!!
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi Eric;

Though I realise yours is an old thread, did you succeed in accomplishing your task?

I am quite sure you cannot use blockMesh as it can only create more or less structured meshes with arc and splines etc but it would be useful if you can generate a 2D image of your pores or solids on inkscape or blender and convert it to a 3D .stl image and use it over snappyHexMesh.

I have the results something like this(figure 1) for a uniform pore geometry. But it is not of much help as when I inject a fluid at top it just flows quite fast and in the easiest path(straight).

So, next step I tried to create a non-homogeneous pore geometry. But it is surely not easy as when you try to generate the solids randomly there can be several connections inbetween the solids and your snappyhexmesh somehow covers only a small area.

Actually I am impressed by the way how Andrea Ferrari and Ivan Lunati created there random distributed solids in paper: Direct numerical simulations of interface dynamics to link capillary pressure and total surface energy.

If you already have any idea please do share.

Thanks
Saideep
Attached Images
File Type: jpg figure 1.jpg (61.0 KB, 249 views)
File Type: jpg figure2.jpg (94.9 KB, 208 views)
Liu XH likes this.
Saideep is offline   Reply With Quote

Old   May 27, 2015, 06:16
Default
  #3
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
I am interested to keep this thread alive and from my new model for a non-homogeneous porous medium it looks to get some sort of shape.

I had to refine the mesh so much (800*800) to get some sort of meaningful result for the porous medium that is randomly generated using inkscape(to generate random solids), blender (to convert .svg to .stl and from 2D to 3D) and snappyHexMesh to get the required model shape for analysis.

But the problem now is the time. As the dx is going so low, the Co number is too large and thereby ultimately it effects the time step size. However, I will just run basic simulation to see how the results vary from homogeneous case and will keep updated.

Thanks and waiting for any suggestions.
Saideep
Attached Images
File Type: jpg figure3.jpg (43.2 KB, 137 views)
Saideep is offline   Reply With Quote

Old   May 28, 2015, 08:18
Default
  #4
New Member
 
Eric Liu
Join Date: Jan 2015
Posts: 6
Rep Power: 11
liu-t11 is on a distinguished road
hello, saideep:

i am glad that you reply to me. i am using snappyHexMesh to generate mesh for my porous media. the .stl file is obtained from the CT images, which i did some process.

the mesh is as follows.

the
Attached Images
File Type: jpg pore.jpg (74.5 KB, 539 views)
liu-t11 is offline   Reply With Quote

Old   January 19, 2016, 14:22
Default
  #5
New Member
 
Join Date: Mar 2014
Posts: 23
Rep Power: 12
Majed is on a distinguished road
Hello Foamers,

I am new to OpenFOAM. I am trying to simulate a two-phase flow in porous medium using PorousInterFoam solver. I my case I have a permeable wall which I want to simulate it as a surface in which there are many holes so the the porous medium region is connected to the surface flow region. I am wondering if there is an easy way to do that. I am attaching a photo of my geometry for better understanding of my case.

Any help would be greatly appreciated.
Attached Images
File Type: jpg Untitled.jpg (25.5 KB, 107 views)
mizzou likes this.
Majed is offline   Reply With Quote

Old   February 24, 2017, 10:32
Default 3-D porous media: twophase flow
  #6
New Member
 
Kay
Join Date: Jan 2016
Posts: 5
Rep Power: 10
KayGhana is on a distinguished road
Hello All,

I have a three phase (solid, water, air) 3-D pore structure.
I also have the STL files for all three phases (solid, water, air) generated.
Any ideas how these phases can go directly into OpenFOAM with boundaries correctly delineated would be appreciated.

For the boundaries,
The top boundary is atmospheric (later I would have an infiltration boundary), the bottom is a fixedpressure (water would either drain by gravity or rise by capillarity depending on the direction of pressure step down or step up) boundary and the sides are walls (no flow).

I look forward to your input.

Thank you.




Quote:
Originally Posted by Saideep View Post
Hi Eric;

Though I realise yours is an old thread, did you succeed in accomplishing your task?

I am quite sure you cannot use blockMesh as it can only create more or less structured meshes with arc and splines etc but it would be useful if you can generate a 2D image of your pores or solids on inkscape or blender and convert it to a 3D .stl image and use it over snappyHexMesh.

I have the results something like this(figure 1) for a uniform pore geometry. But it is not of much help as when I inject a fluid at top it just flows quite fast and in the easiest path(straight).

So, next step I tried to create a non-homogeneous pore geometry. But it is surely not easy as when you try to generate the solids randomly there can be several connections inbetween the solids and your snappyhexmesh somehow covers only a small area.

Actually I am impressed by the way how Andrea Ferrari and Ivan Lunati created there random distributed solids in paper: Direct numerical simulations of interface dynamics to link capillary pressure and total surface energy.

If you already have any idea please do share.

Thanks
Saideep
KayGhana is offline   Reply With Quote

Old   May 26, 2020, 19:17
Default I have a 3D segmented image (0,1 data set)
  #7
Member
 
Min Zhang
Join Date: Mar 2017
Posts: 81
Rep Power: 9
minzhang is on a distinguished road
Hello Liu,

I am wondering whether you could give more details about how to get the .stl file from the CT images. Now I have a 3D raw data of a segmented CT image. I am trying to generate the oepfoam mesh.

Thanks!



Quote:
Originally Posted by liu-t11 View Post
hello, saideep:

i am glad that you reply to me. i am using snappyHexMesh to generate mesh for my porous media. the .stl file is obtained from the CT images, which i did some process.

the mesh is as follows.

the
minzhang 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
Porous Media model and mesh size Sdvk FLUENT 1 September 18, 2015 01:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[Other] Consistent mesh for fluid flow in fractured porous media bemgeomechanic OpenFOAM Meshing & Mesh Conversion 0 March 14, 2011 08:46
species mass source in porous media ? PK FLUENT 0 February 16, 2007 11:12


All times are GMT -4. The time now is 18:06.