CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   topoSet (http://www.cfd-online.com/Forums/openfoam-pre-processing/125110-toposet.html)

m5m5kh October 19, 2013 01:23

topoSet
 
Hi Foamers
I want to define a sphere inside a cubic block and cubic block it self as a porous media.I know I should use topoSetDict but I have no idea how to define the sphere as a porous medium.
I used celltobox for defining my domain as as a porous medium in my previous case.
what should I do?

regards
Mohsen

wyldckat October 19, 2013 04:57

Hi Mohsen,

Have a look into this file: https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict

You can find it on your system by running:
Code:

find $FOAM_UTILITIES  -name topoSetDict
But keep in mind that if your internal mesh isn't already cut into the shape of the sphere, then all you get is a selection of the cells that are inside the sphere selection.

Best regards,
Bruno

m5m5kh October 19, 2013 05:53

hi bruno
I know spheretocell is good
but how should I cut the sphere out of the cubic domain?
for example I used topoSet in terminal and define the origin and radius of sphere for porosity 0.5 and I want to set the prosity for cubic domain around the sphere as for example 0.2
what should I do with that domain ?
is the zone to cell OK?

br
Mohsen

Quote:

Originally Posted by wyldckat (Post 457771)
Hi Mohsen,

Have a look into this file: https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict

You can find it on your system by running:
Code:

find $FOAM_UTILITIES  -name topoSetDict
But keep in mind that if your internal mesh isn't already cut into the shape of the sphere, then all you get is a selection of the cells that are inside the sphere selection.

Best regards,
Bruno


wyldckat October 19, 2013 06:24

Quote:

Originally Posted by m5m5kh (Post 457779)
but how should I cut the sphere out of the cubic domain?

Quick answer: read the thread http://www.cfd-online.com/Forums/ope...mesh-used.html - there you'll find how 2 meshes are created, where one is shaped like a sphere and the other is a cube that is around that sphere, then they are merged+stiched together.

m5m5kh October 19, 2013 06:46

thanks bruno
I will follow it

br
Mohsen
Quote:

Originally Posted by wyldckat (Post 457783)
Quick answer: read the thread http://www.cfd-online.com/Forums/ope...mesh-used.html - there you'll find how 2 meshes are created, where one is shaped like a sphere and the other is a cube that is around that sphere, then they are merged+stiched together.



All times are GMT -4. The time now is 13:26.