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

[snappyHexMesh] defining porous zone in toposet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mvee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2017, 02:02
Default defining porous zone in toposet
  #1
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Dear all

I am new to snappy and openfoam. I want to simulate flow through the porous zone. I am using snappy (attachment) to create a mesh. I have defined porouzzone1 STL file which is my porous zone. I want to see it in ParaView. When I observed the boundary in polyMesh, I did not find any patches related to porouszone1. I thought I need toposet to pass. I saw toposet to be used for regular geometries. How can I use it for user-defined geometries (as in my STL file)? Please note that Another stl file - fluid.stl is the solid obstruction which is removed by considering location in mesh point.

Thank you
Mahesh
Attached Files
File Type: txt snappyHexMeshDict.txt (1.6 KB, 75 views)
mvee is offline   Reply With Quote

Old   January 31, 2017, 14:12
Default
  #2
Member
 
mo_na's Avatar
 
Mona
Join Date: Mar 2016
Location: Berlin
Posts: 49
Rep Power: 10
mo_na is on a distinguished road
Hey Mahesh,

I am not quite sure what you are trying to simulate but maybe ihFoam could be a good solver for you? Its based on interFoam and includes the flow through porous material. Its quite easy to define porous zones with it.
Also you defined your porous zone as patch type "wall". Is it supposed to be a boundary and not an actual zone? I am a little confused...

Cheers,
Mona
mo_na is offline   Reply With Quote

Old   January 31, 2017, 22:04
Default
  #3
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Hi Mona

Thanks for your reply.

We specify bounding box with dimension in toposetdict to patch the specific zone as porous. Now here, in this case, I want to specify irregular shape (as in STL file) instead bounding box with dimension. I can see cellZones in constant/polyMesh directory which consists of my porous zone.

My question is how can I treat irregular shape (i.e STL file) or porous zone of cellZones in topoSetDict?

Am I clear?

Thank you
Mvee
mvee is offline   Reply With Quote

Old   February 1, 2017, 06:21
Default
  #4
Member
 
mo_na's Avatar
 
Mona
Join Date: Mar 2016
Location: Berlin
Posts: 49
Rep Power: 10
mo_na is on a distinguished road
okay I think I got it! I have never done that before but maybe one of these threads can help you:

https://www.cfd-online.com/Forums/op...s-toposet.html

Open Foam /Setfields
mo_na is offline   Reply With Quote

Old   February 1, 2017, 23:40
Default solved
  #5
Senior Member
 
Vaze
Join Date: Jun 2009
Posts: 172
Rep Power: 17
mvee is on a distinguished road
Hi Mona

I solved the problem. I used zoneToCell. I am surprised that Do I really need to convert zone to cell in order to treat porosity?

Thanks for your reply

Regards
Mvee
JoshuaB-L likes this.
mvee is offline   Reply With Quote

Old   July 13, 2020, 13:28
Default
  #6
New Member
 
Joshua
Join Date: Mar 2019
Location: Berlin
Posts: 2
Rep Power: 0
JoshuaB-L is on a distinguished road
Hi Mvee,

Could you elaborate on how you used the zoneToCell? It would be great to see examples of your dict files and the STL file you used.

I would like to define a porous zone using a source term defined in fvOptions. I would like to apply the porous zone to the cells inside of the STL mesh very similar to what you did I think.

I am trying to calculate wind flow through a tree canopy and tree canopy being defined as a porous zone.

Would you be willing to share your example case?

Look forward to your reply.

Regards

Joshua
JoshuaB-L 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
Degassing B.C. and porous zone C.C FLUENT 0 December 18, 2018 08:24
using toposet for creating porous zone zeinelserfy OpenFOAM Pre-Processing 1 December 17, 2018 02:05
Substituting a porous geometry with equivalent porous zone parameters stein.robins Main CFD Forum 0 September 23, 2015 16:08
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 13:25
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 02:08


All times are GMT -4. The time now is 15:16.